| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/mus/ws/display_manager.h" | 5 #include "components/mus/ws/display_manager.h" |
| 6 | 6 |
| 7 #include "base/numerics/safe_conversions.h" | 7 #include "base/numerics/safe_conversions.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
| 10 #include "cc/output/delegated_frame_data.h" | 10 #include "cc/output/delegated_frame_data.h" |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 ui::Cursor cursor(cursor_id); | 247 ui::Cursor cursor(cursor_id); |
| 248 cursor_loader_->SetPlatformCursor(&cursor); | 248 cursor_loader_->SetPlatformCursor(&cursor); |
| 249 platform_window_->SetCursor(cursor.platform()); | 249 platform_window_->SetCursor(cursor.platform()); |
| 250 #endif | 250 #endif |
| 251 } | 251 } |
| 252 | 252 |
| 253 const mojom::ViewportMetrics& DefaultDisplayManager::GetViewportMetrics() { | 253 const mojom::ViewportMetrics& DefaultDisplayManager::GetViewportMetrics() { |
| 254 return metrics_; | 254 return metrics_; |
| 255 } | 255 } |
| 256 | 256 |
| 257 mojom::Rotation DefaultDisplayManager::GetRotation() { |
| 258 // TODO(sky): implement me. |
| 259 return mojom::Rotation::VALUE_0; |
| 260 } |
| 261 |
| 257 void DefaultDisplayManager::UpdateTextInputState( | 262 void DefaultDisplayManager::UpdateTextInputState( |
| 258 const ui::TextInputState& state) { | 263 const ui::TextInputState& state) { |
| 259 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); | 264 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); |
| 260 if (ime) | 265 if (ime) |
| 261 ime->UpdateTextInputState(state); | 266 ime->UpdateTextInputState(state); |
| 262 } | 267 } |
| 263 | 268 |
| 264 void DefaultDisplayManager::SetImeVisibility(bool visible) { | 269 void DefaultDisplayManager::SetImeVisibility(bool visible) { |
| 265 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); | 270 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); |
| 266 if (ime) | 271 if (ime) |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 | 420 |
| 416 void DefaultDisplayManager::OnAcceleratedWidgetDestroyed() { | 421 void DefaultDisplayManager::OnAcceleratedWidgetDestroyed() { |
| 417 NOTREACHED(); | 422 NOTREACHED(); |
| 418 } | 423 } |
| 419 | 424 |
| 420 void DefaultDisplayManager::OnActivationChanged(bool active) {} | 425 void DefaultDisplayManager::OnActivationChanged(bool active) {} |
| 421 | 426 |
| 422 } // namespace ws | 427 } // namespace ws |
| 423 | 428 |
| 424 } // namespace mus | 429 } // namespace mus |
| OLD | NEW |