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_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 | 11 |
12 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h" | 12 #include "mojo/services/input_events/public/interfaces/input_events.mojom.h" |
13 #include "mojo/services/view_manager/public/cpp/view.h" | 13 #include "mojo/services/view_manager/public/cpp/view.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 | 16 |
17 class View; | 17 class View; |
18 | 18 |
19 // A note on -ing and -ed suffixes: | 19 // A note on -ing and -ed suffixes: |
20 // | 20 // |
21 // -ing methods are called before changes are applied to the local view model. | 21 // -ing methods are called before changes are applied to the local view model. |
22 // -ed methods are called after changes are applied to the local view model. | 22 // -ed methods are called after changes are applied to the local view model. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 virtual void OnViewDrawnChanging(View* view) {} | 91 virtual void OnViewDrawnChanging(View* view) {} |
92 virtual void OnViewDrawnChanged(View* view) {} | 92 virtual void OnViewDrawnChanged(View* view) {} |
93 | 93 |
94 protected: | 94 protected: |
95 virtual ~ViewObserver() {} | 95 virtual ~ViewObserver() {} |
96 }; | 96 }; |
97 | 97 |
98 } // namespace mojo | 98 } // namespace mojo |
99 | 99 |
100 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ | 100 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ |
OLD | NEW |