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

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

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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; 8 uint32 window_id;
9 string window_title; 9 string window_title;
10 }; 10 };
11 11
12 // An observer of user windows within mojom::CONTAINER_USER_WINDOWS. 12 // An observer of user windows within mojom::Container::USER_WINDOWS.
13 // TODO(msw): Observe focus changes, title/icon changes, etc. 13 // TODO(msw): Observe focus changes, title/icon changes, etc.
14 interface UserWindowObserver { 14 interface UserWindowObserver {
15 // Called when the observer is first added to supply the initial state. 15 // Called when the observer is first added to supply the initial state.
16 OnUserWindowObserverAdded(array<UserWindow> user_windows); 16 OnUserWindowObserverAdded(array<UserWindow> user_windows);
17 17
18 OnUserWindowAdded(UserWindow user_window); 18 OnUserWindowAdded(UserWindow user_window);
19 OnUserWindowRemoved(uint32 window_id); 19 OnUserWindowRemoved(uint32 window_id);
20 OnUserWindowTitleChanged(uint32 window_id, string window_title); 20 OnUserWindowTitleChanged(uint32 window_id, string window_title);
21 }; 21 };
22 22
23 // An interface allowing system UIs to manage the set of user windows. 23 // An interface allowing system UIs to manage the set of user windows.
24 // TODO(msw): Add minimization, restoration, opening a chooser view, etc. 24 // TODO(msw): Add minimization, restoration, opening a chooser view, etc.
25 interface UserWindowController { 25 interface UserWindowController {
26 AddUserWindowObserver(UserWindowObserver observer); 26 AddUserWindowObserver(UserWindowObserver observer);
27 FocusUserWindow(uint32 window_id); 27 FocusUserWindow(uint32 window_id);
28 }; 28 };
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