| 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/ws/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 // Called when a compositor frame is finished drawing. | |
| 22 virtual void OnCompositorFrameDrawn() = 0; | |
| 23 | |
| 24 virtual bool IsInHighContrastMode() = 0; | 21 virtual bool IsInHighContrastMode() = 0; |
| 25 | 22 |
| 26 virtual const ViewportMetrics& GetViewportMetrics() = 0; | 23 virtual const ViewportMetrics& GetViewportMetrics() = 0; |
| 27 | 24 |
| 28 protected: | 25 protected: |
| 29 virtual ~FrameGeneratorDelegate() {} | 26 virtual ~FrameGeneratorDelegate() {} |
| 30 }; | 27 }; |
| 31 | 28 |
| 32 } // namespace ws | 29 } // namespace ws |
| 33 } // namespace ui | 30 } // namespace ui |
| 34 | 31 |
| 35 #endif // SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ | 32 #endif // SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ |
| OLD | NEW |