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

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

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices 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
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 "input_events/public/interfaces/input_events.mojom"; 8 import "input_events/interfaces/input_events.mojom";
9 import "mojo/public/interfaces/application/service_provider.mojom"; 9 import "mojo/public/interfaces/application/service_provider.mojom";
10 10
11 interface WindowManager { 11 interface WindowManager {
12 // Requests the WindowManager to embed the app for |url| at an appropriate 12 // Requests the WindowManager to embed the app for |url| at an appropriate
13 // View. See ViewMangerService::Embed() for details on |services| and 13 // View. See ViewMangerService::Embed() for details on |services| and
14 // |exposed_services|. 14 // |exposed_services|.
15 Embed(string url, 15 Embed(string url,
16 ServiceProvider&? services, 16 ServiceProvider&? services,
17 ServiceProvider? exposed_services); 17 ServiceProvider? exposed_services);
18 18
19 SetCapture(uint32 view_id) => (bool success); 19 SetCapture(uint32 view_id) => (bool success);
20 FocusWindow(uint32 view_id) => (bool success); 20 FocusWindow(uint32 view_id) => (bool success);
21 ActivateWindow(uint32 view_id) => (bool success); 21 ActivateWindow(uint32 view_id) => (bool success);
22 22
23 // Requests the current focus and activation state and an interface to observe 23 // Requests the current focus and activation state and an interface to observe
24 // future changes. 24 // future changes.
25 // If |observer| is not null capture, focus and activation updates will be 25 // If |observer| is not null capture, focus and activation updates will be
26 // sent to it. 26 // sent to it.
27 GetFocusedAndActiveViews(WindowManagerObserver? observer) 27 GetFocusedAndActiveViews(WindowManagerObserver? observer)
28 => (uint32 capture_view_id, 28 => (uint32 capture_view_id,
29 uint32 focused_view_id, 29 uint32 focused_view_id,
30 uint32 active_view_id); 30 uint32 active_view_id);
31 }; 31 };
32 32
33 interface WindowManagerObserver { 33 interface WindowManagerObserver {
34 OnCaptureChanged(uint32 capture_view_id); 34 OnCaptureChanged(uint32 capture_view_id);
35 OnFocusChanged(uint32 focused_view_id); 35 OnFocusChanged(uint32 focused_view_id);
36 OnActiveWindowChanged(uint32 focused_view_id); 36 OnActiveWindowChanged(uint32 focused_view_id);
37 }; 37 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698