Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1273)

Unified Diff: chromecast/graphics/cast_screen.h

Issue 1928143002: Rename gfx::Display/Screen to display::Display/Screen in chromecast/blimp/media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update blimp's gn for recent gn change Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/graphics/BUILD.gn ('k') | chromecast/graphics/cast_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chromecast/graphics/BUILD.gn ('k') | chromecast/graphics/cast_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698