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

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

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix new addition Created 8 years, 2 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/root_window_host_linux.cc » ('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 957703742040395855e65f875b55f4bde7c4044d..e37dd38cb585212bbe2cb68d0705dcb0a1513fac 100644
--- a/ui/aura/desktop/desktop_screen_x11.cc
+++ b/ui/aura/desktop/desktop_screen_x11.cc
@@ -15,7 +15,7 @@
#include "ui/base/x/x11_util.h"
#include "ui/gfx/display.h"
#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/screen_impl.h"
+#include "ui/gfx/screen.h"
namespace {
@@ -30,12 +30,13 @@ gfx::Size GetPrimaryDisplaySize() {
return gfx::Size(width, height);
}
-class DesktopScreenX11 : public gfx::ScreenImpl {
+class DesktopScreenX11 : public gfx::Screen {
public:
DesktopScreenX11();
virtual ~DesktopScreenX11();
- // Overridden from gfx::ScreenImpl:
+ // Overridden from gfx::Screen:
+ virtual bool IsDIPEnabled() OVERRIDE;
virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE;
virtual int GetNumDisplays() OVERRIDE;
@@ -61,7 +62,11 @@ DesktopScreenX11::~DesktopScreenX11() {
}
////////////////////////////////////////////////////////////////////////////////
-// DesktopScreenX11, gfx::ScreenImpl implementation:
+// DesktopScreenX11, gfx::Screen implementation:
+
+bool DesktopScreenX11::IsDIPEnabled() {
+ return false;
+}
gfx::Point DesktopScreenX11::GetCursorScreenPoint() {
Display* display = ui::GetXDisplay();
@@ -123,7 +128,7 @@ gfx::Display DesktopScreenX11::GetPrimaryDisplay() const {
namespace aura {
-gfx::ScreenImpl* CreateDesktopScreen() {
+gfx::Screen* CreateDesktopScreen() {
return new DesktopScreenX11;
}
« no previous file with comments | « ui/aura/desktop/desktop_screen_win.cc ('k') | ui/aura/root_window_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698