Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: ui/wm/core/cursor_manager.cc

Issue 196063002: Move wm/core to wm namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/wm/core/cursor_manager.h ('k') | ui/wm/core/cursor_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/wm/core/cursor_manager.h ('k') | ui/wm/core/cursor_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698