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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_cursor_manager.cc

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: rename everything to CursorSize Created 3 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/widget/desktop_aura/desktop_native_cursor_manager.h" 5 #include "ui/views/widget/desktop_aura/desktop_native_cursor_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ui/aura/window_event_dispatcher.h" 9 #include "ui/aura/window_event_dispatcher.h"
10 #include "ui/aura/window_tree_host.h" 10 #include "ui/aura/window_tree_host.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 gfx::NativeCursor invisible_cursor(ui::CursorType::kNone); 67 gfx::NativeCursor invisible_cursor(ui::CursorType::kNone);
68 cursor_loader_->SetPlatformCursor(&invisible_cursor); 68 cursor_loader_->SetPlatformCursor(&invisible_cursor);
69 for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i) 69 for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i)
70 (*i)->SetCursor(invisible_cursor); 70 (*i)->SetCursor(invisible_cursor);
71 } 71 }
72 72
73 for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i) 73 for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i)
74 (*i)->OnCursorVisibilityChanged(visible); 74 (*i)->OnCursorVisibilityChanged(visible);
75 } 75 }
76 76
77 void DesktopNativeCursorManager::SetCursorSet( 77 void DesktopNativeCursorManager::SetCursorSize(
78 ui::CursorSetType cursor_set, 78 ui::CursorSize cursor_size,
79 wm::NativeCursorManagerDelegate* delegate) { 79 wm::NativeCursorManagerDelegate* delegate) {
80 NOTIMPLEMENTED(); 80 NOTIMPLEMENTED();
81 } 81 }
82 82
83 void DesktopNativeCursorManager::SetMouseEventsEnabled( 83 void DesktopNativeCursorManager::SetMouseEventsEnabled(
84 bool enabled, 84 bool enabled,
85 wm::NativeCursorManagerDelegate* delegate) { 85 wm::NativeCursorManagerDelegate* delegate) {
86 delegate->CommitMouseEventsEnabled(enabled); 86 delegate->CommitMouseEventsEnabled(enabled);
87 87
88 // TODO(erg): In the ash version, we set the last mouse location on Env. I'm 88 // TODO(erg): In the ash version, we set the last mouse location on Env. I'm
89 // not sure this concept makes sense on the desktop. 89 // not sure this concept makes sense on the desktop.
90 90
91 SetVisibility(delegate->IsCursorVisible(), delegate); 91 SetVisibility(delegate->IsCursorVisible(), delegate);
92 92
93 for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i) 93 for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i)
94 (*i)->dispatcher()->OnMouseEventsEnableStateChanged(enabled); 94 (*i)->dispatcher()->OnMouseEventsEnableStateChanged(enabled);
95 } 95 }
96 96
97 } // namespace views 97 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_cursor_manager.h ('k') | ui/wm/core/cursor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698