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_DISPLAY_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_WS_DISPLAY_MANAGER_DELEGATE_H_ |
6 #define COMPONENTS_MUS_WS_DISPLAY_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_MUS_WS_DISPLAY_MANAGER_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 |
(...skipping 18 matching lines...) Expand all Loading... |
29 public: | 29 public: |
30 // Returns the root window of this display. | 30 // Returns the root window of this display. |
31 virtual ServerWindow* GetRootWindow() = 0; | 31 virtual ServerWindow* GetRootWindow() = 0; |
32 | 32 |
33 // Called when the window managed by the DisplayManager is closed. | 33 // Called when the window managed by the DisplayManager is closed. |
34 virtual void OnDisplayClosed() = 0; | 34 virtual void OnDisplayClosed() = 0; |
35 | 35 |
36 // Called when an event arrives. | 36 // Called when an event arrives. |
37 virtual void OnEvent(const ui::Event& event) = 0; | 37 virtual void OnEvent(const ui::Event& event) = 0; |
38 | 38 |
| 39 // Called when the Display loses capture. |
| 40 virtual void OnNativeCaptureLost() = 0; |
| 41 |
39 // Signals that the metrics of this display's viewport has changed. | 42 // Signals that the metrics of this display's viewport has changed. |
40 virtual void OnViewportMetricsChanged( | 43 virtual void OnViewportMetricsChanged( |
41 const mojom::ViewportMetrics& old_metrics, | 44 const mojom::ViewportMetrics& old_metrics, |
42 const mojom::ViewportMetrics& new_metrics) = 0; | 45 const mojom::ViewportMetrics& new_metrics) = 0; |
43 | 46 |
44 virtual void OnTopLevelSurfaceChanged(cc::SurfaceId surface_id) = 0; | 47 virtual void OnTopLevelSurfaceChanged(cc::SurfaceId surface_id) = 0; |
45 | 48 |
46 // Called when a compositor frame is finished drawing. | 49 // Called when a compositor frame is finished drawing. |
47 virtual void OnCompositorFrameDrawn() = 0; | 50 virtual void OnCompositorFrameDrawn() = 0; |
48 | 51 |
49 protected: | 52 protected: |
50 virtual ~DisplayManagerDelegate() {} | 53 virtual ~DisplayManagerDelegate() {} |
51 }; | 54 }; |
52 | 55 |
53 } // namespace ws | 56 } // namespace ws |
54 | 57 |
55 } // namespace mus | 58 } // namespace mus |
56 | 59 |
57 #endif // COMPONENTS_MUS_WS_DISPLAY_MANAGER_DELEGATE_H_ | 60 #endif // COMPONENTS_MUS_WS_DISPLAY_MANAGER_DELEGATE_H_ |
OLD | NEW |