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

Unified Diff: ui/gfx/screen.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, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/screen.h
diff --git a/ui/gfx/screen.h b/ui/gfx/screen.h
index 9352e792cb44a68357e32eb3ec57d8124544cf16..112d3d50ae195cba4d6d738954e498a3f35ce709 100644
--- a/ui/gfx/screen.h
+++ b/ui/gfx/screen.h
@@ -39,8 +39,8 @@ class GFX_EXPORT Screen {
// Returns the current absolute position of the mouse pointer.
virtual gfx::Point GetCursorScreenPoint() = 0;
- // Returns the window under the cursor.
- virtual gfx::NativeWindow GetWindowUnderCursor() = 0;
+ // Returns true if the cursor is directly over |window|.
+ virtual bool IsWindowUnderCursor(gfx::NativeWindow window) = 0;
// Returns the window at the given screen coordinate |point|.
virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) = 0;

Powered by Google App Engine
This is Rietveld 408576698