OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |