| 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_WINDOW_TREE_CONNECTION_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/mus/public/cpp/types.h" | 10 #include "components/mus/public/cpp/types.h" |
| 11 #include "components/mus/public/interfaces/window_tree.mojom.h" | 11 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" | 12 #include "mojo/public/cpp/bindings/interface_request.h" |
| 13 | 13 |
| 14 namespace mus { | 14 namespace mus { |
| 15 | 15 |
| 16 class Window; | 16 class Window; |
| 17 class WindowManagerDelegate; | 17 class WindowManagerDelegate; |
| 18 class WindowTreeDelegate; | 18 class WindowTreeDelegate; |
| 19 | 19 |
| 20 // Encapsulates a connection to a window tree. A unique connection is made | 20 // Encapsulates a connection to a window tree. A unique connection is made |
| 21 // every time an app is embedded. | 21 // every time an app is embedded. |
| 22 class WindowTreeConnection { | 22 class WindowTreeConnection { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // Returns true if ACCESS_POLICY_EMBED_ROOT was specified. | 61 // Returns true if ACCESS_POLICY_EMBED_ROOT was specified. |
| 62 virtual bool IsEmbedRoot() = 0; | 62 virtual bool IsEmbedRoot() = 0; |
| 63 | 63 |
| 64 // Returns the id for this connection. | 64 // Returns the id for this connection. |
| 65 virtual ConnectionSpecificId GetConnectionId() = 0; | 65 virtual ConnectionSpecificId GetConnectionId() = 0; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace mus | 68 } // namespace mus |
| 69 | 69 |
| 70 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_ | 70 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_ |
| OLD | NEW |