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

Unified Diff: services/ui/ws/frame_generator.h

Issue 2759933007: [mus]Add FrameGenerator::SetHighContrastMode(bool) (Closed)
Patch Set: 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
Index: services/ui/ws/frame_generator.h
diff --git a/services/ui/ws/frame_generator.h b/services/ui/ws/frame_generator.h
index baf047913dc4f5dd9548605317820170054c7b86..49d0fb097631e866e561998d359a27a9ea877941 100644
--- a/services/ui/ws/frame_generator.h
+++ b/services/ui/ws/frame_generator.h
@@ -37,12 +37,12 @@ class FrameGenerator : public cc::CompositorFrameSinkClient,
public cc::BeginFrameObserver {
public:
FrameGenerator(
- FrameGeneratorDelegate* delegate,
ServerWindow* root_window,
std::unique_ptr<cc::CompositorFrameSink> compositor_frame_sink);
~FrameGenerator() override;
void SetDeviceScaleFactor(float device_scale_factor);
+ void SetHighContrastMode(bool enabled);
// Updates the WindowManager's SurfaceInfo.
void OnSurfaceCreated(const cc::SurfaceInfo& surface_info);
@@ -88,6 +88,7 @@ class FrameGenerator : public cc::CompositorFrameSinkClient,
cc::BeginFrameArgs last_begin_frame_args_;
cc::BeginFrameSource* begin_frame_source_ = nullptr;
bool observing_begin_frames_ = false;
+ bool high_contrast_mode_enabled_ = false;
cc::SurfaceInfo window_manager_surface_info_;

Powered by Google App Engine
This is Rietveld 408576698