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

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

Issue 405523002: Add ability APIs for opening a window with a url embedded, focusing and activating a window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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 | Annotate | Revision Log
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 [Client=WindowManagerClient] 7 [Client=WindowManagerClient]
8 interface WindowManagerService { 8 interface WindowManagerService {
9 OpenWindow() => (uint32 node_id); 9 OpenWindow() => (uint32 node_id);
10 OpenWindowWithURL(string url) => (uint32 node_id);
10 SetCapture(uint32 node_id) => (bool success); 11 SetCapture(uint32 node_id) => (bool success);
12 FocusWindow(uint32 node_id) => (bool success);
13 ActivateWindow(uint32 node_id) => (bool success);
11 }; 14 };
12 15
13 [Client=WindowManagerService] 16 [Client=WindowManagerService]
14 interface WindowManagerClient { 17 interface WindowManagerClient {
15 // Called when the window manager is ready to use (in the event a client 18 // Called when the window manager is ready to use (in the event a client
16 // connects to it before it has been initialized). 19 // connects to it before it has been initialized).
17 OnWindowManagerReady(); 20 OnWindowManagerReady();
18 21
19 // TODO(beng): how is the WM supposed to know if a node is known to a client 22 // TODO(beng): how is the WM supposed to know if a node is known to a client
20 // or not? 23 // or not?
21 OnCaptureChanged(uint32 old_capture_node_id, uint32 new_capture_node_id); 24 OnCaptureChanged(uint32 old_capture_node_id, uint32 new_capture_node_id);
25
26 OnFocusChanged(uint32 old_focused_node_id, uint32 new_focused_node_id);
27 OnActiveWindowChanged(uint32 old_focused_window, uint32 new_focused_window);
22 }; 28 };
23 29
24 } 30 }
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc ('k') | mojo/services/window_manager/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698