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

Side by Side Diff: services/ui/ws/platform_display_default.cc

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: Remove old cursor.h includes. Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "services/ui/ws/platform_display_default.h" 5 #include "services/ui/ws/platform_display_default.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "gpu/ipc/client/gpu_channel_host.h" 10 #include "gpu/ipc/client/gpu_channel_host.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #endif 137 #endif
138 138
139 platform_window_->SetCursor(native_cursor.platform()); 139 platform_window_->SetCursor(native_cursor.platform());
140 } 140 }
141 141
142 void PlatformDisplayDefault::MoveCursorTo( 142 void PlatformDisplayDefault::MoveCursorTo(
143 const gfx::Point& window_pixel_location) { 143 const gfx::Point& window_pixel_location) {
144 platform_window_->MoveCursorTo(window_pixel_location); 144 platform_window_->MoveCursorTo(window_pixel_location);
145 } 145 }
146 146
147 void PlatformDisplayDefault::SetCursorSet(
148 const ui::CursorSet& cursor_set_type) {
149 image_cursors_->SetCursorSet(cursor_set_type);
150 }
151
147 void PlatformDisplayDefault::UpdateTextInputState( 152 void PlatformDisplayDefault::UpdateTextInputState(
148 const ui::TextInputState& state) { 153 const ui::TextInputState& state) {
149 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); 154 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController();
150 if (ime) 155 if (ime)
151 ime->UpdateTextInputState(state); 156 ime->UpdateTextInputState(state);
152 } 157 }
153 158
154 void PlatformDisplayDefault::SetImeVisibility(bool visible) { 159 void PlatformDisplayDefault::SetImeVisibility(bool visible) {
155 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); 160 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController();
156 if (ime) 161 if (ime)
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 } 274 }
270 275
271 void PlatformDisplayDefault::OnAcceleratedWidgetDestroyed() { 276 void PlatformDisplayDefault::OnAcceleratedWidgetDestroyed() {
272 NOTREACHED(); 277 NOTREACHED();
273 } 278 }
274 279
275 void PlatformDisplayDefault::OnActivationChanged(bool active) {} 280 void PlatformDisplayDefault::OnActivationChanged(bool active) {}
276 281
277 } // namespace ws 282 } // namespace ws
278 } // namespace ui 283 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698