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/event_matcher.mojom"; | 7 import "components/mus/public/interfaces/event_matcher.mojom"; |
8 import "components/mus/public/interfaces/input_events.mojom"; | 8 import "components/mus/public/interfaces/input_events.mojom"; |
9 import "components/mus/public/interfaces/window_manager_constants.mojom"; | 9 import "components/mus/public/interfaces/window_manager_constants.mojom"; |
10 import "ui/mojo/geometry/geometry.mojom"; | 10 import "ui/mojo/geometry/geometry.mojom"; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 SetUnderlaySurfaceOffsetAndExtendedHitArea(uint32 window_id, | 74 SetUnderlaySurfaceOffsetAndExtendedHitArea(uint32 window_id, |
75 int32 x_offset, | 75 int32 x_offset, |
76 int32 y_offset, | 76 int32 y_offset, |
77 mojo.Insets hit_area); | 77 mojo.Insets hit_area); |
78 | 78 |
79 // Add and remove accelerators. When accelerators are registered the | 79 // Add and remove accelerators. When accelerators are registered the |
80 // WindowManager receives the event via OnAccelerator() rather than the | 80 // WindowManager receives the event via OnAccelerator() rather than the |
81 // target window. The id is defined by the client and can be used to more | 81 // target window. The id is defined by the client and can be used to more |
82 // easily identify the accelerator's action. If an accelerator with the same | 82 // easily identify the accelerator's action. If an accelerator with the same |
83 // id or the same matcher already exists, then the accelerator is not added. | 83 // id or the same matcher already exists, then the accelerator is not added. |
84 // Accelerator ID 1 << 24 and above are reserved for internal use. | |
msw
2016/05/06 22:34:31
The int32 space is 4,294,967,295, this would reser
James Cook
2016/05/07 00:03:10
Done.
| |
84 AddAccelerator(uint32 id, EventMatcher matcher) => (bool success); | 85 AddAccelerator(uint32 id, EventMatcher matcher) => (bool success); |
85 RemoveAccelerator(uint32 id); | 86 RemoveAccelerator(uint32 id); |
86 | 87 |
87 // The window manager has completed a request with the specific change id. | 88 // The window manager has completed a request with the specific change id. |
88 WmResponse(uint32 change_id, bool response); | 89 WmResponse(uint32 change_id, bool response); |
89 | 90 |
90 // Calls WindowTreeClient::RequestClose() on the embedded app at the | 91 // Calls WindowTreeClient::RequestClose() on the embedded app at the |
91 // specified window. | 92 // specified window. |
92 WmRequestClose(uint32 window_id); | 93 WmRequestClose(uint32 window_id); |
93 | 94 |
94 // Sets the frame decoration constants of the display the window manager is | 95 // Sets the frame decoration constants of the display the window manager is |
95 // associated with. | 96 // associated with. |
96 WmSetFrameDecorationValues(FrameDecorationValues values); | 97 WmSetFrameDecorationValues(FrameDecorationValues values); |
97 | 98 |
98 // Response from WmCreateTopLevelWindow() informing the client of the id for | 99 // Response from WmCreateTopLevelWindow() informing the client of the id for |
99 // the new window. | 100 // the new window. |
100 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 101 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
101 }; | 102 }; |
OLD | NEW |