mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-11 09:08:06 +01:00
49a34d9160
Add "cef/" prefix for CEF #includes in libcef/ directory. Sort #includes by following https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
// Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
|
|
#ifndef CEF_LIBCEF_BROWSER_VIEWS_DISPLAY_IMPL_H_
|
|
#define CEF_LIBCEF_BROWSER_VIEWS_DISPLAY_IMPL_H_
|
|
#pragma once
|
|
|
|
#include "cef/include/views/cef_display.h"
|
|
#include "cef/libcef/browser/thread_util.h"
|
|
#include "ui/display/display.h"
|
|
|
|
class CefDisplayImpl : public CefDisplay {
|
|
public:
|
|
explicit CefDisplayImpl(const display::Display& display);
|
|
|
|
CefDisplayImpl(const CefDisplayImpl&) = delete;
|
|
CefDisplayImpl& operator=(const CefDisplayImpl&) = delete;
|
|
|
|
~CefDisplayImpl() override;
|
|
|
|
// CefDisplay methods:
|
|
int64_t GetID() override;
|
|
float GetDeviceScaleFactor() override;
|
|
void ConvertPointToPixels(CefPoint& point) override;
|
|
void ConvertPointFromPixels(CefPoint& point) override;
|
|
CefRect GetBounds() override;
|
|
CefRect GetWorkArea() override;
|
|
int GetRotation() override;
|
|
|
|
const display::Display& display() const { return display_; }
|
|
|
|
private:
|
|
display::Display display_;
|
|
|
|
IMPLEMENT_REFCOUNTING_DELETE_ON_UIT(CefDisplayImpl);
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_VIEWS_DISPLAY_IMPL_H_
|