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

Unified Diff: ui/aura/root_window_host.h

Issue 11412315: Make the cursor have separate mode for disabled mouse events and invisible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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/aura/root_window_host.h
diff --git a/ui/aura/root_window_host.h b/ui/aura/root_window_host.h
index 168f2d67f12273933fa320354cdaaf75e2153faa..e9007326bb18e1633606c529379a97b0163340bd 100644
--- a/ui/aura/root_window_host.h
+++ b/ui/aura/root_window_host.h
@@ -75,7 +75,8 @@ class AURA_EXPORT RootWindowHost {
// Queries the mouse's current position relative to the host window and sets
// it in |location_return|. Returns true if the cursor is within the host
// window. The position set to |location_return| is constrained within the
- // host window.
+ // host window. If the cursor is disabled, returns false and (0, 0) is set to
+ // |location_return|.
// This method is expensive, instead use gfx::Screen::GetCursorScreenPoint().
virtual bool QueryMouseLocation(gfx::Point* location_return) = 0;
@@ -83,8 +84,8 @@ class AURA_EXPORT RootWindowHost {
virtual bool ConfineCursorToRootWindow() = 0;
virtual void UnConfineCursor() = 0;
- // Called when the cursor visibility has changed.
- virtual void OnCursorVisibilityChanged(bool show) = 0;
+ // Invoked when the cursor gets enabled or disabled.
+ virtual void OnCursorEnableStateChanged(bool enabled) = 0;
// Moves the cursor to the specified location relative to the root window.
virtual void MoveCursorTo(const gfx::Point& location) = 0;

Powered by Google App Engine
This is Rietveld 408576698