OLD | NEW |
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 Loading... |
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::SetCursorSize(const ui::CursorSize& cursor_size) { |
| 148 image_cursors_->SetCursorSize(cursor_size); |
| 149 } |
| 150 |
147 void PlatformDisplayDefault::UpdateTextInputState( | 151 void PlatformDisplayDefault::UpdateTextInputState( |
148 const ui::TextInputState& state) { | 152 const ui::TextInputState& state) { |
149 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); | 153 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); |
150 if (ime) | 154 if (ime) |
151 ime->UpdateTextInputState(state); | 155 ime->UpdateTextInputState(state); |
152 } | 156 } |
153 | 157 |
154 void PlatformDisplayDefault::SetImeVisibility(bool visible) { | 158 void PlatformDisplayDefault::SetImeVisibility(bool visible) { |
155 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); | 159 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); |
156 if (ime) | 160 if (ime) |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 } | 273 } |
270 | 274 |
271 void PlatformDisplayDefault::OnAcceleratedWidgetDestroyed() { | 275 void PlatformDisplayDefault::OnAcceleratedWidgetDestroyed() { |
272 NOTREACHED(); | 276 NOTREACHED(); |
273 } | 277 } |
274 | 278 |
275 void PlatformDisplayDefault::OnActivationChanged(bool active) {} | 279 void PlatformDisplayDefault::OnActivationChanged(bool active) {} |
276 | 280 |
277 } // namespace ws | 281 } // namespace ws |
278 } // namespace ui | 282 } // namespace ui |
OLD | NEW |