| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_AURA_MUS_MUS_TYPES_H_ | 5 #ifndef UI_AURA_MUS_MUS_TYPES_H_ |
| 6 #define UI_AURA_MUS_MUS_TYPES_H_ | 6 #define UI_AURA_MUS_MUS_TYPES_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 // Typedefs for the transport types. These typedefs match that of the mojom | 10 // Typedefs for the transport types. These typedefs match that of the mojom |
| 11 // file, see it for specifics. | 11 // file, see it for specifics. |
| 12 | 12 |
| 13 namespace aura { | 13 namespace aura { |
| 14 | 14 |
| 15 // Used to identify windows and change ids. | 15 // Used to identify windows and change ids. |
| 16 using Id = uint32_t; | 16 using Id = uint32_t; |
| 17 | 17 |
| 18 // Used to identify a client as well as a client-specific window id. For | 18 // Used to identify a client as well as a client-specific window id. For |
| 19 // example, the Id for a window consists of the ClientSpecificId of the client | 19 // example, the Id for a window consists of the ClientSpecificId of the client |
| 20 // and the ClientSpecificId of the window. | 20 // and the ClientSpecificId of the window. |
| 21 using ClientSpecificId = uint16_t; | 21 using ClientSpecificId = uint16_t; |
| 22 | 22 |
| 23 constexpr Id kInvalidServerId = 0; | 23 constexpr Id kInvalidServerId = 0; |
| 24 | 24 |
| 25 // Identifies the type of root window. | 25 enum class WindowMusType { |
| 26 enum class RootWindowType { | |
| 27 // The window is an embed root. That is, the client received this window by | 26 // The window is an embed root. That is, the client received this window by |
| 28 // way of another client calling Embed(). | 27 // way of another client calling Embed(). |
| 28 // NOTE: in the client that called Embed() the window type is LOCAL. |
| 29 EMBED, | 29 EMBED, |
| 30 | 30 |
| 31 // The window is a top level window, that is the client created it by way of | 31 // The window was created by requesting a top level |
| 32 // NewTopLevelWindow(). | 32 // (WindowTree::NewTopLevel()). |
| 33 // NOTE: in the window manager (the one responsible for actually creating the |
| 34 // real window) the window is of type LOCAL. |
| 33 TOP_LEVEL, | 35 TOP_LEVEL, |
| 34 | 36 |
| 35 // The window is a display root for the window manager. | 37 // The window is a display root for the window manager. |
| 36 DISPLAY | 38 DISPLAY, |
| 39 |
| 40 // The window was created locally. |
| 41 LOCAL, |
| 42 |
| 43 // Not one of the above. This means the window is visible to the client and |
| 44 // not one of the above values. Practially this means this client is the |
| 45 // window manager and the window was created by another client. |
| 46 OTHER, |
| 37 }; | 47 }; |
| 38 | 48 |
| 39 } // namespace ui | 49 } // namespace ui |
| 40 | 50 |
| 41 #endif // UI_AURA_MUS_MUS_TYPES_H_ | 51 #endif // UI_AURA_MUS_MUS_TYPES_H_ |
| OLD | NEW |