OLD | NEW |
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 // TODO(sky): rethink these, and if we do in fact need it come up with a better | 7 // TODO(sky): rethink these, and if we do in fact need it come up with a better |
8 // name. | 8 // name. |
9 | 9 |
10 [Client=WindowManagerClient2] | 10 [Client=WindowManagerClient2] |
11 interface WindowManagerService2 { | 11 interface WindowManagerService2 { |
12 SetCapture(uint32 view_id) => (bool success); | 12 SetCapture(uint32 view_id) => (bool success); |
13 FocusWindow(uint32 view_id) => (bool success); | 13 FocusWindow(uint32 view_id) => (bool success); |
14 ActivateWindow(uint32 view_id) => (bool success); | 14 ActivateWindow(uint32 view_id) => (bool success); |
15 }; | 15 }; |
16 | 16 |
17 [Client=WindowManagerService2] | 17 [Client=WindowManagerService2] |
18 interface WindowManagerClient2 { | 18 interface WindowManagerClient2 { |
19 // Called when the window manager is ready to use (in the event a client | 19 // Called when the window manager is ready to use (in the event a client |
20 // connects to it before it has been initialized). | 20 // connects to it before it has been initialized). |
21 OnWindowManagerReady(); | 21 OnWindowManagerReady(); |
22 | 22 |
23 // TODO(beng): how is the WM supposed to know if a view is known to a client | 23 // TODO(beng): how is the WM supposed to know if a view is known to a client |
24 // or not? | 24 // or not? |
25 OnCaptureChanged(uint32 old_capture_view_id, uint32 new_capture_view_id); | 25 OnCaptureChanged(uint32 old_capture_view_id, uint32 new_capture_view_id); |
26 | 26 |
27 OnFocusChanged(uint32 old_focused_node_id, uint32 new_focused_node_id); | 27 OnFocusChanged(uint32 old_focused_node_id, uint32 new_focused_node_id); |
28 OnActiveWindowChanged(uint32 old_focused_window, uint32 new_focused_window); | 28 OnActiveWindowChanged(uint32 old_focused_window, uint32 new_focused_window); |
29 }; | 29 }; |
30 | |
31 } | |
OLD | NEW |