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

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

Issue 2127383003: mus: Introduce high-contrast mode in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698