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

Unified Diff: ui/aura/client/cursor_client.h

Issue 11035050: Enable CursorManager::LockCursor to lock cursor visibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura build Created 8 years, 2 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/wm/window_manager_unittest.cc ('k') | ui/aura/desktop/desktop_cursor_client.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 ecf67eedb492025d733e13d1a091df9aae485a9e..3f970b0b5c3939eac14a2040a5f49af6d58d5efc 100644
--- a/ui/aura/client/cursor_client.h
+++ b/ui/aura/client/cursor_client.h
@@ -27,6 +27,15 @@ class AURA_EXPORT CursorClient {
// Sets the device scale factor of the cursor.
virtual void SetDeviceScaleFactor(float device_scale_factor) = 0;
+ // Locks the cursor change. The cursor type and cursor visibility never change
+ // as long as lock is held by anyone.
+ virtual void LockCursor() = 0;
+
+ // Unlocks the cursor change. If all the locks are released, the cursor type
+ // and visibility are restored to the ones set by the lastest call of
+ // SetCursor and ShowCursor.
+ virtual void UnlockCursor() = 0;
+
protected:
virtual ~CursorClient() {}
};
« no previous file with comments | « ash/wm/window_manager_unittest.cc ('k') | ui/aura/desktop/desktop_cursor_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698