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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 const ViewManagerServiceImpl* GetConnectionWithRoot(const ViewId& id) const; | 117 const ViewManagerServiceImpl* GetConnectionWithRoot(const ViewId& id) const; |
118 | 118 |
119 mojo::WindowManagerInternal* wm_internal() { return wm_internal_; } | 119 mojo::WindowManagerInternal* wm_internal() { return wm_internal_; } |
120 | 120 |
121 void SetWindowManagerClientConnection( | 121 void SetWindowManagerClientConnection( |
122 scoped_ptr<ClientConnection> connection); | 122 scoped_ptr<ClientConnection> connection); |
123 bool has_window_manager_client_connection() const { | 123 bool has_window_manager_client_connection() const { |
124 return window_manager_client_connection_ != nullptr; | 124 return window_manager_client_connection_ != nullptr; |
125 } | 125 } |
126 | 126 |
| 127 mojo::ViewManagerClient* GetWindowManagerViewManagerClient(); |
| 128 |
127 // WindowManagerInternalClient implementation helper; see mojom for details. | 129 // WindowManagerInternalClient implementation helper; see mojom for details. |
128 bool CloneAndAnimate(const ViewId& view_id); | 130 bool CloneAndAnimate(const ViewId& view_id); |
129 | 131 |
130 // These functions trivially delegate to all ViewManagerServiceImpls, which in | 132 // These functions trivially delegate to all ViewManagerServiceImpls, which in |
131 // term notify their clients. | 133 // term notify their clients. |
132 void ProcessViewDestroyed(ServerView* view); | 134 void ProcessViewDestroyed(ServerView* view); |
133 void ProcessViewBoundsChanged(const ServerView* view, | 135 void ProcessViewBoundsChanged(const ServerView* view, |
134 const gfx::Rect& old_bounds, | 136 const gfx::Rect& old_bounds, |
135 const gfx::Rect& new_bounds); | 137 const gfx::Rect& new_bounds); |
136 void ProcessViewportMetricsChanged(const mojo::ViewportMetrics& old_metrics, | 138 void ProcessViewportMetricsChanged(const mojo::ViewportMetrics& old_metrics, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 base::RepeatingTimer<ConnectionManager> animation_timer_; | 232 base::RepeatingTimer<ConnectionManager> animation_timer_; |
231 | 233 |
232 AnimationRunner animation_runner_; | 234 AnimationRunner animation_runner_; |
233 | 235 |
234 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); | 236 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); |
235 }; | 237 }; |
236 | 238 |
237 } // namespace view_manager | 239 } // namespace view_manager |
238 | 240 |
239 #endif // SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ | 241 #endif // SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ |
OLD | NEW |