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

Side by Side Diff: components/mus/public/interfaces/window_manager_constants.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
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 mus.mojom; 5 module mus.mojom;
6 6
7 import "ui/mojo/geometry/geometry.mojom"; 7 import "ui/mojo/geometry/geometry.mojom";
8 8
9 enum WindowManagerErrorCode { 9 enum WindowManagerErrorCode {
10 SUCCESS, 10 SUCCESS,
11 ERROR_ACCESS_DENIED 11 ACCESS_DENIED
12 }; 12 };
13 13
14 enum ShowState { 14 enum ShowState {
15 RESTORED, 15 RESTORED,
16 MINIMIZED, 16 MINIMIZED,
17 MAXIMIZED, 17 MAXIMIZED,
18 IMMERSIVE, 18 IMMERSIVE,
19 PRESENTATION 19 PRESENTATION
20 }; 20 };
21 21
22 enum Rotation { 22 enum Rotation {
23 VALUE_0, 23 VALUE_0,
24 VALUE_90, 24 VALUE_90,
25 VALUE_180, 25 VALUE_180,
26 VALUE_270, 26 VALUE_270,
27 }; 27 };
28 28
29 enum ResizeBehavior { 29 const int32 kResizeBehaviorNone = 0;
30 NONE = 0, 30 const int32 kResizeBehaviorCanResize = 1;
31 CAN_RESIZE = 1, 31 const int32 kResizeBehaviorCanMaximize = 2;
32 CAN_MAXIMIZE = 2, 32 const int32 kResizeBehaviorCanMinimize = 4;
33 CAN_MINIMIZE = 4,
34 };
35 33
36 struct Display { 34 struct Display {
37 int64 id; 35 int64 id;
38 mojo.Rect bounds; 36 mojo.Rect bounds;
39 mojo.Rect work_area; 37 mojo.Rect work_area;
40 float device_pixel_ratio; 38 float device_pixel_ratio;
41 Rotation rotation; 39 Rotation rotation;
42 }; 40 };
43 41
44 enum WindowType { 42 enum WindowType {
45 // These constants come from Widget::InitParams. See it for details. 43 // These constants come from Widget::InitParams. See it for details.
46 // TODO: see if we can reduce this set. For example, why do we need both 44 // TODO: see if we can reduce this set. For example, why do we need both
47 // BUBBLE and POPUP. 45 // BUBBLE and POPUP.
48 WINDOW, 46 WINDOW,
49 PANEL, 47 PANEL,
50 WINDOW_FRAMELESS, 48 WINDOW_FRAMELESS,
51 CONTROL, 49 CONTROL,
52 POPUP, 50 POPUP,
53 MENU, 51 MENU,
54 TOOLTIP, 52 TOOLTIP,
55 BUBBLE, 53 BUBBLE,
56 DRAG, 54 DRAG,
57 }; 55 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/input_key_codes.mojom ('k') | components/mus/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698