| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_WM_CORE_CURSOR_MANAGER_H_ | 5 #ifndef UI_WM_CORE_CURSOR_MANAGER_H_ |
| 6 #define UI_WM_CORE_CURSOR_MANAGER_H_ | 6 #define UI_WM_CORE_CURSOR_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 int cursor_lock_count_; | 75 int cursor_lock_count_; |
| 76 | 76 |
| 77 // The current state of the cursor. | 77 // The current state of the cursor. |
| 78 scoped_ptr<internal::CursorState> current_state_; | 78 scoped_ptr<internal::CursorState> current_state_; |
| 79 | 79 |
| 80 // The cursor state to restore when the cursor is unlocked. | 80 // The cursor state to restore when the cursor is unlocked. |
| 81 scoped_ptr<internal::CursorState> state_on_unlock_; | 81 scoped_ptr<internal::CursorState> state_on_unlock_; |
| 82 | 82 |
| 83 base::ObserverList<aura::client::CursorClientObserver> observers_; | 83 base::ObserverList<aura::client::CursorClientObserver> observers_; |
| 84 | 84 |
| 85 // This flag holds the cursor visibility state for the duration of the |
| 86 // process. Defaults to true. This flag helps ensure that when a |
| 87 // CursorManager instance is created it gets populated with the correct |
| 88 // cursor visibility state. |
| 89 static bool last_cursor_visibility_state_; |
| 90 |
| 85 DISALLOW_COPY_AND_ASSIGN(CursorManager); | 91 DISALLOW_COPY_AND_ASSIGN(CursorManager); |
| 86 }; | 92 }; |
| 87 | 93 |
| 88 } // namespace wm | 94 } // namespace wm |
| 89 | 95 |
| 90 #endif // UI_WM_CORE_CURSOR_MANAGER_H_ | 96 #endif // UI_WM_CORE_CURSOR_MANAGER_H_ |
| OLD | NEW |