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

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

Issue 324753002: Fix ownership bug with ViewObserver::OnViewInputEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no pass Created 6 years, 6 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
« no previous file with comments | « mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 { 15 namespace view_manager {
16 16
17 class View; 17 class View;
18 18
19 class ViewObserver { 19 class ViewObserver {
20 public: 20 public:
21 enum DispositionChangePhase { 21 enum DispositionChangePhase {
22 DISPOSITION_CHANGING, 22 DISPOSITION_CHANGING,
23 DISPOSITION_CHANGED 23 DISPOSITION_CHANGED
24 }; 24 };
25 25
26 virtual void OnViewDestroy(View* view, DispositionChangePhase phase) {} 26 virtual void OnViewDestroy(View* view, DispositionChangePhase phase) {}
27 27
28 virtual void OnViewInputEvent(View* view, EventPtr event) {} 28 virtual void OnViewInputEvent(View* view, const EventPtr& event) {}
29 29
30 protected: 30 protected:
31 virtual ~ViewObserver() {} 31 virtual ~ViewObserver() {}
32 }; 32 };
33 33
34 } // namespace view_manager 34 } // namespace view_manager
35 } // namespace mojo 35 } // namespace mojo
36 36
37 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ 37 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698