Chromium Code Reviews| 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 module ui.mojom; | 5 module ui.mojom; |
| 6 | 6 |
| 7 import "cc/ipc/surface_info.mojom"; | 7 import "cc/ipc/surface_info.mojom"; |
| 8 import "cc/ipc/mojo_compositor_frame_sink.mojom"; | 8 import "cc/ipc/mojo_compositor_frame_sink.mojom"; |
| 9 import "services/ui/public/interfaces/cursor.mojom"; | 9 import "services/ui/public/interfaces/cursor.mojom"; |
| 10 import "services/ui/public/interfaces/event_matcher.mojom"; | 10 import "services/ui/public/interfaces/event_matcher.mojom"; |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 257 // accept events, none of its descendant windows accept events either. | 257 // accept events, none of its descendant windows accept events either. |
| 258 SetCanAcceptEvents(uint32 window_id, bool accept_events); | 258 SetCanAcceptEvents(uint32 window_id, bool accept_events); |
| 259 | 259 |
| 260 // See documentation for WindowTreeClient::OnWindowInputEvent(). | 260 // See documentation for WindowTreeClient::OnWindowInputEvent(). |
| 261 OnWindowInputEventAck(uint32 event_id, EventResult result); | 261 OnWindowInputEventAck(uint32 event_id, EventResult result); |
| 262 | 262 |
| 263 // If the current focus is (or is a child of) |window_id|, requests that the | 263 // If the current focus is (or is a child of) |window_id|, requests that the |
| 264 // window manager change the focus to the next activatable window. | 264 // window manager change the focus to the next activatable window. |
| 265 DeactivateWindow(uint32 window_id); | 265 DeactivateWindow(uint32 window_id); |
| 266 | 266 |
| 267 // Stacks the window above everything. | |
|
sky
2017/01/19 22:20:59
everything -> all sibling windows.
Elliot Glaysher
2017/01/20 01:03:44
Done.
| |
| 268 StackAtTop(uint32 change_id, uint32 window_id); | |
| 269 | |
| 267 // See description of WindowManager for details. | 270 // See description of WindowManager for details. |
| 268 GetWindowManagerClient(associated WindowManagerClient& internal); | 271 GetWindowManagerClient(associated WindowManagerClient& internal); |
| 269 | 272 |
| 270 // Returns a shared memory segment that contains two 16-bit ints packed into a | 273 // Returns a shared memory segment that contains two 16-bit ints packed into a |
| 271 // single Atomic32, which represent the current location of the mouse cursor | 274 // single Atomic32, which represent the current location of the mouse cursor |
| 272 // where the location is (x << 16) | y. | 275 // where the location is (x << 16) | y. |
| 273 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer); | 276 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer); |
| 274 | 277 |
| 275 // Tells the window manager to start moving the window. OnChangeCompleted is | 278 // Tells the window manager to start moving the window. OnChangeCompleted is |
| 276 // called on whether the move was canceled. Because there's a delay between | 279 // called on whether the move was canceled. Because there's a delay between |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 492 // See description of WindowManager for details. | 495 // See description of WindowManager for details. |
| 493 GetWindowManager(associated WindowManager& internal); | 496 GetWindowManager(associated WindowManager& internal); |
| 494 }; | 497 }; |
| 495 | 498 |
| 496 // Mus provides this interface as a way for clients to connect and obtain a | 499 // Mus provides this interface as a way for clients to connect and obtain a |
| 497 // WindowTree handle with a supplied WindowTreeClient handle. The | 500 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 498 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 501 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 499 interface WindowTreeFactory { | 502 interface WindowTreeFactory { |
| 500 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 503 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 501 }; | 504 }; |
| OLD | NEW |