| 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 "services/ui/ws/platform_display.h" | 5 #include "services/ui/ws/platform_display.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/ipc/quads.mojom.h" | 9 #include "cc/ipc/quads.mojom.h" |
| 10 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 void DefaultPlatformDisplay::OnClosed() {} | 271 void DefaultPlatformDisplay::OnClosed() {} |
| 272 | 272 |
| 273 void DefaultPlatformDisplay::OnWindowStateChanged( | 273 void DefaultPlatformDisplay::OnWindowStateChanged( |
| 274 ui::PlatformWindowState new_state) {} | 274 ui::PlatformWindowState new_state) {} |
| 275 | 275 |
| 276 void DefaultPlatformDisplay::OnLostCapture() { | 276 void DefaultPlatformDisplay::OnLostCapture() { |
| 277 delegate_->OnNativeCaptureLost(); | 277 delegate_->OnNativeCaptureLost(); |
| 278 } | 278 } |
| 279 | 279 |
| 280 void DefaultPlatformDisplay::OnAcceleratedWidgetAvailable( | 280 void DefaultPlatformDisplay::OnAcceleratedWidgetAvailable( |
| 281 gfx::AcceleratedWidget widget, | 281 gpu::SurfaceHandle widget, |
| 282 float device_scale_factor) { | 282 float device_scale_factor) { |
| 283 frame_generator_->OnAcceleratedWidgetAvailable(widget); | 283 frame_generator_->OnAcceleratedWidgetAvailable(widget); |
| 284 } | 284 } |
| 285 | 285 |
| 286 void DefaultPlatformDisplay::OnAcceleratedWidgetDestroyed() { | 286 void DefaultPlatformDisplay::OnAcceleratedWidgetDestroyed() { |
| 287 NOTREACHED(); | 287 NOTREACHED(); |
| 288 } | 288 } |
| 289 | 289 |
| 290 void DefaultPlatformDisplay::OnActivationChanged(bool active) {} | 290 void DefaultPlatformDisplay::OnActivationChanged(bool active) {} |
| 291 | 291 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 302 return delegate_ ? delegate_->IsInHighContrastMode() : false; | 302 return delegate_ ? delegate_->IsInHighContrastMode() : false; |
| 303 } | 303 } |
| 304 | 304 |
| 305 const ViewportMetrics& DefaultPlatformDisplay::GetViewportMetrics() { | 305 const ViewportMetrics& DefaultPlatformDisplay::GetViewportMetrics() { |
| 306 return metrics_; | 306 return metrics_; |
| 307 } | 307 } |
| 308 | 308 |
| 309 } // namespace ws | 309 } // namespace ws |
| 310 | 310 |
| 311 } // namespace ui | 311 } // namespace ui |
| OLD | NEW |