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

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

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/frame_generator_delegate.h ('k') | services/ui/ws/platform_display.cc » ('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 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_H_
6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 135 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
136 void OnLostCapture() override; 136 void OnLostCapture() override;
137 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 137 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
138 float device_scale_factor) override; 138 float device_scale_factor) override;
139 void OnAcceleratedWidgetDestroyed() override; 139 void OnAcceleratedWidgetDestroyed() override;
140 void OnActivationChanged(bool active) override; 140 void OnActivationChanged(bool active) override;
141 141
142 // FrameGeneratorDelegate: 142 // FrameGeneratorDelegate:
143 ServerWindow* GetRootWindow() override; 143 ServerWindow* GetRootWindow() override;
144 void OnCompositorFrameDrawn() override; 144 void OnCompositorFrameDrawn() override;
145 bool IsInHighContrastMode() override;
145 const ViewportMetrics& GetViewportMetrics() override; 146 const ViewportMetrics& GetViewportMetrics() override;
146 147
147 int64_t display_id_; 148 int64_t display_id_;
148 149
149 #if !defined(OS_ANDROID) 150 #if !defined(OS_ANDROID)
150 std::unique_ptr<ui::CursorLoader> cursor_loader_; 151 std::unique_ptr<ui::CursorLoader> cursor_loader_;
151 #endif 152 #endif
152 153
153 PlatformDisplayDelegate* delegate_ = nullptr; 154 PlatformDisplayDelegate* delegate_ = nullptr;
154 std::unique_ptr<FrameGenerator> frame_generator_; 155 std::unique_ptr<FrameGenerator> frame_generator_;
155 156
156 ViewportMetrics metrics_; 157 ViewportMetrics metrics_;
157 std::unique_ptr<ui::PlatformWindow> platform_window_; 158 std::unique_ptr<ui::PlatformWindow> platform_window_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); 160 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay);
160 }; 161 };
161 162
162 } // namespace ws 163 } // namespace ws
163 164
164 } // namespace ui 165 } // namespace ui
165 166
166 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 167 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_
OLDNEW
« no previous file with comments | « services/ui/ws/frame_generator_delegate.h ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698