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