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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // Returns the focused window; null if focus is not yet known or another app | 62 // Returns the focused window; null if focus is not yet known or another app |
63 // is focused. | 63 // is focused. |
64 virtual Window* GetFocusedWindow() = 0; | 64 virtual Window* GetFocusedWindow() = 0; |
65 | 65 |
66 // Creates and returns a new Window (which is owned by the window server). | 66 // Creates and returns a new Window (which is owned by the window server). |
67 // Windows are initially hidden, use SetVisible(true) to show. | 67 // Windows are initially hidden, use SetVisible(true) to show. |
68 Window* NewWindow() { return NewWindow(nullptr); } | 68 Window* NewWindow() { return NewWindow(nullptr); } |
69 virtual Window* NewWindow( | 69 virtual Window* NewWindow( |
70 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; | 70 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; |
| 71 virtual Window* NewTopLevelWindow( |
| 72 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; |
71 | 73 |
72 // Returns true if ACCESS_POLICY_EMBED_ROOT was specified. | 74 // Returns true if ACCESS_POLICY_EMBED_ROOT was specified. |
73 virtual bool IsEmbedRoot() = 0; | 75 virtual bool IsEmbedRoot() = 0; |
74 | 76 |
75 // Returns the id for this connection. | 77 // Returns the id for this connection. |
76 virtual ConnectionSpecificId GetConnectionId() = 0; | 78 virtual ConnectionSpecificId GetConnectionId() = 0; |
77 | 79 |
78 virtual void AddObserver(WindowTreeConnectionObserver* observer) = 0; | 80 virtual void AddObserver(WindowTreeConnectionObserver* observer) = 0; |
79 virtual void RemoveObserver(WindowTreeConnectionObserver* observer) = 0; | 81 virtual void RemoveObserver(WindowTreeConnectionObserver* observer) = 0; |
80 }; | 82 }; |
81 | 83 |
82 } // namespace mus | 84 } // namespace mus |
83 | 85 |
84 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_ | 86 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_ |
OLD | NEW |