| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |