| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 module ui.mojom; | 5 module ui.mojom; |
| 6 | 6 |
| 7 import "services/ui/public/interfaces/cursor.mojom"; | 7 import "services/ui/public/interfaces/cursor.mojom"; |
| 8 import "services/ui/public/interfaces/display/display.mojom"; | 8 import "services/ui/public/interfaces/display/display.mojom"; |
| 9 import "services/ui/public/interfaces/event_matcher.mojom"; | 9 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 10 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 10 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // Disables the window manager from handling immersive fullscreen for the | 28 // Disables the window manager from handling immersive fullscreen for the |
| 29 // window. This is typically done if the client wants to handle immersive | 29 // window. This is typically done if the client wants to handle immersive |
| 30 // themselves. Type: bool. | 30 // themselves. Type: bool. |
| 31 const string kDisableImmersive_Property = "prop:disable_immersive"; | 31 const string kDisableImmersive_Property = "prop:disable_immersive"; |
| 32 // Used to explicitly control whether a window appears in the most recently | 32 // Used to explicitly control whether a window appears in the most recently |
| 33 // used list of windows. Type: bool. | 33 // used list of windows. Type: bool. |
| 34 const string kExcludeFromMru_Property = "prop:exclude_from_mru"; | 34 const string kExcludeFromMru_Property = "prop:exclude_from_mru"; |
| 35 // Initial bounds to create the window at. If empty the WindowManager decides | 35 // Initial bounds to create the window at. If empty the WindowManager decides |
| 36 // the initial bounds. | 36 // the initial bounds. |
| 37 const string kInitialBounds_Property = "prop:initial_bounds"; | 37 const string kInitialBounds_Property = "prop:initial_bounds"; |
| 38 // The window manager will place the window in this container when the window |
| 39 // is created. If not set a container is selected based on the window type. |
| 40 // Type: int |
| 41 const string kInitialContainerId_Property = "prop:initial_container_id"; |
| 38 // The id of the display (display::Display::id()) to create the window on. | 42 // The id of the display (display::Display::id()) to create the window on. |
| 39 // Type: int64. | 43 // Type: int64. |
| 40 const string kInitialDisplayId_Property = "prop:initial_display_id"; | 44 const string kInitialDisplayId_Property = "prop:initial_display_id"; |
| 41 // Internal window name. Useful for debugging. Type: mojom::String | 45 // Internal window name. Useful for debugging. Type: mojom::String |
| 42 const string kName_Property = "prop:name"; | 46 const string kName_Property = "prop:name"; |
| 43 // The window's preferred size as defined by its content. Type: gfx::Size. | 47 // The window's preferred size as defined by its content. Type: gfx::Size. |
| 44 const string kPreferredSize_Property = "prop:preferred-size"; | 48 const string kPreferredSize_Property = "prop:preferred-size"; |
| 45 // If true the window manager renders the title area (including frame | 49 // If true the window manager renders the title area (including frame |
| 46 // decorations) of the parent window in this window. This is only checked | 50 // decorations) of the parent window in this window. This is only checked |
| 47 // at the time the window is added to its parent, which must be a top level | 51 // at the time the window is added to its parent, which must be a top level |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // this with the root. | 97 // this with the root. |
| 94 WmDisplayRemoved(int64 display_id); | 98 WmDisplayRemoved(int64 display_id); |
| 95 | 99 |
| 96 // When the WindowManager completes a request it must call back to | 100 // When the WindowManager completes a request it must call back to |
| 97 // WindowManagerClient::WmResponse(). | 101 // WindowManagerClient::WmResponse(). |
| 98 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); | 102 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); |
| 99 WmSetProperty(uint32 change_id, | 103 WmSetProperty(uint32 change_id, |
| 100 uint32 window_id, | 104 uint32 window_id, |
| 101 string name, | 105 string name, |
| 102 array<uint8>? value); | 106 array<uint8>? value); |
| 103 | 107 |
| 104 // Asks the WindowManager to create a new window. | 108 // Asks the WindowManager to create a new window. |
| 105 // |requesting_client_id| is the id of the client issuing the request. This | 109 // |requesting_client_id| is the id of the client issuing the request. This |
| 106 // allows the window manager to track top level windows by client. | 110 // allows the window manager to track top level windows by client. |
| 107 WmCreateTopLevelWindow(uint32 change_id, | 111 WmCreateTopLevelWindow(uint32 change_id, |
| 108 uint16 requesting_client_id, | 112 uint16 requesting_client_id, |
| 109 map<string, array<uint8>> properties); | 113 map<string, array<uint8>> properties); |
| 110 | 114 |
| 111 // A WindowTreeClient is considered "janky" by Mus when it stops ACK'ing input | 115 // A WindowTreeClient is considered "janky" by Mus when it stops ACK'ing input |
| 112 // events within a reasonable timeframe. When a client enters or exits this | 116 // events within a reasonable timeframe. When a client enters or exits this |
| 113 // state, Mus will tell the window manager about it so that the window manager | 117 // state, Mus will tell the window manager about it so that the window manager |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 178 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 175 | 179 |
| 176 // Response from WmCreateTopLevelWindow() informing the client of the id for | 180 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 177 // the new window. | 181 // the new window. |
| 178 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 182 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 179 | 183 |
| 180 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 184 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 181 // that was passed to OnAccelerator(). | 185 // that was passed to OnAccelerator(). |
| 182 OnAcceleratorAck(uint32 ack_id, EventResult event_result); | 186 OnAcceleratorAck(uint32 ack_id, EventResult event_result); |
| 183 }; | 187 }; |
| OLD | NEW |