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

Unified Diff: ui/aura/cursor_manager.cc

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 | « ui/aura/cursor_manager.h ('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.cc
diff --git a/ui/aura/cursor_manager.cc b/ui/aura/cursor_manager.cc
index 30c7af1c2891ca14a133e168b2538cdb67481452..34f284dff87250bbefa55a0f6c02a6aac91fc77b 100644
--- a/ui/aura/cursor_manager.cc
+++ b/ui/aura/cursor_manager.cc
@@ -25,6 +25,10 @@ void CursorManager::LockCursor() {
cursor_lock_count_++;
}
+bool CursorManager::IsCursorLocked() {
sky 2012/07/25 04:29:47 const and inline it.
oshima 2012/07/25 05:33:35 Done.
+ return cursor_lock_count_ > 0;
+}
+
void CursorManager::UnlockCursor() {
cursor_lock_count_--;
DCHECK_GE(cursor_lock_count_, 0);
« no previous file with comments | « ui/aura/cursor_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698