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

Side by Side Diff: components/mus/view_tree_host_impl.h

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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/mus/view_tree_host_delegate.h ('k') | components/mus/view_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MUS_VIEW_TREE_HOST_IMPL_H_ 5 #ifndef COMPONENTS_MUS_VIEW_TREE_HOST_IMPL_H_
6 #define COMPONENTS_MUS_VIEW_TREE_HOST_IMPL_H_ 6 #define COMPONENTS_MUS_VIEW_TREE_HOST_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/mus/display_manager.h" 9 #include "components/mus/display_manager.h"
10 #include "components/mus/event_dispatcher.h" 10 #include "components/mus/event_dispatcher.h"
11 #include "components/mus/focus_controller_delegate.h" 11 #include "components/mus/focus_controller_delegate.h"
12 #include "components/mus/public/cpp/types.h" 12 #include "components/mus/public/cpp/types.h"
13 #include "components/mus/public/interfaces/view_tree_host.mojom.h" 13 #include "components/mus/public/interfaces/view_tree_host.mojom.h"
14 #include "components/mus/server_view.h" 14 #include "components/mus/server_view.h"
15 15
16 namespace cc { 16 namespace cc {
17 class SurfaceManager; 17 class SurfaceManager;
18 } 18 }
19 19
20 namespace surfaces { 20 namespace mus {
21 class SurfacesScheduler; 21 class SurfacesScheduler;
22 } 22 }
23 23
24 namespace view_manager { 24 namespace mus {
25 25
26 class ConnectionManager; 26 class ConnectionManager;
27 class FocusController; 27 class FocusController;
28 class ViewTreeHostDelegate; 28 class ViewTreeHostDelegate;
29 class ViewTreeImpl; 29 class ViewTreeImpl;
30 30
31 // ViewTreeHostImpl is an implementation of the ViewTreeHost interface. 31 // ViewTreeHostImpl is an implementation of the ViewTreeHost interface.
32 // It serves as a top level root view for a window. Its lifetime is managed by 32 // It serves as a top level root view for a window. Its lifetime is managed by
33 // ConnectionManager. If the connection to the client breaks or if the user 33 // ConnectionManager. If the connection to the client breaks or if the user
34 // closes the associated window, then this object and related state will be 34 // closes the associated window, then this object and related state will be
35 // deleted. 35 // deleted.
36 class ViewTreeHostImpl : public DisplayManagerDelegate, 36 class ViewTreeHostImpl : public DisplayManagerDelegate,
37 public mojo::ViewTreeHost, 37 public mojo::ViewTreeHost,
38 public FocusControllerDelegate { 38 public FocusControllerDelegate {
39 public: 39 public:
40 // TODO(fsamuel): All these parameters are just plumbing for creating 40 // TODO(fsamuel): All these parameters are just plumbing for creating
41 // DisplayManagers. We should probably just store these common parameters 41 // DisplayManagers. We should probably just store these common parameters
42 // in the DisplayManagerFactory and pass them along on DisplayManager::Create. 42 // in the DisplayManagerFactory and pass them along on DisplayManager::Create.
43 ViewTreeHostImpl( 43 ViewTreeHostImpl(mojo::ViewTreeHostClientPtr client,
44 mojo::ViewTreeHostClientPtr client, 44 ConnectionManager* connection_manager,
45 ConnectionManager* connection_manager, 45 bool is_headless,
46 bool is_headless, 46 mojo::ApplicationImpl* app_impl,
47 mojo::ApplicationImpl* app_impl, 47 const scoped_refptr<GpuState>& gpu_state,
48 const scoped_refptr<gles2::GpuState>& gpu_state, 48 const scoped_refptr<SurfacesState>& surfaces_state);
49 const scoped_refptr<surfaces::SurfacesState>& surfaces_state);
50 ~ViewTreeHostImpl() override; 49 ~ViewTreeHostImpl() override;
51 50
52 // Initializes state that depends on the existence of a ViewTreeHostImpl. 51 // Initializes state that depends on the existence of a ViewTreeHostImpl.
53 void Init(ViewTreeHostDelegate* delegate); 52 void Init(ViewTreeHostDelegate* delegate);
54 53
55 ViewTreeImpl* GetViewTree(); 54 ViewTreeImpl* GetViewTree();
56 55
57 mojo::ViewTreeHostClient* client() const { return client_.get(); } 56 mojo::ViewTreeHostClient* client() const { return client_.get(); }
58 57
59 // Returns whether |view| is a descendant of this root but not itself a 58 // Returns whether |view| is a descendant of this root but not itself a
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 ConnectionManager* const connection_manager_; 110 ConnectionManager* const connection_manager_;
112 mojo::ViewTreeHostClientPtr client_; 111 mojo::ViewTreeHostClientPtr client_;
113 EventDispatcher event_dispatcher_; 112 EventDispatcher event_dispatcher_;
114 scoped_ptr<ServerView> root_; 113 scoped_ptr<ServerView> root_;
115 scoped_ptr<DisplayManager> display_manager_; 114 scoped_ptr<DisplayManager> display_manager_;
116 scoped_ptr<FocusController> focus_controller_; 115 scoped_ptr<FocusController> focus_controller_;
117 116
118 DISALLOW_COPY_AND_ASSIGN(ViewTreeHostImpl); 117 DISALLOW_COPY_AND_ASSIGN(ViewTreeHostImpl);
119 }; 118 };
120 119
121 } // namespace view_manager 120 } // namespace mus
122 121
123 #endif // COMPONENTS_MUS_VIEW_TREE_HOST_IMPL_H_ 122 #endif // COMPONENTS_MUS_VIEW_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/view_tree_host_delegate.h ('k') | components/mus/view_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698