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

Unified Diff: ash/wm/ash_native_cursor_manager.h

Issue 145313003: Implement cursor compositing mode on Ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get rid changes in ui/views/. Let Shell call AshNativeCursorManager directly. Created 6 years, 10 months 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 | « ash/test/mirror_window_test_api.cc ('k') | ash/wm/ash_native_cursor_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/ash_native_cursor_manager.h
diff --git a/ash/wm/ash_native_cursor_manager.h b/ash/wm/ash_native_cursor_manager.h
index f307b1663d783d59ce6b4c43476521a9547d781e..6a1e450e830eff55ce538ff1426e8a1b317c2cc9 100644
--- a/ash/wm/ash_native_cursor_manager.h
+++ b/ash/wm/ash_native_cursor_manager.h
@@ -33,6 +33,12 @@ class ASH_EXPORT AshNativeCursorManager
AshNativeCursorManager();
virtual ~AshNativeCursorManager();
+ // Toggle native cursor enabled/disabled.
+ // The native cursor is enabled by default. When disabled, we hide the native
+ // cursor regardless of visibility state, and let CursorWindowManager draw
+ // the cursor.
+ void SetNativeCursorEnabled(bool enabled);
+
private:
friend class test::CursorManagerTestApi;
@@ -59,6 +65,8 @@ class ASH_EXPORT AshNativeCursorManager
// The cursor location where the cursor was disabled.
gfx::Point disabled_cursor_location_;
+ bool native_cursor_enabled_;
+
scoped_ptr<ImageCursors> image_cursors_;
DISALLOW_COPY_AND_ASSIGN(AshNativeCursorManager);
« no previous file with comments | « ash/test/mirror_window_test_api.cc ('k') | ash/wm/ash_native_cursor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698