| 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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_WIN_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_WIN_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_WIN_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/gfx/screen_win.h" | 9 #include "ui/display/win/screen_win.h" |
| 10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 class VIEWS_EXPORT DesktopScreenWin : public gfx::ScreenWin { | 14 class VIEWS_EXPORT DesktopScreenWin : public display::win::ScreenWin { |
| 15 public: | 15 public: |
| 16 DesktopScreenWin(); | 16 DesktopScreenWin(); |
| 17 ~DesktopScreenWin() override; | 17 ~DesktopScreenWin() override; |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 // Overridden from gfx::ScreenWin: | 20 // Overridden from display::win::ScreenWin: |
| 21 gfx::Display GetDisplayMatching(const gfx::Rect& match_rect) const override; | 21 gfx::Display GetDisplayMatching(const gfx::Rect& match_rect) const override; |
| 22 HWND GetHWNDFromNativeView(gfx::NativeView window) const override; | 22 HWND GetHWNDFromNativeView(gfx::NativeView window) const override; |
| 23 gfx::NativeWindow GetNativeWindowFromHWND(HWND hwnd) const override; | 23 gfx::NativeWindow GetNativeWindowFromHWND(HWND hwnd) const override; |
| 24 | 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(DesktopScreenWin); | 25 DISALLOW_COPY_AND_ASSIGN(DesktopScreenWin); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace views | 28 } // namespace views |
| 29 | 29 |
| 30 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_WIN_H_ | 30 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_WIN_H_ |
| OLD | NEW |