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

Unified Diff: ui/gfx/screen.h

Issue 10389109: Add gfx::Screen::IsEnabled() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Decided that the original approach with gfx::Sceren::IsDIPEnabled is better than the ifdef Created 8 years, 7 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/base/resource/resource_bundle.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen.h
diff --git a/ui/gfx/screen.h b/ui/gfx/screen.h
index f0f4201e6d21e096860c7d830ddd6a6b4835800d..286ef94f21581e002d66e7d6d1995d5ac478e62c 100644
--- a/ui/gfx/screen.h
+++ b/ui/gfx/screen.h
@@ -28,6 +28,9 @@ class UI_EXPORT Screen {
static void SetInstance(ScreenImpl* screen);
#endif
+ // Returns true if DIP is enabled.
+ static bool IsDIPEnabled();
+
// Returns the current absolute position of the mouse pointer.
static gfx::Point GetCursorScreenPoint();
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698