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

Side by Side Diff: components/view_manager/public/cpp/view_observer.h

Issue 1136743003: Plumbs through screen size and scale factor to html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « components/native_viewport/public/interfaces/native_viewport.mojom ('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 COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "components/view_manager/public/cpp/view.h" 10 #include "components/view_manager/public/cpp/view.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void OnViewDestroying(View* view) {} 47 virtual void OnViewDestroying(View* view) {}
48 virtual void OnViewDestroyed(View* view) {} 48 virtual void OnViewDestroyed(View* view) {}
49 49
50 virtual void OnViewBoundsChanging(View* view, 50 virtual void OnViewBoundsChanging(View* view,
51 const Rect& old_bounds, 51 const Rect& old_bounds,
52 const Rect& new_bounds) {} 52 const Rect& new_bounds) {}
53 virtual void OnViewBoundsChanged(View* view, 53 virtual void OnViewBoundsChanged(View* view,
54 const Rect& old_bounds, 54 const Rect& old_bounds,
55 const Rect& new_bounds) {} 55 const Rect& new_bounds) {}
56 56
57 virtual void OnViewViewportMetricsChanged(View* view, 57 virtual void OnViewViewportMetricsChanged(
58 const ViewportMetrics& old_bounds, 58 View* view,
59 const ViewportMetrics& new_bounds) { 59 const ViewportMetrics& old_metrics,
60 } 60 const ViewportMetrics& new_metrics) {}
61 61
62 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} 62 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {}
63 63
64 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} 64 virtual void OnViewInputEvent(View* view, const EventPtr& event) {}
65 65
66 virtual void OnViewVisibilityChanging(View* view) {} 66 virtual void OnViewVisibilityChanging(View* view) {}
67 virtual void OnViewVisibilityChanged(View* view) {} 67 virtual void OnViewVisibilityChanged(View* view) {}
68 68
69 // 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
70 // be caused by SetSharedProperty() being called locally, or by us receiving 70 // be caused by SetSharedProperty() being called locally, or by us receiving
(...skipping 23 matching lines...) Expand all
94 virtual void OnViewDrawnChanging(View* view) {} 94 virtual void OnViewDrawnChanging(View* view) {}
95 virtual void OnViewDrawnChanged(View* view) {} 95 virtual void OnViewDrawnChanged(View* view) {}
96 96
97 protected: 97 protected:
98 virtual ~ViewObserver() {} 98 virtual ~ViewObserver() {}
99 }; 99 };
100 100
101 } // namespace mojo 101 } // namespace mojo
102 102
103 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ 103 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/native_viewport/public/interfaces/native_viewport.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698