| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 ServerWindow* DefaultPlatformDisplay::GetRootWindow() { | 265 ServerWindow* DefaultPlatformDisplay::GetRootWindow() { |
| 266 return delegate_->GetRootWindow(); | 266 return delegate_->GetRootWindow(); |
| 267 } | 267 } |
| 268 | 268 |
| 269 void DefaultPlatformDisplay::OnCompositorFrameDrawn() { | 269 void DefaultPlatformDisplay::OnCompositorFrameDrawn() { |
| 270 if (delegate_) | 270 if (delegate_) |
| 271 delegate_->OnCompositorFrameDrawn(); | 271 delegate_->OnCompositorFrameDrawn(); |
| 272 } | 272 } |
| 273 | 273 |
| 274 bool DefaultPlatformDisplay::IsInHighContrastMode() { |
| 275 return delegate_ ? delegate_->IsInHighContrastMode() : false; |
| 276 } |
| 277 |
| 274 const ViewportMetrics& DefaultPlatformDisplay::GetViewportMetrics() { | 278 const ViewportMetrics& DefaultPlatformDisplay::GetViewportMetrics() { |
| 275 return metrics_; | 279 return metrics_; |
| 276 } | 280 } |
| 277 | 281 |
| 278 } // namespace ws | 282 } // namespace ws |
| 279 | 283 |
| 280 } // namespace ui | 284 } // namespace ui |
| OLD | NEW |