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

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

Issue 418983002: Nukes view_manager namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve merge Created 6 years, 5 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
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_OBSERVER_H_ 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_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/public/interfaces/input_events/input_events.mojom.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace view_manager {
16 15
17 class View; 16 class View;
18 17
19 // See note about -ing/-ed suffixes for observer methods in node_observer.h. 18 // See note about -ing/-ed suffixes for observer methods in node_observer.h.
20 19
21 class ViewObserver { 20 class ViewObserver {
22 public: 21 public:
23 virtual void OnViewDestroying(View* view) {} 22 virtual void OnViewDestroying(View* view) {}
24 virtual void OnViewDestroyed(View* view) {} 23 virtual void OnViewDestroyed(View* view) {}
25 24
26 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} 25 virtual void OnViewInputEvent(View* view, const EventPtr& event) {}
27 26
28 protected: 27 protected:
29 virtual ~ViewObserver() {} 28 virtual ~ViewObserver() {}
30 }; 29 };
31 30
32 } // namespace view_manager
33 } // namespace mojo 31 } // namespace mojo
34 32
35 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ 33 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698