| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 // Invoked when an event is targeted at the specified window. The client must | 409 // Invoked when an event is targeted at the specified window. The client must |
| 410 // call WindowTree::OnWindowInputEventAck() with the same |event_id| to notify | 410 // call WindowTree::OnWindowInputEventAck() with the same |event_id| to notify |
| 411 // that the event has been processed, and with an EventResult value to notify | 411 // that the event has been processed, and with an EventResult value to notify |
| 412 // if the event was consumed. |matches_pointer_watcher| is true if the client | 412 // if the event was consumed. |matches_pointer_watcher| is true if the client |
| 413 // has called StartPointerWatcher() and the event matches the type of events | 413 // has called StartPointerWatcher() and the event matches the type of events |
| 414 // specified by StartPointerWatcher(). The client will not receive farther | 414 // specified by StartPointerWatcher(). The client will not receive farther |
| 415 // events until the event is ack'ed, regardless of the value of | 415 // events until the event is ack'ed, regardless of the value of |
| 416 // |matches_pointer_watcher|. | 416 // |matches_pointer_watcher|. |
| 417 OnWindowInputEvent(uint32 event_id, | 417 OnWindowInputEvent(uint32 event_id, |
| 418 uint32 window, | 418 uint32 window, |
| 419 int64 display_id, |
| 419 ui.mojom.Event event, | 420 ui.mojom.Event event, |
| 420 bool matches_pointer_watcher); | 421 bool matches_pointer_watcher); |
| 421 | 422 |
| 422 // Called when a pointer event that would not normally be targeted at this | 423 // Called when a pointer event that would not normally be targeted at this |
| 423 // client is encountered and the client called StartPointerWatcher(). See | 424 // client is encountered and the client called StartPointerWatcher(). See |
| 424 // StartPointerWatcher() for details. |window_id| is the window id of the | 425 // StartPointerWatcher() for details. |window_id| is the window id of the |
| 425 // event target, or 0 if the window is not known to this client. The | 426 // event target, or 0 if the window is not known to this client. The |
| 426 // client should not acknowledge these events. | 427 // client should not acknowledge these events. |
| 427 OnPointerEventObserved(ui.mojom.Event event, uint32 window_id); | 428 OnPointerEventObserved(ui.mojom.Event event, |
| 429 uint32 window_id, |
| 430 int64 display_id); |
| 428 | 431 |
| 429 // Called in two distinct cases: when a window known to the connection gains | 432 // Called in two distinct cases: when a window known to the connection gains |
| 430 // focus, or when focus moves from a window known to the connection to a | 433 // focus, or when focus moves from a window known to the connection to a |
| 431 // window not known to the connection. In the later case |focused_window_id| | 434 // window not known to the connection. In the later case |focused_window_id| |
| 432 // is 0. As with other functions this is only called if the client did not | 435 // is 0. As with other functions this is only called if the client did not |
| 433 // initiate the change. | 436 // initiate the change. |
| 434 OnWindowFocused(uint32 focused_window_id); | 437 OnWindowFocused(uint32 focused_window_id); |
| 435 | 438 |
| 436 OnWindowPredefinedCursorChanged(uint32 window_id, Cursor cursor_id); | 439 OnWindowPredefinedCursorChanged(uint32 window_id, Cursor cursor_id); |
| 437 | 440 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 // See description of WindowManager for details. | 501 // See description of WindowManager for details. |
| 499 GetWindowManager(associated WindowManager& internal); | 502 GetWindowManager(associated WindowManager& internal); |
| 500 }; | 503 }; |
| 501 | 504 |
| 502 // Mus provides this interface as a way for clients to connect and obtain a | 505 // Mus provides this interface as a way for clients to connect and obtain a |
| 503 // WindowTree handle with a supplied WindowTreeClient handle. The | 506 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 504 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 507 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 505 interface WindowTreeFactory { | 508 interface WindowTreeFactory { |
| 506 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 509 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 507 }; | 510 }; |
| OLD | NEW |