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 COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_ |
6 #define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_ | 6 #define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_ |
7 | 7 |
8 #include "components/mus/public/interfaces/window_tree.mojom.h" | 8 #include "components/mus/public/interfaces/window_tree.mojom.h" |
9 #include "components/mus/ws/ids.h" | 9 #include "components/mus/ws/ids.h" |
10 | 10 |
11 namespace cc { | |
12 struct SurfaceId; | |
13 } | |
14 | |
15 namespace ui { | 11 namespace ui { |
16 class Event; | 12 class Event; |
17 } | 13 } |
18 | 14 |
19 namespace mus { | 15 namespace mus { |
20 | 16 |
21 namespace ws { | 17 namespace ws { |
22 | 18 |
23 class ServerWindow; | 19 class ServerWindow; |
24 | 20 |
(...skipping 12 matching lines...) Expand all Loading... |
37 virtual void OnEvent(const ui::Event& event) = 0; | 33 virtual void OnEvent(const ui::Event& event) = 0; |
38 | 34 |
39 // Called when the Display loses capture. | 35 // Called when the Display loses capture. |
40 virtual void OnNativeCaptureLost() = 0; | 36 virtual void OnNativeCaptureLost() = 0; |
41 | 37 |
42 // Signals that the metrics of this display's viewport has changed. | 38 // Signals that the metrics of this display's viewport has changed. |
43 virtual void OnViewportMetricsChanged( | 39 virtual void OnViewportMetricsChanged( |
44 const mojom::ViewportMetrics& old_metrics, | 40 const mojom::ViewportMetrics& old_metrics, |
45 const mojom::ViewportMetrics& new_metrics) = 0; | 41 const mojom::ViewportMetrics& new_metrics) = 0; |
46 | 42 |
47 virtual void OnTopLevelSurfaceChanged(cc::SurfaceId surface_id) = 0; | |
48 | |
49 // Called when a compositor frame is finished drawing. | 43 // Called when a compositor frame is finished drawing. |
50 virtual void OnCompositorFrameDrawn() = 0; | 44 virtual void OnCompositorFrameDrawn() = 0; |
51 | 45 |
52 protected: | 46 protected: |
53 virtual ~PlatformDisplayDelegate() {} | 47 virtual ~PlatformDisplayDelegate() {} |
54 }; | 48 }; |
55 | 49 |
56 } // namespace ws | 50 } // namespace ws |
57 | 51 |
58 } // namespace mus | 52 } // namespace mus |
59 | 53 |
60 #endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_ | 54 #endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_ |
OLD | NEW |