OLD | NEW |
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 SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ | 5 #ifndef SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ |
6 #define SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ | 6 #define SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 // WindowManagerInternalClient implementation helper; see mojom for details. | 124 // WindowManagerInternalClient implementation helper; see mojom for details. |
125 bool CloneAndAnimate(const ViewId& view_id); | 125 bool CloneAndAnimate(const ViewId& view_id); |
126 | 126 |
127 // These functions trivially delegate to all ViewManagerServiceImpls, which in | 127 // These functions trivially delegate to all ViewManagerServiceImpls, which in |
128 // term notify their clients. | 128 // term notify their clients. |
129 void ProcessViewDestroyed(ServerView* view); | 129 void ProcessViewDestroyed(ServerView* view); |
130 void ProcessViewBoundsChanged(const ServerView* view, | 130 void ProcessViewBoundsChanged(const ServerView* view, |
131 const gfx::Rect& old_bounds, | 131 const gfx::Rect& old_bounds, |
132 const gfx::Rect& new_bounds); | 132 const gfx::Rect& new_bounds); |
| 133 void ProcessViewportMetricsChanged(const ServerView* view, |
| 134 const mojo::ViewportMetrics& old_metrics, |
| 135 const mojo::ViewportMetrics& new_metrics); |
133 void ProcessWillChangeViewHierarchy(const ServerView* view, | 136 void ProcessWillChangeViewHierarchy(const ServerView* view, |
134 const ServerView* new_parent, | 137 const ServerView* new_parent, |
135 const ServerView* old_parent); | 138 const ServerView* old_parent); |
136 void ProcessViewHierarchyChanged(const ServerView* view, | 139 void ProcessViewHierarchyChanged(const ServerView* view, |
137 const ServerView* new_parent, | 140 const ServerView* new_parent, |
138 const ServerView* old_parent); | 141 const ServerView* old_parent); |
139 void ProcessViewReorder(const ServerView* view, | 142 void ProcessViewReorder(const ServerView* view, |
140 const ServerView* relative_view, | 143 const ServerView* relative_view, |
141 const mojo::OrderDirection direction); | 144 const mojo::OrderDirection direction); |
142 void ProcessViewDeleted(const ViewId& view); | 145 void ProcessViewDeleted(const ViewId& view); |
(...skipping 29 matching lines...) Expand all Loading... |
172 void OnViewDestroyed(const ServerView* view) override; | 175 void OnViewDestroyed(const ServerView* view) override; |
173 void OnWillChangeViewHierarchy(ServerView* view, | 176 void OnWillChangeViewHierarchy(ServerView* view, |
174 ServerView* new_parent, | 177 ServerView* new_parent, |
175 ServerView* old_parent) override; | 178 ServerView* old_parent) override; |
176 void OnViewHierarchyChanged(const ServerView* view, | 179 void OnViewHierarchyChanged(const ServerView* view, |
177 const ServerView* new_parent, | 180 const ServerView* new_parent, |
178 const ServerView* old_parent) override; | 181 const ServerView* old_parent) override; |
179 void OnViewBoundsChanged(const ServerView* view, | 182 void OnViewBoundsChanged(const ServerView* view, |
180 const gfx::Rect& old_bounds, | 183 const gfx::Rect& old_bounds, |
181 const gfx::Rect& new_bounds) override; | 184 const gfx::Rect& new_bounds) override; |
| 185 void OnViewViewportMetricsChanged( |
| 186 const ServerView* view, |
| 187 const mojo::ViewportMetrics& old_metrics, |
| 188 const mojo::ViewportMetrics& new_metrics) override; |
182 void OnViewSurfaceIdChanged(const ServerView* view) override; | 189 void OnViewSurfaceIdChanged(const ServerView* view) override; |
183 void OnViewReordered(const ServerView* view, | 190 void OnViewReordered(const ServerView* view, |
184 const ServerView* relative, | 191 const ServerView* relative, |
185 mojo::OrderDirection direction) override; | 192 mojo::OrderDirection direction) override; |
186 void OnWillChangeViewVisibility(ServerView* view) override; | 193 void OnWillChangeViewVisibility(ServerView* view) override; |
187 void OnViewSharedPropertyChanged( | 194 void OnViewSharedPropertyChanged( |
188 const ServerView* view, | 195 const ServerView* view, |
189 const std::string& name, | 196 const std::string& name, |
190 const std::vector<uint8_t>* new_data) override; | 197 const std::vector<uint8_t>* new_data) override; |
191 void OnScheduleViewPaint(const ServerView* view) override; | 198 void OnScheduleViewPaint(const ServerView* view) override; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 base::RepeatingTimer<ConnectionManager> animation_timer_; | 232 base::RepeatingTimer<ConnectionManager> animation_timer_; |
226 | 233 |
227 AnimationRunner animation_runner_; | 234 AnimationRunner animation_runner_; |
228 | 235 |
229 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); | 236 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); |
230 }; | 237 }; |
231 | 238 |
232 } // namespace view_manager | 239 } // namespace view_manager |
233 | 240 |
234 #endif // SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ | 241 #endif // SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ |
OLD | NEW |