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

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: 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698