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::Connector* connector); | 48 void ConnectViaWindowTreeFactory(shell::Connector* connector); |
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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 scoped_ptr<mojo::AssociatedBinding<mojom::WindowManager>> | 295 scoped_ptr<mojo::AssociatedBinding<mojom::WindowManager>> |
296 window_manager_internal_; | 296 window_manager_internal_; |
297 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; | 297 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; |
298 | 298 |
299 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); | 299 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); |
300 }; | 300 }; |
301 | 301 |
302 } // namespace mus | 302 } // namespace mus |
303 | 303 |
304 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 304 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
OLD | NEW |