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

Side by Side Diff: mojo/services/window_manager/interfaces/window_manager_internal.mojom

Issue 1454113003: Require an explicit ServiceName annotation for interfaces in C++. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
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 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo; 6 module mojo;
7 7
8 import "geometry/interfaces/geometry.mojom"; 8 import "geometry/interfaces/geometry.mojom";
9 import "input_events/interfaces/input_events.mojom"; 9 import "input_events/interfaces/input_events.mojom";
10 10
11 // WindowManagerInternal is an interface provided by the WindowManager 11 // WindowManagerInternal is an interface provided by the WindowManager
12 // exclusively to the ViewManager. 12 // exclusively to the ViewManager.
13 [ServiceName="mojo::WindowManagerInternal"]
13 interface WindowManagerInternal { 14 interface WindowManagerInternal {
14 // Creates a connection to the WindowManager specifically for a connection to 15 // Creates a connection to the WindowManager specifically for a connection to
15 // the ViewManager. |connection_id| is the id of the connection to the 16 // the ViewManager. |connection_id| is the id of the connection to the
16 // ViewManager. See view_manager.mojom for details on the id. 17 // ViewManager. See view_manager.mojom for details on the id.
17 CreateWindowManagerForViewManagerClient( 18 CreateWindowManagerForViewManagerClient(
18 uint16 connection_id, 19 uint16 connection_id,
19 handle<message_pipe> window_manager_pipe); 20 handle<message_pipe> window_manager_pipe);
20 21
21 SetViewManagerClient(handle<message_pipe> view_manager_client_request); 22 SetViewManagerClient(handle<message_pipe> view_manager_client_request);
22 }; 23 };
23 24
24 // WindowManagerInternalClient is an interface provide by the ViewManager 25 // WindowManagerInternalClient is an interface provide by the ViewManager
25 // exclusively to the WindowManager. It provides functionality only available 26 // exclusively to the WindowManager. It provides functionality only available
26 // to the WindowManager. 27 // to the WindowManager.
28 [ServiceName="mojo::WindowManagerInternalClient"]
27 interface WindowManagerInternalClient { 29 interface WindowManagerInternalClient {
28 // Dispatches the specified input event to the specified view. 30 // Dispatches the specified input event to the specified view.
29 DispatchInputEventToView(uint32 view_id, mojo.Event event); 31 DispatchInputEventToView(uint32 view_id, mojo.Event event);
30 32
31 // Sets the native viewport size. 33 // Sets the native viewport size.
32 SetViewportSize(mojo.Size size); 34 SetViewportSize(mojo.Size size);
33 35
34 // Clones the tree rooted at |view_id|. When the animation completes the clone 36 // Clones the tree rooted at |view_id|. When the animation completes the clone
35 // is destroyed. 37 // is destroyed.
36 // TODO(sky): add actual animation. 38 // TODO(sky): add actual animation.
37 // TODO(sky): I think this only makes sense when destroying (view is 39 // TODO(sky): I think this only makes sense when destroying (view is
38 // already visible), should it be named to indicate this? 40 // already visible), should it be named to indicate this?
39 CloneAndAnimate(uint32 view_id); 41 CloneAndAnimate(uint32 view_id);
40 }; 42 };
OLDNEW
« no previous file with comments | « mojo/services/window_manager/interfaces/window_manager.mojom ('k') | services/dart/test/interfaces/echo_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698