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

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

Issue 1899323002: Add mash shelf application id support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 8 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
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; 8 uint32 window_id;
9 string window_title; 9 string window_title;
10 bool window_has_focus; 10 bool window_has_focus;
11 array<uint8> window_app_icon; // Serialized SkBitmap. 11 array<uint8> window_app_icon; // Serialized SkBitmap.
12 string window_app_id;
sky 2016/04/22 15:51:19 Document this. And while you're at it, document wi
msw 2016/04/22 19:02:17 Done.
12 }; 13 };
13 14
14 // An observer of user windows within mojom::Container::USER_WINDOWS. 15 // An observer of user windows within mojom::Container::USER_WINDOWS.
15 // TODO(msw): Observe focus changes, title/icon changes, etc. 16 // TODO(msw): Observe focus changes, title/icon changes, etc.
16 interface UserWindowObserver { 17 interface UserWindowObserver {
17 // Called when the observer is first added to supply the initial state. 18 // Called when the observer is first added to supply the initial state.
18 OnUserWindowObserverAdded(array<UserWindow> user_windows); 19 OnUserWindowObserverAdded(array<UserWindow> user_windows);
19 20
20 OnUserWindowAdded(UserWindow user_window); 21 OnUserWindowAdded(UserWindow user_window);
21 OnUserWindowRemoved(uint32 window_id); 22 OnUserWindowRemoved(uint32 window_id);
22 23
23 OnUserWindowTitleChanged(uint32 window_id, string window_title); 24 OnUserWindowTitleChanged(uint32 window_id, string window_title);
24 25
25 // |app_icon| is a serialized SkBitmap. 26 // |app_icon| is a serialized SkBitmap.
26 OnUserWindowAppIconChanged(uint32 window_id, array<uint8> app_icon); 27 OnUserWindowAppIconChanged(uint32 window_id, array<uint8> app_icon);
27 28
28 OnUserWindowFocusChanged(uint32 window_id, bool has_focus); 29 OnUserWindowFocusChanged(uint32 window_id, bool has_focus);
29 }; 30 };
30 31
31 // An interface allowing system UIs to manage the set of user windows. 32 // An interface allowing system UIs to manage the set of user windows.
32 // TODO(msw): Add minimization, restoration, opening a chooser view, etc. 33 // TODO(msw): Add minimization, restoration, opening a chooser view, etc.
33 interface UserWindowController { 34 interface UserWindowController {
34 AddUserWindowObserver(UserWindowObserver observer); 35 AddUserWindowObserver(UserWindowObserver observer);
35 FocusUserWindow(uint32 window_id); 36 FocusUserWindow(uint32 window_id);
36 }; 37 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698