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

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

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 2 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_tree.mojom ('k') | components/mus/ws/access_policy.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 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 mojo; 5 module mus.mojom;
6 6
7 import "components/mus/public/interfaces/view_tree.mojom"; 7 import "components/mus/public/interfaces/window_tree.mojom";
8 import "ui/mojo/events/input_event_constants.mojom"; 8 import "ui/mojo/events/input_event_constants.mojom";
9 import "ui/mojo/events/input_events.mojom"; 9 import "ui/mojo/events/input_events.mojom";
10 import "ui/mojo/events/input_key_codes.mojom"; 10 import "ui/mojo/events/input_key_codes.mojom";
11 import "ui/mojo/geometry/geometry.mojom"; 11 import "ui/mojo/geometry/geometry.mojom";
12 12
13 // ViewTreeHost encapsulates a unique underlying platform window, with a tree 13 // WindowTreeHost encapsulates a unique underlying platform window, with a tree
14 // of views. 14 // of views.
15 interface ViewTreeHost { 15 interface WindowTreeHost {
16 // Sets the size of the platform window. 16 // Sets the size of the platform window.
17 SetSize(mojo.Size size); 17 SetSize(mojo.Size size);
18 18
19 // Sets a title string to be displayed on the platform window. 19 // Sets a title string to be displayed on the platform window.
20 SetTitle(string title); 20 SetTitle(string title);
21 21
22 // Add and remove accelerators. When accelerators are registered the 22 // Add and remove accelerators. When accelerators are registered the
23 // ViewTreeHostClient receives the key event via OnAccelerator() rather than 23 // WindowTreeHostClient receives the key event via OnAccelerator() rather than
24 // the focused view. The id is defined by the client and can be used to more 24 // the focused view. The id is defined by the client and can be used to more
25 // easily identify the accelerator's action. 25 // easily identify the accelerator's action.
26 AddAccelerator(uint32 id, 26 AddAccelerator(uint32 id,
27 mojo.KeyboardCode keyboard_code, 27 mojo.KeyboardCode keyboard_code,
28 mojo.EventFlags flags); 28 mojo.EventFlags flags);
29 RemoveAccelerator(uint32 id); 29 RemoveAccelerator(uint32 id);
30 }; 30 };
31 31
32 interface ViewTreeHostClient { 32 interface WindowTreeHostClient {
33 // An accelerator registered via AddAccelerator() has been triggered. 33 // An accelerator registered via AddAccelerator() has been triggered.
34 OnAccelerator(uint32 id, mojo.Event event); 34 OnAccelerator(uint32 id, mojo.Event event);
35 }; 35 };
36 36
37 interface ViewTreeHostFactory { 37 interface WindowTreeHostFactory {
38 CreateWindowTreeHost(ViewTreeHost& view_tree_host, 38 CreateWindowTreeHost(WindowTreeHost& window_tree_host,
39 ViewTreeHostClient? host_client, 39 WindowTreeHostClient? host_client,
40 ViewTreeClient tree_client); 40 WindowTreeClient tree_client);
41 }; 41 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/ws/access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698