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; |
sky
2012/12/17 16:35:38
This class has inconsistently named methods and th
mazda
2012/12/18 02:49:32
I change the interface to the former ones.
|
+ |
+ // 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; |