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

Side by Side Diff: components/view_manager/public/interfaces/view_tree_host.mojom

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 module mojo;
6
7 import "components/view_manager/public/interfaces/view_tree.mojom";
8 import "ui/mojo/events/input_event_constants.mojom";
9 import "ui/mojo/events/input_events.mojom";
10 import "ui/mojo/events/input_key_codes.mojom";
11 import "ui/mojo/geometry/geometry.mojom";
12
13 // ViewTreeHost encapsulates a unique underlying platform window, with a tree
14 // of views.
15 interface ViewTreeHost {
16 // Sets the size of the platform window.
17 SetSize(mojo.Size size);
18
19 // Sets a title string to be displayed on the platform window.
20 SetTitle(string title);
21
22 // Add and remove accelerators. When accelerators are registered the
23 // ViewTreeHostClient 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
25 // easily identify the accelerator's action.
26 AddAccelerator(uint32 id,
27 mojo.KeyboardCode keyboard_code,
28 mojo.EventFlags flags);
29 RemoveAccelerator(uint32 id);
30 };
31
32 interface ViewTreeHostClient {
33 // An accelerator registered via AddAccelerator() has been triggered.
34 OnAccelerator(uint32 id, mojo.Event event);
35 };
36
37 interface ViewTreeHostFactory {
38 CreateViewTreeHost(ViewTreeHost& view_tree_host,
39 ViewTreeHostClient? host_client,
40 ViewTreeClient tree_client);
41 };
OLDNEW
« no previous file with comments | « components/view_manager/public/interfaces/view_tree.mojom ('k') | components/view_manager/server_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698