| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Returns the NativeView associated with the HWND. | 108 // Returns the NativeView associated with the HWND. |
| 109 virtual gfx::NativeWindow GetNativeWindowFromHWND(HWND hwnd) const; | 109 virtual gfx::NativeWindow GetNativeWindowFromHWND(HWND hwnd) const; |
| 110 | 110 |
| 111 protected: | 111 protected: |
| 112 // display::Screen: | 112 // display::Screen: |
| 113 gfx::Point GetCursorScreenPoint() override; | 113 gfx::Point GetCursorScreenPoint() override; |
| 114 bool IsWindowUnderCursor(gfx::NativeWindow window) override; | 114 bool IsWindowUnderCursor(gfx::NativeWindow window) override; |
| 115 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; | 115 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; |
| 116 int GetNumDisplays() const override; | 116 int GetNumDisplays() const override; |
| 117 std::vector<display::Display> GetAllDisplays() const override; | 117 std::vector<display::Display> GetAllDisplays() const override; |
| 118 bool GetDisplayWithDisplayId(int64_t display_id, |
| 119 display::Display* display) const override; |
| 118 display::Display GetDisplayNearestWindow( | 120 display::Display GetDisplayNearestWindow( |
| 119 gfx::NativeView window) const override; | 121 gfx::NativeView window) const override; |
| 120 display::Display GetDisplayNearestPoint( | 122 display::Display GetDisplayNearestPoint( |
| 121 const gfx::Point& point) const override; | 123 const gfx::Point& point) const override; |
| 122 display::Display GetDisplayMatching( | 124 display::Display GetDisplayMatching( |
| 123 const gfx::Rect& match_rect) const override; | 125 const gfx::Rect& match_rect) const override; |
| 124 display::Display GetPrimaryDisplay() const override; | 126 display::Display GetPrimaryDisplay() const override; |
| 125 void AddObserver(display::DisplayObserver* observer) override; | 127 void AddObserver(display::DisplayObserver* observer) override; |
| 126 void RemoveObserver(display::DisplayObserver* observer) override; | 128 void RemoveObserver(display::DisplayObserver* observer) override; |
| 127 gfx::Rect ScreenToDIPRectInWindow( | 129 gfx::Rect ScreenToDIPRectInWindow( |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // Current list of ScreenWinDisplays. | 187 // Current list of ScreenWinDisplays. |
| 186 std::vector<ScreenWinDisplay> screen_win_displays_; | 188 std::vector<ScreenWinDisplay> screen_win_displays_; |
| 187 | 189 |
| 188 DISALLOW_COPY_AND_ASSIGN(ScreenWin); | 190 DISALLOW_COPY_AND_ASSIGN(ScreenWin); |
| 189 }; | 191 }; |
| 190 | 192 |
| 191 } // namespace win | 193 } // namespace win |
| 192 } // namespace display | 194 } // namespace display |
| 193 | 195 |
| 194 #endif // UI_DISPLAY_WIN_SCREEN_WIN_H_ | 196 #endif // UI_DISPLAY_WIN_SCREEN_WIN_H_ |
| OLD | NEW |