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 #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 Loading... |
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_ |
OLD | NEW |