OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PUBLIC_CPP_VIEW_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_DELEGATE_H_ |
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "third_party/mojo/src/mojo/public/interfaces/application/service_provid
er.mojom.h" | 10 #include "mojo/application/public/interfaces/service_provider.mojom.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 | 13 |
14 class View; | 14 class View; |
15 class ViewManager; | 15 class ViewManager; |
16 | 16 |
17 // Interface implemented by an application using the view manager. | 17 // Interface implemented by an application using the view manager. |
18 class ViewManagerDelegate { | 18 class ViewManagerDelegate { |
19 public: | 19 public: |
20 // Called when the application implementing this interface is embedded at | 20 // Called when the application implementing this interface is embedded at |
(...skipping 18 matching lines...) Expand all Loading... |
39 // |view_manager| is not valid after this function returns. | 39 // |view_manager| is not valid after this function returns. |
40 virtual void OnViewManagerDisconnected(ViewManager* view_manager) = 0; | 40 virtual void OnViewManagerDisconnected(ViewManager* view_manager) = 0; |
41 | 41 |
42 protected: | 42 protected: |
43 virtual ~ViewManagerDelegate() {} | 43 virtual ~ViewManagerDelegate() {} |
44 }; | 44 }; |
45 | 45 |
46 } // namespace mojo | 46 } // namespace mojo |
47 | 47 |
48 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_DELEGATE_H_ | 48 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_DELEGATE_H_ |
OLD | NEW |