| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 void OnClosed() override; | 162 void OnClosed() override; |
| 163 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; | 163 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; |
| 164 void OnLostCapture() override; | 164 void OnLostCapture() override; |
| 165 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | 165 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, |
| 166 float device_scale_factor) override; | 166 float device_scale_factor) override; |
| 167 void OnAcceleratedWidgetDestroyed() override; | 167 void OnAcceleratedWidgetDestroyed() override; |
| 168 void OnActivationChanged(bool active) override; | 168 void OnActivationChanged(bool active) override; |
| 169 | 169 |
| 170 // FrameGeneratorDelegate: | 170 // FrameGeneratorDelegate: |
| 171 ServerWindow* GetRootWindow() override; | 171 ServerWindow* GetRootWindow() override; |
| 172 void OnCompositorFrameDrawn() override; | |
| 173 bool IsInHighContrastMode() override; | 172 bool IsInHighContrastMode() override; |
| 174 const ViewportMetrics& GetViewportMetrics() override; | 173 const ViewportMetrics& GetViewportMetrics() override; |
| 175 | 174 |
| 176 int64_t id_; | 175 int64_t id_; |
| 177 | 176 |
| 178 #if !defined(OS_ANDROID) | 177 #if !defined(OS_ANDROID) |
| 179 std::unique_ptr<ui::CursorLoader> cursor_loader_; | 178 std::unique_ptr<ui::CursorLoader> cursor_loader_; |
| 180 #endif | 179 #endif |
| 181 | 180 |
| 182 PlatformDisplayDelegate* delegate_ = nullptr; | 181 PlatformDisplayDelegate* delegate_ = nullptr; |
| 183 std::unique_ptr<FrameGenerator> frame_generator_; | 182 std::unique_ptr<FrameGenerator> frame_generator_; |
| 184 | 183 |
| 185 ViewportMetrics metrics_; | 184 ViewportMetrics metrics_; |
| 186 std::unique_ptr<ui::PlatformWindow> platform_window_; | 185 std::unique_ptr<ui::PlatformWindow> platform_window_; |
| 187 | 186 |
| 188 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); | 187 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); |
| 189 }; | 188 }; |
| 190 | 189 |
| 191 } // namespace ws | 190 } // namespace ws |
| 192 | 191 |
| 193 } // namespace ui | 192 } // namespace ui |
| 194 | 193 |
| 195 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ | 194 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ |
| OLD | NEW |