OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ | |
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "base/basictypes.h" | |
11 | |
12 namespace mojo { | |
13 namespace services { | |
14 namespace view_manager { | |
15 | |
16 class View; | |
17 | |
18 class ViewObserver { | |
19 public: | |
20 enum DispositionChangePhase { | |
21 DISPOSITION_CHANGING, | |
22 DISPOSITION_CHANGED | |
23 }; | |
24 | |
25 virtual void OnViewDestroy(View* view, DispositionChangePhase phase) {} | |
26 | |
27 protected: | |
28 virtual ~ViewObserver() {} | |
29 }; | |
30 | |
31 } // namespace view_manager | |
32 } // namespace services | |
33 } // namespace mojo | |
34 | |
35 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ | |
OLD | NEW |