| 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 mus.mojom; | 5 module mus.mojom; |
| 6 | 6 |
| 7 import "components/mus/public/interfaces/cursor.mojom"; | 7 import "components/mus/public/interfaces/cursor.mojom"; |
| 8 import "components/mus/public/interfaces/event_matcher.mojom"; | 8 import "components/mus/public/interfaces/event_matcher.mojom"; |
| 9 import "components/mus/public/interfaces/input_events.mojom"; | |
| 10 import "components/mus/public/interfaces/window_manager_constants.mojom"; | 9 import "components/mus/public/interfaces/window_manager_constants.mojom"; |
| 10 import "ui/events/mojo/event.mojom"; |
| 11 import "ui/gfx/geometry/mojo/geometry.mojom"; | 11 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 12 | 12 |
| 13 // WindowManager is used when a WindowTreeClient attempts to modify | 13 // WindowManager is used when a WindowTreeClient attempts to modify |
| 14 // a property of the embed root. When this happens WindowTree calls the | 14 // a property of the embed root. When this happens WindowTree calls the |
| 15 // appropriate function on WindowManager. For example, if a | 15 // appropriate function on WindowManager. For example, if a |
| 16 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree | 16 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree |
| 17 // calls WmSetBounds(). WindowManager can then decide if it wants to | 17 // calls WmSetBounds(). WindowManager can then decide if it wants to |
| 18 // change the bounds or not. | 18 // change the bounds or not. |
| 19 // | 19 // |
| 20 // This interface is only used as an associated interface and is associated | 20 // This interface is only used as an associated interface and is associated |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 uint16 requesting_client_id, | 66 uint16 requesting_client_id, |
| 67 map<string, array<uint8>> properties); | 67 map<string, array<uint8>> properties); |
| 68 | 68 |
| 69 // A WindowTreeClient is considered "janky" by Mus when it stops ACK'ing input | 69 // A WindowTreeClient is considered "janky" by Mus when it stops ACK'ing input |
| 70 // events within a reasonable timeframe. When a client enters or exits this | 70 // events within a reasonable timeframe. When a client enters or exits this |
| 71 // state, Mus will tell the window manager about it so that the window manager | 71 // state, Mus will tell the window manager about it so that the window manager |
| 72 // can update the UI for the janky windows. | 72 // can update the UI for the janky windows. |
| 73 WmClientJankinessChanged(uint16 client_id, bool janky); | 73 WmClientJankinessChanged(uint16 client_id, bool janky); |
| 74 | 74 |
| 75 // An accelerator registered via AddAccelerator() has been triggered. | 75 // An accelerator registered via AddAccelerator() has been triggered. |
| 76 OnAccelerator(uint32 id, Event event); | 76 OnAccelerator(uint32 id, ui.mojom.Event event); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 // This interface is only used as an associated interface and is associated | 79 // This interface is only used as an associated interface and is associated |
| 80 // with WindowTree. | 80 // with WindowTree. |
| 81 interface WindowManagerClient { | 81 interface WindowManagerClient { |
| 82 // Enables (or disables) child windows of |window_id| to be activated. | 82 // Enables (or disables) child windows of |window_id| to be activated. |
| 83 AddActivationParent(uint32 window_id); | 83 AddActivationParent(uint32 window_id); |
| 84 RemoveActivationParent(uint32 window_id); | 84 RemoveActivationParent(uint32 window_id); |
| 85 | 85 |
| 86 ActivateNextWindow(); | 86 ActivateNextWindow(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 114 // associated with. | 114 // associated with. |
| 115 WmSetFrameDecorationValues(FrameDecorationValues values); | 115 WmSetFrameDecorationValues(FrameDecorationValues values); |
| 116 | 116 |
| 117 // Sets the cursor that the non-client areas of the window should use. | 117 // Sets the cursor that the non-client areas of the window should use. |
| 118 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 118 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 119 | 119 |
| 120 // Response from WmCreateTopLevelWindow() informing the client of the id for | 120 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 121 // the new window. | 121 // the new window. |
| 122 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 122 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 123 }; | 123 }; |
| OLD | NEW |