Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: ui/display/win/screen_win.h

Issue 1935083003: gfx::Screen: Replace GetWindowUnderCursor() with IsWindowUnderCursor(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Null checks Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698