Chromium Code Reviews| 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); |