| 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_DISPLAY_WIN_SCREEN_WIN_H_ | 5 #ifndef UI_DISPLAY_WIN_SCREEN_WIN_H_ |
| 6 #define UI_DISPLAY_WIN_SCREEN_WIN_H_ | 6 #define UI_DISPLAY_WIN_SCREEN_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // Returns the HWND associated with the NativeView. | 92 // Returns the HWND associated with the NativeView. |
| 93 virtual HWND GetHWNDFromNativeView(gfx::NativeView window) const; | 93 virtual HWND GetHWNDFromNativeView(gfx::NativeView window) const; |
| 94 | 94 |
| 95 // Returns the NativeView associated with the HWND. | 95 // Returns the NativeView associated with the HWND. |
| 96 virtual gfx::NativeWindow GetNativeWindowFromHWND(HWND hwnd) const; | 96 virtual gfx::NativeWindow GetNativeWindowFromHWND(HWND hwnd) const; |
| 97 | 97 |
| 98 protected: | 98 protected: |
| 99 // display::Screen: | 99 // display::Screen: |
| 100 gfx::Point GetCursorScreenPoint() override; | 100 gfx::Point GetCursorScreenPoint() override; |
| 101 gfx::NativeWindow GetWindowUnderCursor() override; | 101 bool IsWindowUnderCursor(gfx::NativeWindow window) override; |
| 102 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; | 102 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; |
| 103 int GetNumDisplays() const override; | 103 int GetNumDisplays() const override; |
| 104 std::vector<display::Display> GetAllDisplays() const override; | 104 std::vector<display::Display> GetAllDisplays() const override; |
| 105 display::Display GetDisplayNearestWindow( | 105 display::Display GetDisplayNearestWindow( |
| 106 gfx::NativeView window) const override; | 106 gfx::NativeView window) const override; |
| 107 display::Display GetDisplayNearestPoint( | 107 display::Display GetDisplayNearestPoint( |
| 108 const gfx::Point& point) const override; | 108 const gfx::Point& point) const override; |
| 109 display::Display GetDisplayMatching( | 109 display::Display GetDisplayMatching( |
| 110 const gfx::Rect& match_rect) const override; | 110 const gfx::Rect& match_rect) const override; |
| 111 display::Display GetPrimaryDisplay() const override; | 111 display::Display GetPrimaryDisplay() const override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // Current list of ScreenWinDisplays. | 151 // Current list of ScreenWinDisplays. |
| 152 std::vector<ScreenWinDisplay> screen_win_displays_; | 152 std::vector<ScreenWinDisplay> screen_win_displays_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(ScreenWin); | 154 DISALLOW_COPY_AND_ASSIGN(ScreenWin); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace win | 157 } // namespace win |
| 158 } // namespace display | 158 } // namespace display |
| 159 | 159 |
| 160 #endif // UI_DISPLAY_WIN_SCREEN_WIN_H_ | 160 #endif // UI_DISPLAY_WIN_SCREEN_WIN_H_ |
| OLD | NEW |