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

Side by Side Diff: ui/gfx/screen.h

Issue 672823002: Remove IsDIPEnabled from Screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dpi-cleanup-1
Patch Set: rebase Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « ui/base/layout.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_SCREEN_H_ 5 #ifndef UI_GFX_SCREEN_H_
6 #define UI_GFX_SCREEN_H_ 6 #define UI_GFX_SCREEN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // may be NULL. 43 // may be NULL.
44 static Screen* GetScreenByType(ScreenType type); 44 static Screen* GetScreenByType(ScreenType type);
45 45
46 // Sets the global ScreenTypeDelegate. May be left unset if the platform 46 // Sets the global ScreenTypeDelegate. May be left unset if the platform
47 // uses only the _NATIVE ScreenType. 47 // uses only the _NATIVE ScreenType.
48 static void SetScreenTypeDelegate(ScreenTypeDelegate* delegate); 48 static void SetScreenTypeDelegate(ScreenTypeDelegate* delegate);
49 49
50 Screen(); 50 Screen();
51 virtual ~Screen(); 51 virtual ~Screen();
52 52
53 // Returns true if DIP is enabled.
54 virtual bool IsDIPEnabled() = 0;
55
56 // Returns the current absolute position of the mouse pointer. 53 // Returns the current absolute position of the mouse pointer.
57 virtual gfx::Point GetCursorScreenPoint() = 0; 54 virtual gfx::Point GetCursorScreenPoint() = 0;
58 55
59 // Returns the window under the cursor. 56 // Returns the window under the cursor.
60 virtual gfx::NativeWindow GetWindowUnderCursor() = 0; 57 virtual gfx::NativeWindow GetWindowUnderCursor() = 0;
61 58
62 // Returns the window at the given screen coordinate |point|. 59 // Returns the window at the given screen coordinate |point|.
63 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) = 0; 60 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) = 0;
64 61
65 // Returns the number of displays. 62 // Returns the number of displays.
(...skipping 26 matching lines...) Expand all
92 89
93 private: 90 private:
94 DISALLOW_COPY_AND_ASSIGN(Screen); 91 DISALLOW_COPY_AND_ASSIGN(Screen);
95 }; 92 };
96 93
97 Screen* CreateNativeScreen(); 94 Screen* CreateNativeScreen();
98 95
99 } // namespace gfx 96 } // namespace gfx
100 97
101 #endif // UI_GFX_SCREEN_H_ 98 #endif // UI_GFX_SCREEN_H_
OLDNEW
« no previous file with comments | « ui/base/layout.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698