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

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

Issue 805123003: Adds capture to the mojo window_manager. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sky comments Created 6 years 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
« no previous file with comments | « mojo/services/view_manager/public/cpp/view.h ('k') | services/window_manager/BUILD.gn » ('j') | 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_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"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void OnViewDestroying(View* view) {} 49 virtual void OnViewDestroying(View* view) {}
50 virtual void OnViewDestroyed(View* view) {} 50 virtual void OnViewDestroyed(View* view) {}
51 51
52 virtual void OnViewBoundsChanging(View* view, 52 virtual void OnViewBoundsChanging(View* view,
53 const Rect& old_bounds, 53 const Rect& old_bounds,
54 const Rect& new_bounds) {} 54 const Rect& new_bounds) {}
55 virtual void OnViewBoundsChanged(View* view, 55 virtual void OnViewBoundsChanged(View* view,
56 const Rect& old_bounds, 56 const Rect& old_bounds,
57 const Rect& new_bounds) {} 57 const Rect& new_bounds) {}
58 58
59 virtual void OnCaptureChanged(View* gained_capture, View* lost_capture) {}
59 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} 60 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {}
60 virtual void OnViewActivationChanged(View* gained_active, View* lost_active) { 61 virtual void OnViewActivationChanged(View* gained_active, View* lost_active) {
61 } 62 }
62 63
63 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} 64 virtual void OnViewInputEvent(View* view, const EventPtr& event) {}
64 65
65 virtual void OnViewVisibilityChanging(View* view) {} 66 virtual void OnViewVisibilityChanging(View* view) {}
66 virtual void OnViewVisibilityChanged(View* view) {} 67 virtual void OnViewVisibilityChanged(View* view) {}
67 68
68 // Invoked when this View's shared properties have changed. This can either 69 // Invoked when this View's shared properties have changed. This can either
(...skipping 24 matching lines...) Expand all
93 virtual void OnViewDrawnChanging(View* view) {} 94 virtual void OnViewDrawnChanging(View* view) {}
94 virtual void OnViewDrawnChanged(View* view) {} 95 virtual void OnViewDrawnChanged(View* view) {}
95 96
96 protected: 97 protected:
97 virtual ~ViewObserver() {} 98 virtual ~ViewObserver() {}
98 }; 99 };
99 100
100 } // namespace mojo 101 } // namespace mojo
101 102
102 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ 103 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/public/cpp/view.h ('k') | services/window_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698