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

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

Issue 233053003: Remove obsolete scale related APIs for cursor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix wm_core_unittests Created 6 years, 8 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
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 "ui/aura/window_event_dispatcher.h" 7 #include "ui/aura/window_event_dispatcher.h"
8 #include "ui/aura/window_tree_host.h" 8 #include "ui/aura/window_tree_host.h"
9 #include "ui/base/cursor/cursor_loader.h" 9 #include "ui/base/cursor/cursor_loader.h"
10 #include "ui/views/widget/desktop_aura/desktop_cursor_loader_updater.h" 10 #include "ui/views/widget/desktop_aura/desktop_cursor_loader_updater.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i) 78 for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i)
79 (*i)->OnCursorVisibilityChanged(visible); 79 (*i)->OnCursorVisibilityChanged(visible);
80 } 80 }
81 81
82 void DesktopNativeCursorManager::SetCursorSet( 82 void DesktopNativeCursorManager::SetCursorSet(
83 ui::CursorSetType cursor_set, 83 ui::CursorSetType cursor_set,
84 wm::NativeCursorManagerDelegate* delegate) { 84 wm::NativeCursorManagerDelegate* delegate) {
85 NOTIMPLEMENTED(); 85 NOTIMPLEMENTED();
86 } 86 }
87 87
88 void DesktopNativeCursorManager::SetScale(
89 float scale,
90 wm::NativeCursorManagerDelegate* delegate) {
91 NOTIMPLEMENTED();
92 }
93
94 void DesktopNativeCursorManager::SetMouseEventsEnabled( 88 void DesktopNativeCursorManager::SetMouseEventsEnabled(
95 bool enabled, 89 bool enabled,
96 wm::NativeCursorManagerDelegate* delegate) { 90 wm::NativeCursorManagerDelegate* delegate) {
97 delegate->CommitMouseEventsEnabled(enabled); 91 delegate->CommitMouseEventsEnabled(enabled);
98 92
99 // TODO(erg): In the ash version, we set the last mouse location on Env. I'm 93 // TODO(erg): In the ash version, we set the last mouse location on Env. I'm
100 // not sure this concept makes sense on the desktop. 94 // not sure this concept makes sense on the desktop.
101 95
102 SetVisibility(delegate->IsCursorVisible(), delegate); 96 SetVisibility(delegate->IsCursorVisible(), delegate);
103 97
104 for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i) 98 for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i)
105 (*i)->dispatcher()->OnMouseEventsEnableStateChanged(enabled); 99 (*i)->dispatcher()->OnMouseEventsEnableStateChanged(enabled);
106 } 100 }
107 101
108 } // namespace views 102 } // 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