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

Side by Side Diff: services/view_manager/connection_manager.h

Issue 880743002: Plumb ViewportMetrics change notifications around the world and back. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 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
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,
sky 2015/01/27 16:35:08 Did you finish wiring this all up? AFAICT this isn
eseidel 2015/01/27 18:50:04 No, the wiring isn't finished. I figured all 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 base::RepeatingTimer<ConnectionManager> animation_timer_; 228 base::RepeatingTimer<ConnectionManager> animation_timer_;
226 229
227 AnimationRunner animation_runner_; 230 AnimationRunner animation_runner_;
228 231
229 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); 232 DISALLOW_COPY_AND_ASSIGN(ConnectionManager);
230 }; 233 };
231 234
232 } // namespace view_manager 235 } // namespace view_manager
233 236
234 #endif // SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ 237 #endif // SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698