OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_DEFAULT_H_ | 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ |
6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ | 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void OnCloseRequest() override; | 61 void OnCloseRequest() override; |
62 void OnClosed() override; | 62 void OnClosed() override; |
63 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; | 63 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; |
64 void OnLostCapture() override; | 64 void OnLostCapture() override; |
65 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | 65 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, |
66 float device_scale_factor) override; | 66 float device_scale_factor) override; |
67 void OnAcceleratedWidgetDestroyed() override; | 67 void OnAcceleratedWidgetDestroyed() override; |
68 void OnActivationChanged(bool active) override; | 68 void OnActivationChanged(bool active) override; |
69 | 69 |
70 // FrameGeneratorDelegate: | 70 // FrameGeneratorDelegate: |
71 ServerWindow* GetActiveRootWindow() override; | |
72 bool IsInHighContrastMode() override; | 71 bool IsInHighContrastMode() override; |
73 | 72 |
74 const int64_t display_id_; | 73 const int64_t display_id_; |
75 | 74 |
76 #if !defined(OS_ANDROID) | 75 #if !defined(OS_ANDROID) |
77 std::unique_ptr<ui::ImageCursors> image_cursors_; | 76 std::unique_ptr<ui::ImageCursors> image_cursors_; |
78 #endif | 77 #endif |
79 | 78 |
80 PlatformDisplayDelegate* delegate_ = nullptr; | 79 PlatformDisplayDelegate* delegate_ = nullptr; |
81 std::unique_ptr<FrameGenerator> frame_generator_; | 80 std::unique_ptr<FrameGenerator> frame_generator_; |
82 | 81 |
83 display::ViewportMetrics metrics_; | 82 display::ViewportMetrics metrics_; |
84 std::unique_ptr<ui::PlatformWindow> platform_window_; | 83 std::unique_ptr<ui::PlatformWindow> platform_window_; |
85 | 84 |
86 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); | 85 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); |
87 }; | 86 }; |
88 | 87 |
89 } // namespace ws | 88 } // namespace ws |
90 } // namespace ui | 89 } // namespace ui |
91 | 90 |
92 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ | 91 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ |
OLD | NEW |