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_VIEW_MANAGER_DISPLAY_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_DISPLAY_MANAGER_DELEGATE_H_ |
6 #define COMPONENTS_VIEW_MANAGER_DISPLAY_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_MUS_DISPLAY_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include "components/view_manager/public/interfaces/view_tree.mojom.h" | 8 #include "components/mus/public/interfaces/view_tree.mojom.h" |
9 | 9 |
10 namespace view_manager { | 10 namespace view_manager { |
11 | 11 |
12 class ServerView; | 12 class ServerView; |
13 | 13 |
14 // A DisplayManagerDelegate an interface to be implemented by an object that | 14 // A DisplayManagerDelegate an interface to be implemented by an object that |
15 // manages the lifetime of a DisplayManager, forwards events to the appropriate | 15 // manages the lifetime of a DisplayManager, forwards events to the appropriate |
16 // views, and responses to changes in viewport size. | 16 // views, and responses to changes in viewport size. |
17 class DisplayManagerDelegate { | 17 class DisplayManagerDelegate { |
18 public: | 18 public: |
(...skipping 10 matching lines...) Expand all Loading... |
29 virtual void OnViewportMetricsChanged( | 29 virtual void OnViewportMetricsChanged( |
30 const mojo::ViewportMetrics& old_metrics, | 30 const mojo::ViewportMetrics& old_metrics, |
31 const mojo::ViewportMetrics& new_metrics) = 0; | 31 const mojo::ViewportMetrics& new_metrics) = 0; |
32 | 32 |
33 protected: | 33 protected: |
34 virtual ~DisplayManagerDelegate() {} | 34 virtual ~DisplayManagerDelegate() {} |
35 }; | 35 }; |
36 | 36 |
37 } // namespace view_manager | 37 } // namespace view_manager |
38 | 38 |
39 #endif // COMPONENTS_VIEW_MANAGER_DISPLAY_MANAGER_DELEGATE_H_ | 39 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_DELEGATE_H_ |
OLD | NEW |