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_WIN_H_ | 5 #ifndef UI_GFX_SCREEN_WIN_H_ |
6 #define UI_GFX_SCREEN_WIN_H_ | 6 #define UI_GFX_SCREEN_WIN_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ui/base/ui_export.h" | 9 #include "ui/base/ui_export.h" |
10 #include "ui/gfx/screen.h" | 10 #include "ui/gfx/screen.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; | 22 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; |
23 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE; | 23 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE; |
24 virtual int GetNumDisplays() OVERRIDE; | 24 virtual int GetNumDisplays() OVERRIDE; |
25 virtual gfx::Display GetDisplayNearestWindow( | 25 virtual gfx::Display GetDisplayNearestWindow( |
26 gfx::NativeView window) const OVERRIDE; | 26 gfx::NativeView window) const OVERRIDE; |
27 virtual gfx::Display GetDisplayNearestPoint( | 27 virtual gfx::Display GetDisplayNearestPoint( |
28 const gfx::Point& point) const OVERRIDE; | 28 const gfx::Point& point) const OVERRIDE; |
29 virtual gfx::Display GetDisplayMatching( | 29 virtual gfx::Display GetDisplayMatching( |
30 const gfx::Rect& match_rect) const OVERRIDE; | 30 const gfx::Rect& match_rect) const OVERRIDE; |
31 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; | 31 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; |
| 32 virtual void AddObserver(DisplayObserver* observer) OVERRIDE; |
| 33 virtual void RemoveObserver(DisplayObserver* observer) OVERRIDE; |
32 | 34 |
33 // Returns the HWND associated with the NativeView. | 35 // Returns the HWND associated with the NativeView. |
34 virtual HWND GetHWNDFromNativeView(NativeView window) const; | 36 virtual HWND GetHWNDFromNativeView(NativeView window) const; |
35 | 37 |
36 // Returns the NativeView associated with the HWND. | 38 // Returns the NativeView associated with the HWND. |
37 virtual NativeWindow GetNativeWindowFromHWND(HWND hwnd) const; | 39 virtual NativeWindow GetNativeWindowFromHWND(HWND hwnd) const; |
38 | 40 |
39 private: | 41 private: |
40 DISALLOW_COPY_AND_ASSIGN(ScreenWin); | 42 DISALLOW_COPY_AND_ASSIGN(ScreenWin); |
41 }; | 43 }; |
42 | 44 |
43 } // namespace gfx | 45 } // namespace gfx |
44 | 46 |
45 #endif // UI_GFX_SCREEN_WIN_H_ | 47 #endif // UI_GFX_SCREEN_WIN_H_ |
OLD | NEW |