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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_DELEGATE_H_ | 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_DELEGATE_H_ |
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_DELEGATE_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_DELEGATE_H_ |
7 | 7 |
8 namespace mojo { | 8 namespace mojo { |
9 namespace view_manager { | |
10 | 9 |
11 class Node; | 10 class Node; |
12 class ViewManager; | 11 class ViewManager; |
13 | 12 |
14 class ViewManagerDelegate { | 13 class ViewManagerDelegate { |
15 public: | 14 public: |
16 virtual void OnRootAdded(ViewManager* view_manager, Node* root) = 0; | 15 virtual void OnRootAdded(ViewManager* view_manager, Node* root) = 0; |
17 virtual void OnViewManagerDisconnected(ViewManager* view_manager) = 0; | 16 virtual void OnViewManagerDisconnected(ViewManager* view_manager) = 0; |
18 | 17 |
19 protected: | 18 protected: |
20 virtual ~ViewManagerDelegate() {} | 19 virtual ~ViewManagerDelegate() {} |
21 }; | 20 }; |
22 | 21 |
23 } // namespace view_manager | |
24 } // namespace mojo | 22 } // namespace mojo |
25 | 23 |
26 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_DELEGATE_H_ | 24 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_DELEGATE_H_ |
OLD | NEW |