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

Side by Side Diff: mash/wm/public/interfaces/user_window_controller.mojom

Issue 1953183002: Support the ignored_by_shelf flag for Mus windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix deps and limit mus to MOJO_SHELL_CLIENT. Created 4 years, 7 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 | « mash/wm/property_util.cc ('k') | mash/wm/user_window_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 mash.wm.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 }; 14 };
14 15
15 // An observer of user windows within mojom::Container::USER_WINDOWS. 16 // An observer of user windows within mojom::Container::USER_WINDOWS.
16 // TODO(msw): Observe focus changes, title/icon changes, etc. 17 // TODO(msw): Observe focus changes, title/icon changes, etc.
17 interface UserWindowObserver { 18 interface UserWindowObserver {
18 // Called when the observer is first added to supply the initial state. 19 // Called when the observer is first added to supply the initial state.
19 OnUserWindowObserverAdded(array<UserWindow> user_windows); 20 OnUserWindowObserverAdded(array<UserWindow> user_windows);
20 21
21 OnUserWindowAdded(UserWindow user_window); 22 OnUserWindowAdded(UserWindow user_window);
22 OnUserWindowRemoved(uint32 window_id); 23 OnUserWindowRemoved(uint32 window_id);
23 24
24 OnUserWindowTitleChanged(uint32 window_id, string window_title); 25 OnUserWindowTitleChanged(uint32 window_id, string window_title);
25 26
26 // |app_icon| is a serialized SkBitmap. 27 // |app_icon| is a serialized SkBitmap.
27 OnUserWindowAppIconChanged(uint32 window_id, array<uint8> app_icon); 28 OnUserWindowAppIconChanged(uint32 window_id, array<uint8> app_icon);
28 29
29 OnUserWindowFocusChanged(uint32 window_id, bool has_focus); 30 OnUserWindowFocusChanged(uint32 window_id, bool has_focus);
30 }; 31 };
31 32
32 // 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.
33 // TODO(msw): Add minimization, restoration, opening a chooser view, etc. 34 // TODO(msw): Add minimization, restoration, opening a chooser view, etc.
34 interface UserWindowController { 35 interface UserWindowController {
35 AddUserWindowObserver(UserWindowObserver observer); 36 AddUserWindowObserver(UserWindowObserver observer);
36 FocusUserWindow(uint32 window_id); 37 FocusUserWindow(uint32 window_id);
37 }; 38 };
OLDNEW
« no previous file with comments | « mash/wm/property_util.cc ('k') | mash/wm/user_window_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698