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

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

Issue 795593004: Update mojo sdk to rev cc531b32182099a5a034a99daff35ed5d38a61c8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More workarounds for MSVC Created 5 years, 11 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
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) {}
61 virtual void OnViewActivationChanged(View* gained_active, View* lost_active) {
62 }
60 63
61 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} 64 virtual void OnViewInputEvent(View* view, const EventPtr& event) {}
62 65
63 virtual void OnViewVisibilityChanging(View* view) {} 66 virtual void OnViewVisibilityChanging(View* view) {}
64 virtual void OnViewVisibilityChanged(View* view) {} 67 virtual void OnViewVisibilityChanged(View* view) {}
65 68
66 // 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
67 // be caused by SetSharedProperty() being called locally, or by us receiving 70 // be caused by SetSharedProperty() being called locally, or by us receiving
68 // a mojo message that this property has changed. If this property has been 71 // a mojo message that this property has changed. If this property has been
69 // added, |old_data| is null. If this property was removed, |new_data| is 72 // added, |old_data| is null. If this property was removed, |new_data| is
(...skipping 21 matching lines...) Expand all
91 virtual void OnViewDrawnChanging(View* view) {} 94 virtual void OnViewDrawnChanging(View* view) {}
92 virtual void OnViewDrawnChanged(View* view) {} 95 virtual void OnViewDrawnChanged(View* view) {}
93 96
94 protected: 97 protected:
95 virtual ~ViewObserver() {} 98 virtual ~ViewObserver() {}
96 }; 99 };
97 100
98 } // namespace mojo 101 } // namespace mojo
99 102
100 #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_manager_delegate.h ('k') | tools/checklicenses/checklicenses.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698