| 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_AURA_DESKTOP_DESKTOP_SCREEN_WIN_H_ | 5 #ifndef UI_AURA_DESKTOP_DESKTOP_SCREEN_WIN_H_ |
| 6 #define UI_AURA_DESKTOP_DESKTOP_SCREEN_WIN_H_ | 6 #define UI_AURA_DESKTOP_DESKTOP_SCREEN_WIN_H_ |
| 7 | 7 |
| 8 #include "ui/aura/aura_export.h" | 8 #include "ui/aura/aura_export.h" |
| 9 #include "ui/gfx/screen_impl.h" | 9 #include "ui/gfx/screen.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 | 12 |
| 13 class AURA_EXPORT DesktopScreenWin : public gfx::ScreenImpl { | 13 class AURA_EXPORT DesktopScreenWin : public gfx::Screen { |
| 14 public: | 14 public: |
| 15 DesktopScreenWin(); | 15 DesktopScreenWin(); |
| 16 virtual ~DesktopScreenWin(); | 16 virtual ~DesktopScreenWin(); |
| 17 | 17 |
| 18 // Overridden from gfx::ScreenImpl: | 18 // Overridden from gfx::Screen: |
| 19 virtual bool IsDIPEnabled() OVERRIDE; |
| 19 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; | 20 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; |
| 20 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE; | 21 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE; |
| 21 virtual int GetNumDisplays() OVERRIDE; | 22 virtual int GetNumDisplays() OVERRIDE; |
| 22 virtual gfx::Display GetDisplayNearestWindow( | 23 virtual gfx::Display GetDisplayNearestWindow( |
| 23 gfx::NativeView window) const OVERRIDE; | 24 gfx::NativeView window) const OVERRIDE; |
| 24 virtual gfx::Display GetDisplayNearestPoint( | 25 virtual gfx::Display GetDisplayNearestPoint( |
| 25 const gfx::Point& point) const OVERRIDE; | 26 const gfx::Point& point) const OVERRIDE; |
| 26 virtual gfx::Display GetDisplayMatching( | 27 virtual gfx::Display GetDisplayMatching( |
| 27 const gfx::Rect& match_rect) const OVERRIDE; | 28 const gfx::Rect& match_rect) const OVERRIDE; |
| 28 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; | 29 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; |
| 29 | 30 |
| 30 private: | 31 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(DesktopScreenWin); | 32 DISALLOW_COPY_AND_ASSIGN(DesktopScreenWin); |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 } // namespace aura | 35 } // namespace aura |
| 35 | 36 |
| 36 #endif // UI_AURA_DESKTOP_DESKTOP_SCREEN_WIN_H_ | 37 #endif // UI_AURA_DESKTOP_DESKTOP_SCREEN_WIN_H_ |
| OLD | NEW |