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

Side by Side Diff: components/mus/public/cpp/lib/window_tree_client_impl.h

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . 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 | « components/mus/mus_app.cc ('k') | components/mus/public/cpp/lib/window_tree_client_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 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_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 27 matching lines...) Expand all
38 public mojom::WindowTreeClient, 38 public mojom::WindowTreeClient,
39 public mojom::WindowManager, 39 public mojom::WindowManager,
40 public WindowManagerClient { 40 public WindowManagerClient {
41 public: 41 public:
42 WindowTreeClientImpl(WindowTreeDelegate* delegate, 42 WindowTreeClientImpl(WindowTreeDelegate* delegate,
43 WindowManagerDelegate* window_manager_delegate, 43 WindowManagerDelegate* window_manager_delegate,
44 mojo::InterfaceRequest<mojom::WindowTreeClient> request); 44 mojo::InterfaceRequest<mojom::WindowTreeClient> request);
45 ~WindowTreeClientImpl() override; 45 ~WindowTreeClientImpl() override;
46 46
47 // Establishes the connection by way of the WindowTreeFactory. 47 // Establishes the connection by way of the WindowTreeFactory.
48 void ConnectViaWindowTreeFactory(mojo::ApplicationImpl* app); 48 void ConnectViaWindowTreeFactory(mojo::Shell* shell);
49 49
50 // Wait for OnEmbed(), returning when done. 50 // Wait for OnEmbed(), returning when done.
51 void WaitForEmbed(); 51 void WaitForEmbed();
52 52
53 bool connected() const { return tree_ != nullptr; } 53 bool connected() const { return tree_ != nullptr; }
54 ConnectionSpecificId connection_id() const { return connection_id_; } 54 ConnectionSpecificId connection_id() const { return connection_id_; }
55 55
56 // API exposed to the window implementations that pushes local changes to the 56 // API exposed to the window implementations that pushes local changes to the
57 // service. 57 // service.
58 void DestroyWindow(Window* window); 58 void DestroyWindow(Window* window);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 scoped_ptr<mojo::AssociatedBinding<mojom::WindowManager>> 282 scoped_ptr<mojo::AssociatedBinding<mojom::WindowManager>>
283 window_manager_internal_; 283 window_manager_internal_;
284 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; 284 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_;
285 285
286 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); 286 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl);
287 }; 287 };
288 288
289 } // namespace mus 289 } // namespace mus
290 290
291 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 291 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/mus_app.cc ('k') | components/mus/public/cpp/lib/window_tree_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698