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

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

Issue 880743002: Plumb ViewportMetrics change notifications around the world and back. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix typo Created 5 years, 10 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 OnViewViewportMetricsChanged(View* view,
60 const ViewportMetrics& old_bounds,
61 const ViewportMetrics& new_bounds) {
62 }
63
59 virtual void OnCaptureChanged(View* gained_capture, View* lost_capture) {} 64 virtual void OnCaptureChanged(View* gained_capture, View* lost_capture) {}
60 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} 65 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {}
61 virtual void OnViewActivationChanged(View* gained_active, View* lost_active) { 66 virtual void OnViewActivationChanged(View* gained_active, View* lost_active) {
62 } 67 }
63 68
64 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} 69 virtual void OnViewInputEvent(View* view, const EventPtr& event) {}
65 70
66 virtual void OnViewVisibilityChanging(View* view) {} 71 virtual void OnViewVisibilityChanging(View* view) {}
67 virtual void OnViewVisibilityChanged(View* view) {} 72 virtual void OnViewVisibilityChanged(View* view) {}
68 73
(...skipping 25 matching lines...) Expand all
94 virtual void OnViewDrawnChanging(View* view) {} 99 virtual void OnViewDrawnChanging(View* view) {}
95 virtual void OnViewDrawnChanged(View* view) {} 100 virtual void OnViewDrawnChanged(View* view) {}
96 101
97 protected: 102 protected:
98 virtual ~ViewObserver() {} 103 virtual ~ViewObserver() {}
99 }; 104 };
100 105
101 } // namespace mojo 106 } // namespace mojo
102 107
103 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ 108 #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') | mojo/services/view_manager/public/interfaces/view_manager.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698