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

Unified Diff: ui/aura/desktop/desktop_screen_x11.cc

Issue 10540091: Rename gfx::Monitor to gfx::Display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
Index: ui/aura/desktop/desktop_screen_x11.cc
diff --git a/ui/aura/desktop/desktop_screen_x11.cc b/ui/aura/desktop/desktop_screen_x11.cc
index 59b6f19f1aa480e15962dfe4539b836fb80e2609..97faee82338e8bf7045e407b2537336f73030048 100644
--- a/ui/aura/desktop/desktop_screen_x11.cc
+++ b/ui/aura/desktop/desktop_screen_x11.cc
@@ -13,7 +13,7 @@
#include "ui/aura/root_window.h"
#include "ui/aura/root_window_host.h"
#include "ui/base/x/x11_util.h"
-#include "ui/gfx/monitor.h"
+#include "ui/gfx/display.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/screen_impl.h"
@@ -39,11 +39,11 @@ class DesktopScreenX11 : public gfx::ScreenImpl {
virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE;
virtual int GetNumMonitors() OVERRIDE;
- virtual gfx::Monitor GetMonitorNearestWindow(
+ virtual gfx::Display GetMonitorNearestWindow(
gfx::NativeView window) const OVERRIDE;
- virtual gfx::Monitor GetMonitorNearestPoint(
+ virtual gfx::Display GetMonitorNearestPoint(
const gfx::Point& point) const OVERRIDE;
- virtual gfx::Monitor GetPrimaryMonitor() const OVERRIDE;
+ virtual gfx::Display GetPrimaryMonitor() const OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11);
@@ -92,21 +92,21 @@ int DesktopScreenX11::GetNumMonitors() {
return 1;
}
-gfx::Monitor DesktopScreenX11::GetMonitorNearestWindow(
+gfx::Display DesktopScreenX11::GetMonitorNearestWindow(
gfx::NativeView window) const {
// TODO(erg): Do the right thing once we know what that is.
- return gfx::Monitor(0, gfx::Rect(GetPrimaryMonitorSize()));
+ return gfx::Display(0, gfx::Rect(GetPrimaryMonitorSize()));
}
-gfx::Monitor DesktopScreenX11::GetMonitorNearestPoint(
+gfx::Display DesktopScreenX11::GetMonitorNearestPoint(
const gfx::Point& point) const {
// TODO(erg): Do the right thing once we know what that is.
- return gfx::Monitor(0, gfx::Rect(GetPrimaryMonitorSize()));
+ return gfx::Display(0, gfx::Rect(GetPrimaryMonitorSize()));
}
-gfx::Monitor DesktopScreenX11::GetPrimaryMonitor() const {
+gfx::Display DesktopScreenX11::GetPrimaryMonitor() const {
// TODO(erg): Do the right thing once we know what that is.
- return gfx::Monitor(0, gfx::Rect(GetPrimaryMonitorSize()));
+ return gfx::Display(0, gfx::Rect(GetPrimaryMonitorSize()));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698