| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DELEGATE_H_ | 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ |
| 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ | 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ |
| 7 | 7 |
| 8 namespace gfx { | 8 namespace gfx { |
| 9 class Size; | 9 class Size; |
| 10 } | 10 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // Called when an event arrives. | 35 // Called when an event arrives. |
| 36 virtual void OnEvent(const ui::Event& event) = 0; | 36 virtual void OnEvent(const ui::Event& event) = 0; |
| 37 | 37 |
| 38 // Called when the Display loses capture. | 38 // Called when the Display loses capture. |
| 39 virtual void OnNativeCaptureLost() = 0; | 39 virtual void OnNativeCaptureLost() = 0; |
| 40 | 40 |
| 41 // Signals that the metrics of this display's viewport has changed. | 41 // Signals that the metrics of this display's viewport has changed. |
| 42 virtual void OnViewportMetricsChanged(const ViewportMetrics& old_metrics, | 42 virtual void OnViewportMetricsChanged(const ViewportMetrics& old_metrics, |
| 43 const ViewportMetrics& new_metrics) = 0; | 43 const ViewportMetrics& new_metrics) = 0; |
| 44 | 44 |
| 45 // Called when a compositor frame is finished drawing. | |
| 46 virtual void OnCompositorFrameDrawn() = 0; | |
| 47 | |
| 48 protected: | 45 protected: |
| 49 virtual ~PlatformDisplayDelegate() {} | 46 virtual ~PlatformDisplayDelegate() {} |
| 50 }; | 47 }; |
| 51 | 48 |
| 52 } // namespace ws | 49 } // namespace ws |
| 53 | 50 |
| 54 } // namespace ui | 51 } // namespace ui |
| 55 | 52 |
| 56 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ | 53 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ |
| OLD | NEW |