Index: ash/wm/cursor_manager.h |
diff --git a/ash/wm/cursor_manager.h b/ash/wm/cursor_manager.h |
index 2eb2c68e3347294ef1107c4de1a65cdc05a6b16d..44dd30a41f75f5e5be03fef45f85c6c418714de3 100644 |
--- a/ash/wm/cursor_manager.h |
+++ b/ash/wm/cursor_manager.h |
@@ -11,6 +11,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "ui/aura/client/cursor_client.h" |
#include "ui/gfx/native_widget_types.h" |
+#include "ui/gfx/point.h" |
namespace ash { |
@@ -18,6 +19,7 @@ namespace test { |
class CursorManagerTestApi; |
} |
+class CursorState; |
class ImageCursors; |
// This class controls the visibility and the type of the cursor. |
@@ -34,6 +36,7 @@ class ASH_EXPORT CursorManager : public aura::client::CursorClient { |
virtual void SetCursor(gfx::NativeCursor) OVERRIDE; |
virtual void ShowCursor(bool show) OVERRIDE; |
virtual bool IsCursorVisible() const OVERRIDE; |
+ virtual void EnableCursor(bool enabled) OVERRIDE; |
virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE; |
virtual void LockCursor() OVERRIDE; |
virtual void UnlockCursor() OVERRIDE; |
@@ -43,31 +46,27 @@ class ASH_EXPORT CursorManager : public aura::client::CursorClient { |
void SetCursorInternal(gfx::NativeCursor cursor); |
void ShowCursorInternal(bool show); |
+ void EnableCursorInternal(bool enabled); |
// Number of times LockCursor() has been invoked without a corresponding |
// UnlockCursor(). |
int cursor_lock_count_; |
- // Set to true if SetCursor() is invoked while |cursor_lock_count_| == 0. |
- bool did_cursor_change_; |
- |
- // Cursor to set once |cursor_lock_count_| is set to 0. Only valid if |
- // |did_cursor_change_| is true. |
- gfx::NativeCursor cursor_to_set_on_unlock_; |
- |
- // Set to true if ShowCursor() is invoked while |cursor_lock_count_| == 0. |
- bool did_visibility_change_; |
- |
- // The visibility to set once |cursor_lock_count_| is set to 0. Only valid if |
- // |did_visibility_change_| is true. |
- bool show_on_unlock_; |
- |
// Is cursor visible? |
bool cursor_visible_; |
+ // Is cursor enabled? |
+ bool cursor_enabled_; |
+ |
+ // The cursor location where the cursor was disabled. |
+ gfx::Point disabled_cursor_location_; |
+ |
// The cursor currently set. |
gfx::NativeCursor current_cursor_; |
+ // The cursor state to set when the cursor is unlocked. |
+ scoped_ptr<CursorState> state_on_unlock_; |
+ |
scoped_ptr<ImageCursors> image_cursors_; |
DISALLOW_COPY_AND_ASSIGN(CursorManager); |