Index: ash/wm/cursor_manager.h |
diff --git a/ash/wm/cursor_manager.h b/ash/wm/cursor_manager.h |
index 9f2cc8b219de81636936d7351d89e2d6c072a2d5..90f3c62c3975bf3bc305dc11d00a69d45177a286 100644 |
--- a/ash/wm/cursor_manager.h |
+++ b/ash/wm/cursor_manager.h |
@@ -7,12 +7,14 @@ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
+#include "base/memory/scoped_ptr.h" |
#include "ui/aura/aura_export.h" |
#include "ui/aura/client/cursor_client.h" |
#include "ui/gfx/native_widget_types.h" |
namespace ash { |
class CursorDelegate; |
+class ImageCursors; |
// This class controls the visibility and the type of the cursor. |
// The cursor type can be locked so that the type stays the same |
@@ -33,11 +35,24 @@ class CursorManager : public aura::client::CursorClient { |
// Shows or hides the cursor. |
bool cursor_visible() const { return cursor_visible_; } |
+ // Returns a cursor whose platform cursor and device scale factor are |
+ // appropriately set based on the native type of |cursor|. |
+ gfx::NativeCursor GetCursorFromNativeType(gfx::NativeCursor cursor); |
+ |
+ // Hides the cursor outside of the Aura root window. The cursor will be drawn |
+ // within the Aura root window, and it'll remain hidden after the Aura window |
+ // is closed. |
+ void HideHostCursor(); |
+ |
+ // Overridden from aura::client::CursorClient: |
virtual void SetCursor(gfx::NativeCursor) OVERRIDE; |
virtual void ShowCursor(bool show) OVERRIDE; |
virtual bool IsCursorVisible() const OVERRIDE; |
+ virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE; |
private: |
+ void SetCursorInternal(gfx::NativeCursor cursor); |
+ |
CursorDelegate* delegate_; |
// Number of times LockCursor() has been invoked without a corresponding |
@@ -54,6 +69,11 @@ class CursorManager : public aura::client::CursorClient { |
// Is cursor visible? |
bool cursor_visible_; |
+ // The cursor currently set. |
+ gfx::NativeCursor current_cursor_; |
+ |
+ scoped_ptr<ImageCursors> image_cursors_; |
+ |
DISALLOW_COPY_AND_ASSIGN(CursorManager); |
}; |