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 #include "ui/views/corewm/cursor_manager.h" | 5 #include "ui/wm/core/cursor_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ui/aura/client/cursor_client_observer.h" | 8 #include "ui/aura/client/cursor_client_observer.h" |
9 #include "ui/views/corewm/native_cursor_manager.h" | 9 #include "ui/wm/core/native_cursor_manager.h" |
10 #include "ui/views/corewm/native_cursor_manager_delegate.h" | 10 #include "ui/wm/core/native_cursor_manager_delegate.h" |
11 | 11 |
12 namespace views { | 12 namespace views { |
13 namespace corewm { | 13 namespace corewm { |
14 | 14 |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 // Represents the cursor state which is composed of cursor type, visibility, and | 17 // Represents the cursor state which is composed of cursor type, visibility, and |
18 // mouse events enable state. When mouse events are disabled, the cursor is | 18 // mouse events enable state. When mouse events are disabled, the cursor is |
19 // always invisible. | 19 // always invisible. |
20 class CursorState { | 20 class CursorState { |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 void CursorManager::CommitCursorSet(ui::CursorSetType cursor_set) { | 226 void CursorManager::CommitCursorSet(ui::CursorSetType cursor_set) { |
227 current_state_->set_cursor_set(cursor_set); | 227 current_state_->set_cursor_set(cursor_set); |
228 } | 228 } |
229 | 229 |
230 void CursorManager::CommitMouseEventsEnabled(bool enabled) { | 230 void CursorManager::CommitMouseEventsEnabled(bool enabled) { |
231 current_state_->SetMouseEventsEnabled(enabled); | 231 current_state_->SetMouseEventsEnabled(enabled); |
232 } | 232 } |
233 | 233 |
234 } // namespace corewm | 234 } // namespace corewm |
235 } // namespace views | 235 } // namespace views |
OLD | NEW |