| 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/gfx/display_change_notifier.h" | 9 #include "ui/gfx/display_change_notifier.h" |
| 10 #include "ui/gfx/gfx_export.h" | 10 #include "ui/gfx/gfx_export.h" |
| 11 #include "ui/gfx/screen.h" | 11 #include "ui/gfx/screen.h" |
| 12 #include "ui/gfx/win/singleton_hwnd.h" | 12 #include "ui/gfx/win/singleton_hwnd.h" |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 | 15 |
| 16 class GFX_EXPORT ScreenWin : public Screen, | 16 class GFX_EXPORT ScreenWin : public Screen, |
| 17 public SingletonHwnd::Observer { | 17 public SingletonHwnd::Observer { |
| 18 public: | 18 public: |
| 19 ScreenWin(); | 19 ScreenWin(); |
| 20 virtual ~ScreenWin(); | 20 virtual ~ScreenWin(); |
| 21 | 21 |
| 22 protected: | 22 protected: |
| 23 // Overridden from gfx::Screen: | 23 // Overridden from gfx::Screen: |
| 24 virtual bool IsDIPEnabled() override; | |
| 25 virtual gfx::Point GetCursorScreenPoint() override; | 24 virtual gfx::Point GetCursorScreenPoint() override; |
| 26 virtual gfx::NativeWindow GetWindowUnderCursor() override; | 25 virtual gfx::NativeWindow GetWindowUnderCursor() override; |
| 27 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) | 26 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) |
| 28 override; | 27 override; |
| 29 virtual int GetNumDisplays() const override; | 28 virtual int GetNumDisplays() const override; |
| 30 virtual std::vector<gfx::Display> GetAllDisplays() const override; | 29 virtual std::vector<gfx::Display> GetAllDisplays() const override; |
| 31 virtual gfx::Display GetDisplayNearestWindow( | 30 virtual gfx::Display GetDisplayNearestWindow( |
| 32 gfx::NativeView window) const override; | 31 gfx::NativeView window) const override; |
| 33 virtual gfx::Display GetDisplayNearestPoint( | 32 virtual gfx::Display GetDisplayNearestPoint( |
| 34 const gfx::Point& point) const override; | 33 const gfx::Point& point) const override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 56 | 55 |
| 57 // Current list of displays. | 56 // Current list of displays. |
| 58 std::vector<gfx::Display> displays_; | 57 std::vector<gfx::Display> displays_; |
| 59 | 58 |
| 60 DISALLOW_COPY_AND_ASSIGN(ScreenWin); | 59 DISALLOW_COPY_AND_ASSIGN(ScreenWin); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace gfx | 62 } // namespace gfx |
| 64 | 63 |
| 65 #endif // UI_GFX_SCREEN_WIN_H_ | 64 #endif // UI_GFX_SCREEN_WIN_H_ |
| OLD | NEW |