OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 mash.wm.mojom; | 5 module ash.mojom; |
6 | 6 |
7 struct UserWindow { | 7 struct UserWindow { |
8 uint32 window_id; // The local window id, defined by UserWindowController. | 8 uint32 window_id; // The local window id, defined by UserWindowController. |
9 string window_title; // The window title. | 9 string window_title; // The window title. |
10 bool window_has_focus; // A flag; true if the window is currently focused. | 10 bool window_has_focus; // A flag; true if the window is currently focused. |
11 array<uint8> window_app_icon; // A serialized SkBitmap. | 11 array<uint8> window_app_icon; // A serialized SkBitmap. |
12 string window_app_id; // The window application ID (ie. 'mojo:foo'). | 12 string window_app_id; // The window application ID (ie. 'mojo:foo'). |
13 bool ignored_by_shelf; // A flag; true to avoid showing a shelf item. | 13 bool ignored_by_shelf; // A flag; true to avoid showing a shelf item. |
14 }; | 14 }; |
15 | 15 |
(...skipping 13 matching lines...) Expand all Loading... |
29 | 29 |
30 OnUserWindowFocusChanged(uint32 window_id, bool has_focus); | 30 OnUserWindowFocusChanged(uint32 window_id, bool has_focus); |
31 }; | 31 }; |
32 | 32 |
33 // An interface allowing system UIs to manage the set of user windows. | 33 // An interface allowing system UIs to manage the set of user windows. |
34 // TODO(msw): Add minimization, restoration, opening a chooser view, etc. | 34 // TODO(msw): Add minimization, restoration, opening a chooser view, etc. |
35 interface UserWindowController { | 35 interface UserWindowController { |
36 AddUserWindowObserver(UserWindowObserver observer); | 36 AddUserWindowObserver(UserWindowObserver observer); |
37 FocusUserWindow(uint32 window_id); | 37 FocusUserWindow(uint32 window_id); |
38 }; | 38 }; |
OLD | NEW |