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

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

Issue 10540123: Rename gfx::Screen::GetMonitorXXXX to gfx::Screen::GetDisplayXXX. (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
« no previous file with comments | « ui/aura/desktop/desktop_screen_win.cc ('k') | ui/aura/monitor_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 97faee82338e8bf7045e407b2537336f73030048..e8f2e66a501b4e12932d76de0ea261d6028a0958 100644
--- a/ui/aura/desktop/desktop_screen_x11.cc
+++ b/ui/aura/desktop/desktop_screen_x11.cc
@@ -21,7 +21,7 @@ namespace {
// TODO(erg): This method is a temporary hack, until we can reliably extract
// location data out of XRandR.
-gfx::Size GetPrimaryMonitorSize() {
+gfx::Size GetPrimaryDisplaySize() {
::Display* display = ui::GetXDisplay();
::Screen* screen = DefaultScreenOfDisplay(display);
int width = WidthOfScreen(screen);
@@ -38,12 +38,12 @@ class DesktopScreenX11 : public gfx::ScreenImpl {
// Overridden from gfx::ScreenImpl:
virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE;
- virtual int GetNumMonitors() OVERRIDE;
- virtual gfx::Display GetMonitorNearestWindow(
+ virtual int GetNumDisplays() OVERRIDE;
+ virtual gfx::Display GetDisplayNearestWindow(
gfx::NativeView window) const OVERRIDE;
- virtual gfx::Display GetMonitorNearestPoint(
+ virtual gfx::Display GetDisplayNearestPoint(
const gfx::Point& point) const OVERRIDE;
- virtual gfx::Display GetPrimaryMonitor() const OVERRIDE;
+ virtual gfx::Display GetPrimaryDisplay() const OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11);
@@ -86,27 +86,27 @@ gfx::NativeWindow DesktopScreenX11::GetWindowAtCursorScreenPoint() {
return NULL;
}
-int DesktopScreenX11::GetNumMonitors() {
+int DesktopScreenX11::GetNumDisplays() {
// TODO(erg): Figure this out with oshima or piman because I have no clue
// about the XRandR implications here.
return 1;
}
-gfx::Display DesktopScreenX11::GetMonitorNearestWindow(
+gfx::Display DesktopScreenX11::GetDisplayNearestWindow(
gfx::NativeView window) const {
// TODO(erg): Do the right thing once we know what that is.
- return gfx::Display(0, gfx::Rect(GetPrimaryMonitorSize()));
+ return gfx::Display(0, gfx::Rect(GetPrimaryDisplaySize()));
}
-gfx::Display DesktopScreenX11::GetMonitorNearestPoint(
+gfx::Display DesktopScreenX11::GetDisplayNearestPoint(
const gfx::Point& point) const {
// TODO(erg): Do the right thing once we know what that is.
- return gfx::Display(0, gfx::Rect(GetPrimaryMonitorSize()));
+ return gfx::Display(0, gfx::Rect(GetPrimaryDisplaySize()));
}
-gfx::Display DesktopScreenX11::GetPrimaryMonitor() const {
+gfx::Display DesktopScreenX11::GetPrimaryDisplay() const {
// TODO(erg): Do the right thing once we know what that is.
- return gfx::Display(0, gfx::Rect(GetPrimaryMonitorSize()));
+ return gfx::Display(0, gfx::Rect(GetPrimaryDisplaySize()));
}
} // namespace
« no previous file with comments | « ui/aura/desktop/desktop_screen_win.cc ('k') | ui/aura/monitor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698