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

Unified Diff: ui/aura/cursor_manager.h

Issue 10826005: Don't warp mouse if the cursor is locked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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/display/mouse_cursor_event_filter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/cursor_manager.h
diff --git a/ui/aura/cursor_manager.h b/ui/aura/cursor_manager.h
index 84e4207c82838cedc9a5015ceb27814738c6a1c3..405099711271b85b449314c04eda96ba8bbaf0d2 100644
--- a/ui/aura/cursor_manager.h
+++ b/ui/aura/cursor_manager.h
@@ -26,6 +26,8 @@ class AURA_EXPORT CursorManager {
void LockCursor();
void UnlockCursor();
+ bool is_cursor_locked() const { return cursor_lock_count_ > 0; }
+
void SetCursor(gfx::NativeCursor);
// Shows or hides the cursor.
@@ -55,4 +57,3 @@ class AURA_EXPORT CursorManager {
} // namespace aura
#endif // UI_AURA_CURSOR_MANAGER_H_
-
« no previous file with comments | « ash/display/mouse_cursor_event_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698