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

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

Issue 1149083010: Mandoline: Remove native_viewport.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified headless logic Created 5 years, 6 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 COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_H_
6 #define COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_H_ 6 #define COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
14 #include "components/view_manager/animation_runner.h" 14 #include "components/view_manager/animation_runner.h"
15 #include "components/view_manager/event_dispatcher.h" 15 #include "components/view_manager/event_dispatcher.h"
16 #include "components/view_manager/focus_controller_delegate.h" 16 #include "components/view_manager/focus_controller_delegate.h"
17 #include "components/view_manager/ids.h" 17 #include "components/view_manager/ids.h"
18 #include "components/view_manager/public/interfaces/native_viewport.mojom.h"
19 #include "components/view_manager/public/interfaces/view_manager.mojom.h" 18 #include "components/view_manager/public/interfaces/view_manager.mojom.h"
20 #include "components/view_manager/public/interfaces/view_manager_root.mojom.h" 19 #include "components/view_manager/public/interfaces/view_manager_root.mojom.h"
21 #include "components/view_manager/server_view_delegate.h" 20 #include "components/view_manager/server_view_delegate.h"
22 #include "components/view_manager/server_view_observer.h" 21 #include "components/view_manager/server_view_observer.h"
23 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h" 22 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h"
24 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" 23 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
25 24
26 namespace view_manager { 25 namespace view_manager {
27 26
28 class ClientConnection; 27 class ClientConnection;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // provided to the initial connection (the WindowManager). 245 // provided to the initial connection (the WindowManager).
247 // NOTE: |window_manager_client_connection_| is also in |connection_map_|. 246 // NOTE: |window_manager_client_connection_| is also in |connection_map_|.
248 ClientConnection* window_manager_client_connection_; 247 ClientConnection* window_manager_client_connection_;
249 248
250 // ID to use for next ViewManagerServiceImpl. 249 // ID to use for next ViewManagerServiceImpl.
251 mojo::ConnectionSpecificId next_connection_id_; 250 mojo::ConnectionSpecificId next_connection_id_;
252 251
253 // Set of ViewManagerServiceImpls. 252 // Set of ViewManagerServiceImpls.
254 ConnectionMap connection_map_; 253 ConnectionMap connection_map_;
255 254
255 // DisplayManager holds a raw pointer to EventDispatcher and so it must be
256 // destroyed after DisplayManager (and thus created before).
257 EventDispatcher event_dispatcher_;
258
256 scoped_ptr<DisplayManager> display_manager_; 259 scoped_ptr<DisplayManager> display_manager_;
257 260
258 scoped_ptr<ServerView> root_; 261 scoped_ptr<ServerView> root_;
259 262
260 // If non-null we're processing a change. The ScopedChange is not owned by us 263 // If non-null we're processing a change. The ScopedChange is not owned by us
261 // (it's created on the stack by ViewManagerServiceImpl). 264 // (it's created on the stack by ViewManagerServiceImpl).
262 ScopedChange* current_change_; 265 ScopedChange* current_change_;
263 266
264 bool in_destructor_; 267 bool in_destructor_;
265 268
266 // TODO(sky): nuke! Just a proof of concept until get real animation api. 269 // TODO(sky): nuke! Just a proof of concept until get real animation api.
267 base::RepeatingTimer<ConnectionManager> animation_timer_; 270 base::RepeatingTimer<ConnectionManager> animation_timer_;
268 271
269 AnimationRunner animation_runner_; 272 AnimationRunner animation_runner_;
270 273
271 EventDispatcher event_dispatcher_;
272
273 mojo::Binding<mojo::NativeViewportEventDispatcher> event_dispatcher_binding_;
274
275 scoped_ptr<FocusController> focus_controller_; 274 scoped_ptr<FocusController> focus_controller_;
276 275
277 mojo::ViewManagerRootClientPtr view_manager_root_client_; 276 mojo::ViewManagerRootClientPtr view_manager_root_client_;
278 277
279 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); 278 DISALLOW_COPY_AND_ASSIGN(ConnectionManager);
280 }; 279 };
281 280
282 } // namespace view_manager 281 } // namespace view_manager
283 282
284 #endif // COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_H_ 283 #endif // COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698