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

Unified Diff: ui/aura/client/cursor_client.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: 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/client/cursor_client.h
diff --git a/ui/aura/client/cursor_client.h b/ui/aura/client/cursor_client.h
index 3f970b0b5c3939eac14a2040a5f49af6d58d5efc..2b8abf9b2d842fdd24616395522d1288cb3d142e 100644
--- a/ui/aura/client/cursor_client.h
+++ b/ui/aura/client/cursor_client.h
@@ -18,12 +18,17 @@ class AURA_EXPORT CursorClient {
// Notes that |window| has requested the change to |cursor|.
virtual void SetCursor(gfx::NativeCursor cursor) = 0;
- // Changes the visibility of the cursor.
+ // Changes the visibility of the cursor. Mouse events keep being sent even
+ // when the cursor is invisible,
virtual void ShowCursor(bool show) = 0;
// Gets whether the cursor is visible.
virtual bool IsCursorVisible() const = 0;
+ // Enables or disables the cursor. When cursor is disabled, no mouse events
+ // are sent.
+ virtual void EnableCursor(bool enabled) = 0;
+
// Sets the device scale factor of the cursor.
virtual void SetDeviceScaleFactor(float device_scale_factor) = 0;

Powered by Google App Engine
This is Rietveld 408576698