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_FRAME_GENERATOR_DELEGATE_H_ | 5 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ |
6 #define SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ | 6 #define SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "services/ui/ws/viewport_metrics.h" | 9 #include "services/ui/display/viewport_metrics.h" |
10 | 10 |
11 namespace ui { | 11 namespace ui { |
12 namespace ws { | 12 namespace ws { |
13 | 13 |
14 class ServerWindow; | 14 class ServerWindow; |
15 | 15 |
16 class FrameGeneratorDelegate { | 16 class FrameGeneratorDelegate { |
17 public: | 17 public: |
18 // Returns the root window of the display. | 18 // Returns the root window of the display. |
19 virtual ServerWindow* GetRootWindow() = 0; | 19 virtual ServerWindow* GetRootWindow() = 0; |
20 | 20 |
21 virtual bool IsInHighContrastMode() = 0; | 21 virtual bool IsInHighContrastMode() = 0; |
22 | 22 |
23 virtual const ViewportMetrics& GetViewportMetrics() = 0; | 23 virtual const display::ViewportMetrics& GetViewportMetrics() const = 0; |
24 | 24 |
25 protected: | 25 protected: |
26 virtual ~FrameGeneratorDelegate() {} | 26 virtual ~FrameGeneratorDelegate() {} |
27 }; | 27 }; |
28 | 28 |
29 } // namespace ws | 29 } // namespace ws |
30 } // namespace ui | 30 } // namespace ui |
31 | 31 |
32 #endif // SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ | 32 #endif // SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ |
OLD | NEW |