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

Side by Side Diff: third_party/mojo_services/src/window_manager/public/interfaces/window_manager.mojom

Issue 877993004: Revert "Update mojo sdk to rev 8d45c89c30b230843c5bd6dd0693a555750946c0" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « third_party/mojo_services/src/view_manager/public/cpp/view_observer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 module mojo; 5 module mojo;
6 6
7 import "input_events/public/interfaces/input_events.mojom"; 7 import "input_events/public/interfaces/input_events.mojom";
8 import "mojo/public/interfaces/application/service_provider.mojom"; 8 import "mojo/public/interfaces/application/service_provider.mojom";
9 9
10 [Client=WindowManagerClient]
10 interface WindowManager { 11 interface WindowManager {
11 // 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
12 // View. See ViewMangerService::Embed() for details on |services| and 13 // View. See ViewMangerService::Embed() for details on |services| and
13 // |exposed_services|. 14 // |exposed_services|.
14 Embed(string url, 15 Embed(string url, ServiceProvider&? services, ServiceProvider? exposed_service s);
15 ServiceProvider&? services,
16 ServiceProvider? exposed_services);
17 16
18 SetCapture(uint32 view_id) => (bool success); 17 SetCapture(uint32 view_id) => (bool success);
19 FocusWindow(uint32 view_id) => (bool success); 18 FocusWindow(uint32 view_id) => (bool success);
20 ActivateWindow(uint32 view_id) => (bool success); 19 ActivateWindow(uint32 view_id) => (bool success);
21 20
22 // Requests the current focus and activation state and an interface to observe 21 GetFocusedAndActiveViews() => (uint32 focused_view_id, uint32 active_view_id);
23 // future changes.
24 // If |observer| is not null capture, focus and activation updates will be
25 // sent to it.
26 GetFocusedAndActiveViews(WindowManagerObserver? observer)
27 => (uint32 capture_view_id,
28 uint32 focused_view_id,
29 uint32 active_view_id);
30 }; 22 };
31 23
32 interface WindowManagerObserver { 24 interface WindowManagerClient {
33 OnCaptureChanged(uint32 capture_view_id); 25 OnCaptureChanged(uint32 old_capture_view_id, uint32 new_capture_view_id);
34 OnFocusChanged(uint32 focused_view_id); 26 OnFocusChanged(uint32 old_focused_view_id, uint32 new_focused_view_id);
35 OnActiveWindowChanged(uint32 focused_view_id); 27 OnActiveWindowChanged(uint32 old_focused_view_id, uint32 new_focused_view_id);
36 }; 28 };
OLDNEW
« no previous file with comments | « third_party/mojo_services/src/view_manager/public/cpp/view_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698