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

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

Issue 1414943003: Moves move logic into WM instead of WS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 5 years, 1 month 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/example/wm/window_manager_impl.cc ('k') | components/mus/ws/BUILD.gn » ('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 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/window_manager.mojom"; 7 import "components/mus/public/interfaces/window_manager.mojom";
8 import "components/mus/public/interfaces/window_tree.mojom"; 8 import "components/mus/public/interfaces/window_tree.mojom";
9 import "ui/mojo/events/input_event_constants.mojom"; 9 import "ui/mojo/events/input_event_constants.mojom";
10 import "ui/mojo/events/input_event_matcher.mojom"; 10 import "ui/mojo/events/input_event_matcher.mojom";
11 import "ui/mojo/events/input_events.mojom"; 11 import "ui/mojo/events/input_events.mojom";
12 import "ui/mojo/events/input_key_codes.mojom"; 12 import "ui/mojo/events/input_key_codes.mojom";
13 import "ui/mojo/geometry/geometry.mojom"; 13 import "ui/mojo/geometry/geometry.mojom";
14 14
15 // WindowTreeHost encapsulates a unique underlying platform window, with a tree 15 // WindowTreeHost encapsulates a unique underlying platform window, with a tree
16 // of windows. 16 // of windows.
17 interface WindowTreeHost { 17 interface WindowTreeHost {
18 // Sets the size of the platform window. 18 // Sets the size of the platform window.
19 SetSize(mojo.Size size); 19 SetSize(mojo.Size size);
20 20
21 // Sets a title string to be displayed on the platform window. 21 // Sets a title string to be displayed on the platform window.
22 SetTitle(string title); 22 SetTitle(string title);
23 23
24 // Add and remove accelerators. When accelerators are registered the 24 // Add and remove accelerators. When accelerators are registered the
25 // WindowTreeHostClient receives the event via OnAccelerator() rather than the 25 // WindowTreeHostClient receives the event via OnAccelerator() rather than the
26 // target window. The id is defined by the client and can be used to more 26 // target window. The id is defined by the client and can be used to more
27 // easily identify the accelerator's action. 27 // easily identify the accelerator's action.
28 AddAccelerator(uint32 id, mojo.EventMatcher matcher); 28 AddAccelerator(uint32 id, mojo.EventMatcher matcher);
29 RemoveAccelerator(uint32 id); 29 RemoveAccelerator(uint32 id);
30
31 // If set pointer events in the non-client area of child windows of
32 // |window_id| start a move or resize. The move is handled entirely by the
33 // window service. Clients see the changes by way of the bounds of the
34 // window changing (WindowTreeClient::OnWindowBoundsChanged()).
35 EnableWindowDraggingForChildren(uint32 window_id);
36 }; 30 };
37 31
38 interface WindowTreeHostClient { 32 interface WindowTreeHostClient {
39 // An accelerator registered via AddAccelerator() has been triggered. 33 // An accelerator registered via AddAccelerator() has been triggered.
40 OnAccelerator(uint32 id, mojo.Event event); 34 OnAccelerator(uint32 id, mojo.Event event);
41 }; 35 };
42 36
43 interface WindowTreeHostFactory { 37 interface WindowTreeHostFactory {
44 CreateWindowTreeHost(WindowTreeHost& window_tree_host, 38 CreateWindowTreeHost(WindowTreeHost& window_tree_host,
45 WindowTreeHostClient? host_client, 39 WindowTreeHostClient? host_client,
46 WindowTreeClient tree_client, 40 WindowTreeClient tree_client,
47 WindowManager? window_manager); 41 WindowManager? window_manager);
48 }; 42 };
OLDNEW
« no previous file with comments | « components/mus/example/wm/window_manager_impl.cc ('k') | components/mus/ws/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698