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

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: fix compile errors and nit 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..2ea5a727e7320edbc647293cbc3bfbfa65986d34 100644
--- a/ui/aura/client/cursor_client.h
+++ b/ui/aura/client/cursor_client.h
@@ -18,12 +18,20 @@ 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;
+
+ // Returns true if the cursor is enabled.
+ virtual bool IsCursorEnabled() const = 0;
+
// Sets the device scale factor of the cursor.
virtual void SetDeviceScaleFactor(float device_scale_factor) = 0;
« ash/wm/cursor_manager.cc ('K') | « ash/wm/window_manager_unittest.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698