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

Unified Diff: services/ui/ws/platform_display_default.cc

Issue 2759933007: [mus]Add FrameGenerator::SetHighContrastMode(bool) (Closed)
Patch Set: Addressed nits Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/platform_display_default.h ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display_default.cc
diff --git a/services/ui/ws/platform_display_default.cc b/services/ui/ws/platform_display_default.cc
index 43fed49ee090ad7ddb617469dd9123fafc337aa7..a126d699c0df820a8eb3ad71a2dd2ebf75ed8794 100644
--- a/services/ui/ws/platform_display_default.cc
+++ b/services/ui/ws/platform_display_default.cc
@@ -257,7 +257,7 @@ void PlatformDisplayDefault::OnAcceleratedWidgetAvailable(
std::move(display_private),
std::move(compositor_frame_sink_client_request));
frame_generator_ = base::MakeUnique<FrameGenerator>(
- this, root_window_, std::move(display_client_compositor_frame_sink));
+ root_window_, std::move(display_client_compositor_frame_sink));
frame_generator_->SetDeviceScaleFactor(init_device_scale_factor_);
}
@@ -267,9 +267,5 @@ void PlatformDisplayDefault::OnAcceleratedWidgetDestroyed() {
void PlatformDisplayDefault::OnActivationChanged(bool active) {}
-bool PlatformDisplayDefault::IsInHighContrastMode() {
- return delegate_ ? delegate_->IsInHighContrastMode() : false;
-}
-
} // namespace ws
} // namespace ui
« no previous file with comments | « services/ui/ws/platform_display_default.h ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698