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