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_WS_CONNECTION_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ |
6 #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 14 matching lines...) Expand all Loading... |
25 public: | 25 public: |
26 virtual void OnFirstRootConnectionCreated(); | 26 virtual void OnFirstRootConnectionCreated(); |
27 | 27 |
28 virtual void OnNoMoreRootConnections() = 0; | 28 virtual void OnNoMoreRootConnections() = 0; |
29 | 29 |
30 // Creates a ClientConnection in response to Embed() calls on the | 30 // Creates a ClientConnection in response to Embed() calls on the |
31 // ConnectionManager. | 31 // ConnectionManager. |
32 virtual ClientConnection* CreateClientConnectionForEmbedAtWindow( | 32 virtual ClientConnection* CreateClientConnectionForEmbedAtWindow( |
33 ConnectionManager* connection_manager, | 33 ConnectionManager* connection_manager, |
34 mojo::InterfaceRequest<mojom::WindowTree> tree_request, | 34 mojo::InterfaceRequest<mojom::WindowTree> tree_request, |
35 ConnectionSpecificId creator_id, | |
36 const WindowId& root_id, | 35 const WindowId& root_id, |
37 uint32_t policy_bitmask, | 36 uint32_t policy_bitmask, |
38 mojom::WindowTreeClientPtr client) = 0; | 37 mojom::WindowTreeClientPtr client) = 0; |
39 | 38 |
40 protected: | 39 protected: |
41 virtual ~ConnectionManagerDelegate() {} | 40 virtual ~ConnectionManagerDelegate() {} |
42 }; | 41 }; |
43 | 42 |
44 } // namespace ws | 43 } // namespace ws |
45 | 44 |
46 } // namespace mus | 45 } // namespace mus |
47 | 46 |
48 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ | 47 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ |
OLD | NEW |