| 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "ui/aura/client/cursor_client.h" | 12 #include "ui/aura/client/cursor_client.h" |
| 13 #include "ui/base/cursor/cursor.h" | 13 #include "ui/base/cursor/cursor.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 15 #include "ui/gfx/point.h" | 15 #include "ui/gfx/point.h" |
| 16 #include "ui/wm/core/native_cursor_manager_delegate.h" | 16 #include "ui/wm/core/native_cursor_manager_delegate.h" |
| 17 #include "ui/wm/core/wm_core_export.h" | 17 #include "ui/wm/core/wm_core_export.h" |
| 18 | 18 |
| 19 namespace gfx { | 19 namespace gfx { |
| 20 class Display; | 20 class Display; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace views { | 23 namespace wm { |
| 24 namespace corewm { | |
| 25 | 24 |
| 26 namespace internal { | 25 namespace internal { |
| 27 class CursorState; | 26 class CursorState; |
| 28 } | 27 } |
| 29 | 28 |
| 30 class NativeCursorManager; | 29 class NativeCursorManager; |
| 31 | 30 |
| 32 // This class receives requests to change cursor properties, as well as | 31 // This class receives requests to change cursor properties, as well as |
| 33 // requests to queue any further changes until a later time. It sends changes | 32 // requests to queue any further changes until a later time. It sends changes |
| 34 // to the NativeCursorManager, which communicates back to us when these changes | 33 // to the NativeCursorManager, which communicates back to us when these changes |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 scoped_ptr<internal::CursorState> current_state_; | 78 scoped_ptr<internal::CursorState> current_state_; |
| 80 | 79 |
| 81 // The cursor state to restore when the cursor is unlocked. | 80 // The cursor state to restore when the cursor is unlocked. |
| 82 scoped_ptr<internal::CursorState> state_on_unlock_; | 81 scoped_ptr<internal::CursorState> state_on_unlock_; |
| 83 | 82 |
| 84 ObserverList<aura::client::CursorClientObserver> observers_; | 83 ObserverList<aura::client::CursorClientObserver> observers_; |
| 85 | 84 |
| 86 DISALLOW_COPY_AND_ASSIGN(CursorManager); | 85 DISALLOW_COPY_AND_ASSIGN(CursorManager); |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 } // namespace corewm | 88 } // namespace wm |
| 90 } // namespace views | |
| 91 | 89 |
| 92 #endif // UI_WM_CORE_CURSOR_MANAGER_H_ | 90 #endif // UI_WM_CORE_CURSOR_MANAGER_H_ |
| OLD | NEW |