Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: components/mus/public/interfaces/window_tree.mojom

Issue 2057793002: Reorganize event mojom files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typos in comments. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/mus/public/interfaces/window_manager.mojom ('k') | components/mus/ws/accelerator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 mus.mojom; 5 module mus.mojom;
6 6
7 import "cc/ipc/surface_id.mojom"; 7 import "cc/ipc/surface_id.mojom";
8 import "components/mus/public/interfaces/compositor_frame.mojom"; 8 import "components/mus/public/interfaces/compositor_frame.mojom";
9 import "components/mus/public/interfaces/cursor.mojom"; 9 import "components/mus/public/interfaces/cursor.mojom";
10 import "components/mus/public/interfaces/event_matcher.mojom"; 10 import "components/mus/public/interfaces/event_matcher.mojom";
11 import "components/mus/public/interfaces/input_events.mojom";
12 import "components/mus/public/interfaces/mus_constants.mojom"; 11 import "components/mus/public/interfaces/mus_constants.mojom";
13 import "components/mus/public/interfaces/window_manager.mojom"; 12 import "components/mus/public/interfaces/window_manager.mojom";
14 import "components/mus/public/interfaces/window_manager_constants.mojom"; 13 import "components/mus/public/interfaces/window_manager_constants.mojom";
14 import "ui/events/mojo/event.mojom";
15 import "ui/gfx/geometry/mojo/geometry.mojom"; 15 import "ui/gfx/geometry/mojo/geometry.mojom";
16 import "ui/platform_window/mojo/text_input_state.mojom"; 16 import "ui/platform_window/mojo/text_input_state.mojom";
17 17
18 struct WindowData { 18 struct WindowData {
19 uint32 parent_id; 19 uint32 parent_id;
20 uint32 window_id; 20 uint32 window_id;
21 gfx.mojom.Rect bounds; 21 gfx.mojom.Rect bounds;
22 map<string, array<uint8>> properties; 22 map<string, array<uint8>> properties;
23 // True if this window is visible. The window may not be drawn on screen (see 23 // True if this window is visible. The window may not be drawn on screen (see
24 // OnWindowParentDrawnStateChanged() for details). 24 // OnWindowParentDrawnStateChanged() for details).
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 array<uint8>? new_data); 366 array<uint8>? new_data);
367 367
368 // Invoked when an event is targeted at the specified window. The client must 368 // Invoked when an event is targeted at the specified window. The client must
369 // call WindowTree::OnWindowInputEventAck() with the same |event_id| to notify 369 // call WindowTree::OnWindowInputEventAck() with the same |event_id| to notify
370 // that the event has been processed, and with an EventResult value to notify 370 // that the event has been processed, and with an EventResult value to notify
371 // if the event was consumed. |event_observer_id| is non-zero if the event 371 // if the event was consumed. |event_observer_id| is non-zero if the event
372 // also matched the active event observer for this client. The client will not 372 // also matched the active event observer for this client. The client will not
373 // receive farther events until the event is ack'ed. 373 // receive farther events until the event is ack'ed.
374 OnWindowInputEvent(uint32 event_id, 374 OnWindowInputEvent(uint32 event_id,
375 uint32 window, 375 uint32 window,
376 Event event, 376 ui.mojom.Event event,
377 uint32 event_observer_id); 377 uint32 event_observer_id);
378 378
379 // Invoked when an |event| is sent via the EventObserver and not targeted at a 379 // Invoked when an |event| is sent via the EventObserver and not targeted at a
380 // specific window. The |event_observer_id| is the one supplied to 380 // specific window. The |event_observer_id| is the one supplied to
381 // SetEventObserver. The client should not acknowledge these events. 381 // SetEventObserver. The client should not acknowledge these events.
382 OnEventObserved(Event event, uint32 event_observer_id); 382 OnEventObserved(ui.mojom.Event event, uint32 event_observer_id);
383 383
384 // Called in two distinct cases: when a window known to the connection gains 384 // Called in two distinct cases: when a window known to the connection gains
385 // focus, or when focus moves from a window known to the connection to a 385 // focus, or when focus moves from a window known to the connection to a
386 // window not known to the connection. In the later case |focused_window_id| 386 // window not known to the connection. In the later case |focused_window_id|
387 // is 0. As with other functions this is only called if the client did not 387 // is 0. As with other functions this is only called if the client did not
388 // initiate the change. 388 // initiate the change.
389 OnWindowFocused(uint32 focused_window_id); 389 OnWindowFocused(uint32 focused_window_id);
390 390
391 OnWindowPredefinedCursorChanged(uint32 window_id, Cursor cursor_id); 391 OnWindowPredefinedCursorChanged(uint32 window_id, Cursor cursor_id);
392 392
393 // A change initiated from the client has completed. See description of 393 // A change initiated from the client has completed. See description of
394 // change ids for details. 394 // change ids for details.
395 OnChangeCompleted(uint32 change_id, bool success); 395 OnChangeCompleted(uint32 change_id, bool success);
396 396
397 // The WindowManager is requesting the specified window to close. If the 397 // The WindowManager is requesting the specified window to close. If the
398 // client allows the change it should delete the window. 398 // client allows the change it should delete the window.
399 RequestClose(uint32 window_id); 399 RequestClose(uint32 window_id);
400 400
401 // See description of WindowManager for details. 401 // See description of WindowManager for details.
402 GetWindowManager(associated WindowManager& internal); 402 GetWindowManager(associated WindowManager& internal);
403 }; 403 };
404 404
405 // Mus provides this interface as a way for clients to connect and obtain a 405 // Mus provides this interface as a way for clients to connect and obtain a
406 // WindowTree handle with a supplied WindowTreeClient handle. The 406 // WindowTree handle with a supplied WindowTreeClient handle. The
407 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 407 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
408 interface WindowTreeFactory { 408 interface WindowTreeFactory {
409 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 409 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
410 }; 410 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/window_manager.mojom ('k') | components/mus/ws/accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698