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

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

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

Powered by Google App Engine
This is Rietveld 408576698