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

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

Issue 1644773004: Renames some WindowManager classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 10 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 | « no previous file | 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
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_MUS_MUS_APP_H_ 5 #ifndef COMPONENTS_MUS_MUS_APP_H_
6 #define COMPONENTS_MUS_MUS_APP_H_ 6 #define COMPONENTS_MUS_MUS_APP_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 27 matching lines...) Expand all
38 38
39 namespace ws { 39 namespace ws {
40 class ConnectionManager; 40 class ConnectionManager;
41 class ForwardingWindowManager; 41 class ForwardingWindowManager;
42 } 42 }
43 43
44 class MandolineUIServicesApp 44 class MandolineUIServicesApp
45 : public mojo::ApplicationDelegate, 45 : public mojo::ApplicationDelegate,
46 public ws::ConnectionManagerDelegate, 46 public ws::ConnectionManagerDelegate,
47 public mojo::InterfaceFactory<mojom::DisplayManager>, 47 public mojo::InterfaceFactory<mojom::DisplayManager>,
48 public mojo::InterfaceFactory<mojom::WindowManager>, 48 public mojo::InterfaceFactory<mojom::WindowManagerDeprecated>,
49 public mojo::InterfaceFactory<mojom::WindowTreeHostFactory>, 49 public mojo::InterfaceFactory<mojom::WindowTreeHostFactory>,
50 public mojo::InterfaceFactory<mojom::Gpu>, 50 public mojo::InterfaceFactory<mojom::Gpu>,
51 public mojom::WindowTreeHostFactory { 51 public mojom::WindowTreeHostFactory {
52 public: 52 public:
53 MandolineUIServicesApp(); 53 MandolineUIServicesApp();
54 ~MandolineUIServicesApp() override; 54 ~MandolineUIServicesApp() override;
55 55
56 private: 56 private:
57 // Holds InterfaceRequests received before the first WindowTreeHost Display 57 // Holds InterfaceRequests received before the first WindowTreeHost Display
58 // has been established. 58 // has been established.
(...skipping 11 matching lines...) Expand all
70 ws::ConnectionManager* connection_manager, 70 ws::ConnectionManager* connection_manager,
71 mojo::InterfaceRequest<mojom::WindowTree> tree_request, 71 mojo::InterfaceRequest<mojom::WindowTree> tree_request,
72 ws::ServerWindow* root, 72 ws::ServerWindow* root,
73 uint32_t policy_bitmask, 73 uint32_t policy_bitmask,
74 mojom::WindowTreeClientPtr client) override; 74 mojom::WindowTreeClientPtr client) override;
75 75
76 // mojo::InterfaceFactory<mojom::DisplayManager> implementation. 76 // mojo::InterfaceFactory<mojom::DisplayManager> implementation.
77 void Create(mojo::ApplicationConnection* connection, 77 void Create(mojo::ApplicationConnection* connection,
78 mojo::InterfaceRequest<mojom::DisplayManager> request) override; 78 mojo::InterfaceRequest<mojom::DisplayManager> request) override;
79 79
80 // mojo::InterfaceFactory<mojom::WindowManager> implementation. 80 // mojo::InterfaceFactory<mojom::WindowManagerDeprecated> implementation.
81 void Create(mojo::ApplicationConnection* connection, 81 void Create(
82 mojo::InterfaceRequest<mojom::WindowManager> request) override; 82 mojo::ApplicationConnection* connection,
83 mojo::InterfaceRequest<mojom::WindowManagerDeprecated> request) override;
83 84
84 // mojo::InterfaceFactory<mojom::WindowTreeHostFactory>: 85 // mojo::InterfaceFactory<mojom::WindowTreeHostFactory>:
85 void Create( 86 void Create(
86 mojo::ApplicationConnection* connection, 87 mojo::ApplicationConnection* connection,
87 mojo::InterfaceRequest<mojom::WindowTreeHostFactory> request) override; 88 mojo::InterfaceRequest<mojom::WindowTreeHostFactory> request) override;
88 89
89 // mojo::InterfaceFactory<mojom::Gpu> implementation. 90 // mojo::InterfaceFactory<mojom::Gpu> implementation.
90 void Create(mojo::ApplicationConnection* connection, 91 void Create(mojo::ApplicationConnection* connection,
91 mojo::InterfaceRequest<mojom::Gpu> request) override; 92 mojo::InterfaceRequest<mojom::Gpu> request) override;
92 93
93 // mojom::WindowTreeHostFactory implementation. 94 // mojom::WindowTreeHostFactory implementation.
94 void CreateWindowTreeHost(mojo::InterfaceRequest<mojom::WindowTreeHost> host, 95 void CreateWindowTreeHost(
95 mojom::WindowTreeHostClientPtr host_client, 96 mojo::InterfaceRequest<mojom::WindowTreeHost> host,
96 mojom::WindowTreeClientPtr tree_client, 97 mojom::WindowTreeHostClientPtr host_client,
97 mojom::WindowManagerPtr window_manager) override; 98 mojom::WindowTreeClientPtr tree_client,
99 mojom::WindowManagerDeprecatedPtr window_manager) override;
98 100
99 mojo::WeakBindingSet<mojom::WindowTreeHostFactory> factory_bindings_; 101 mojo::WeakBindingSet<mojom::WindowTreeHostFactory> factory_bindings_;
100 scoped_ptr<ws::ForwardingWindowManager> window_manager_impl_; 102 scoped_ptr<ws::ForwardingWindowManager> window_manager_impl_;
101 mojo::WeakBindingSet<mojom::WindowManager> window_manager_bindings_; 103 mojo::WeakBindingSet<mojom::WindowManagerDeprecated> window_manager_bindings_;
102 mojo::ApplicationImpl* app_impl_; 104 mojo::ApplicationImpl* app_impl_;
103 scoped_ptr<ws::ConnectionManager> connection_manager_; 105 scoped_ptr<ws::ConnectionManager> connection_manager_;
104 scoped_refptr<GpuState> gpu_state_; 106 scoped_refptr<GpuState> gpu_state_;
105 scoped_ptr<ui::PlatformEventSource> event_source_; 107 scoped_ptr<ui::PlatformEventSource> event_source_;
106 mojo::TracingImpl tracing_; 108 mojo::TracingImpl tracing_;
107 using PendingRequests = std::vector<scoped_ptr<PendingRequest>>; 109 using PendingRequests = std::vector<scoped_ptr<PendingRequest>>;
108 PendingRequests pending_requests_; 110 PendingRequests pending_requests_;
109 111
110 // Surfaces 112 // Surfaces
111 scoped_refptr<SurfacesState> surfaces_state_; 113 scoped_refptr<SurfacesState> surfaces_state_;
112 114
113 DISALLOW_COPY_AND_ASSIGN(MandolineUIServicesApp); 115 DISALLOW_COPY_AND_ASSIGN(MandolineUIServicesApp);
114 }; 116 };
115 117
116 } // namespace mus 118 } // namespace mus
117 119
118 #endif // COMPONENTS_MUS_MUS_APP_H_ 120 #endif // COMPONENTS_MUS_MUS_APP_H_
OLDNEW
« no previous file with comments | « no previous file | components/mus/mus_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698