Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(636)

Side by Side Diff: mojo/services/public/cpp/view_manager/view_observer.h

Issue 272833002: View synchronization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/view_manager.h ('k') | mojo/services/public/cpp/view_manager/view_tree_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698