| Index: chromecast/graphics/cast_screen.h
|
| diff --git a/chromecast/graphics/cast_screen.h b/chromecast/graphics/cast_screen.h
|
| index ba665be40fd9f11505e02c329d284397325c4d30..43ca0ccad0cc9e8f5ca956844a1b59e3651b3a67 100644
|
| --- a/chromecast/graphics/cast_screen.h
|
| +++ b/chromecast/graphics/cast_screen.h
|
| @@ -8,20 +8,20 @@
|
| #include "base/callback.h"
|
| #include "base/macros.h"
|
| #include "chromecast/public/graphics_types.h"
|
| -#include "ui/gfx/display.h"
|
| -#include "ui/gfx/screen.h"
|
| +#include "ui/display/display.h"
|
| +#include "ui/display/screen.h"
|
|
|
| namespace chromecast {
|
| namespace shell {
|
| class CastBrowserMainParts;
|
| } // namespace shell
|
|
|
| -// CastScreen is Chromecast's own minimal implementation of gfx::Screen.
|
| +// CastScreen is Chromecast's own minimal implementation of display::Screen.
|
| // Right now, it almost exactly duplicates the behavior of aura's TestScreen
|
| // class for necessary methods. The instantiation of CastScreen occurs in
|
| // CastBrowserMainParts, where its ownership is assigned to CastBrowserProcess.
|
| // To then subsequently access CastScreen, see CastBrowerProcess.
|
| -class CastScreen : public gfx::Screen {
|
| +class CastScreen : public display::Screen {
|
| public:
|
| ~CastScreen() override;
|
|
|
| @@ -31,23 +31,25 @@ class CastScreen : public gfx::Screen {
|
| // Updates the primary display size.
|
| void UpdateDisplaySize(const gfx::Size& size);
|
|
|
| - // gfx::Screen overrides:
|
| + // display::Screen overrides:
|
| gfx::Point GetCursorScreenPoint() override;
|
| gfx::NativeWindow GetWindowUnderCursor() override;
|
| gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
|
| int GetNumDisplays() const override;
|
| - std::vector<gfx::Display> GetAllDisplays() const override;
|
| - gfx::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
|
| - gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override;
|
| - gfx::Display GetDisplayMatching(const gfx::Rect& match_rect) const override;
|
| - gfx::Display GetPrimaryDisplay() const override;
|
| - void AddObserver(gfx::DisplayObserver* observer) override;
|
| - void RemoveObserver(gfx::DisplayObserver* observer) override;
|
| + std::vector<display::Display> GetAllDisplays() const override;
|
| + display::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
|
| + display::Display GetDisplayNearestPoint(
|
| + const gfx::Point& point) const override;
|
| + display::Display GetDisplayMatching(
|
| + const gfx::Rect& match_rect) const override;
|
| + display::Display GetPrimaryDisplay() const override;
|
| + void AddObserver(display::DisplayObserver* observer) override;
|
| + void RemoveObserver(display::DisplayObserver* observer) override;
|
|
|
| private:
|
| CastScreen();
|
|
|
| - gfx::Display display_;
|
| + display::Display display_;
|
| DisplayResizeCallback display_resize_cb_;
|
|
|
| friend class shell::CastBrowserMainParts;
|
|
|