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

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

Issue 1351013002: Revert of Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/main.cc ('k') | components/mus/mus_app.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_MUS_VIEW_MANAGER_APP_H_
6 #define COMPONENTS_MUS_VIEW_MANAGER_APP_H_
7
8 #include <set>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "cc/surfaces/surface_manager.h"
12 #include "components/mus/connection_manager_delegate.h"
13 #include "components/mus/public/interfaces/gpu.mojom.h"
14 #include "components/mus/public/interfaces/view_tree.mojom.h"
15 #include "components/mus/public/interfaces/view_tree_host.mojom.h"
16 #include "mojo/application/public/cpp/app_lifetime_helper.h"
17 #include "mojo/application/public/cpp/application_delegate.h"
18 #include "mojo/application/public/cpp/interface_factory.h"
19 #include "mojo/common/tracing_impl.h"
20 #include "mojo/common/weak_binding_set.h"
21
22 namespace mojo {
23 class ApplicationImpl;
24 }
25
26 namespace ui {
27 class PlatformEventSource;
28 }
29
30 namespace mus {
31
32 class ConnectionManager;
33 class GpuState;
34 class SurfacesScheduler;
35 class SurfacesState;
36
37 class MandolineUIServicesApp
38 : public mojo::ApplicationDelegate,
39 public ConnectionManagerDelegate,
40 public mojo::InterfaceFactory<mojo::ViewTreeHostFactory>,
41 public mojo::InterfaceFactory<mojo::Gpu>,
42 public mojo::ViewTreeHostFactory {
43 public:
44 MandolineUIServicesApp();
45 ~MandolineUIServicesApp() override;
46
47 private:
48 // ApplicationDelegate:
49 void Initialize(mojo::ApplicationImpl* app) override;
50 bool ConfigureIncomingConnection(
51 mojo::ApplicationConnection* connection) override;
52
53 // ConnectionManagerDelegate:
54 void OnNoMoreRootConnections() override;
55 ClientConnection* CreateClientConnectionForEmbedAtView(
56 ConnectionManager* connection_manager,
57 mojo::InterfaceRequest<mojo::ViewTree> tree_request,
58 ConnectionSpecificId creator_id,
59 mojo::URLRequestPtr request,
60 const ViewId& root_id,
61 uint32_t policy_bitmask) override;
62 ClientConnection* CreateClientConnectionForEmbedAtView(
63 ConnectionManager* connection_manager,
64 mojo::InterfaceRequest<mojo::ViewTree> tree_request,
65 ConnectionSpecificId creator_id,
66 const ViewId& root_id,
67 uint32_t policy_bitmask,
68 mojo::ViewTreeClientPtr client) override;
69
70 // mojo::InterfaceFactory<mojo::ViewTreeHostFactory>:
71 void Create(
72 mojo::ApplicationConnection* connection,
73 mojo::InterfaceRequest<mojo::ViewTreeHostFactory> request) override;
74
75 // mojo::InterfaceFactory<mojo::Gpu> implementation.
76 void Create(mojo::ApplicationConnection* connection,
77 mojo::InterfaceRequest<mojo::Gpu> request) override;
78
79 // mojo::ViewTreeHostFactory implementation.
80 void CreateViewTreeHost(mojo::InterfaceRequest<mojo::ViewTreeHost> host,
81 mojo::ViewTreeHostClientPtr host_client,
82 mojo::ViewTreeClientPtr tree_client) override;
83
84 mojo::WeakBindingSet<mojo::ViewTreeHostFactory> factory_bindings_;
85 mojo::ApplicationImpl* app_impl_;
86 scoped_ptr<ConnectionManager> connection_manager_;
87 mojo::TracingImpl tracing_;
88 scoped_refptr<GpuState> gpu_state_;
89 scoped_ptr<ui::PlatformEventSource> event_source_;
90 bool is_headless_;
91
92 // Surfaces
93 scoped_refptr<SurfacesState> surfaces_state_;
94
95 DISALLOW_COPY_AND_ASSIGN(MandolineUIServicesApp);
96 };
97
98 } // namespace mus
99
100 #endif // COMPONENTS_MUS_VIEW_MANAGER_APP_H_
OLDNEW
« no previous file with comments | « components/mus/main.cc ('k') | components/mus/mus_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698