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

Side by Side Diff: services/ui/public/interfaces/window_manager_constants.mojom

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: Address review issues Created 3 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 ui.mojom; 5 module ui.mojom;
6 6
7 import "ui/display/mojo/display.mojom"; 7 import "ui/display/mojo/display.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 9
10 enum WindowManagerErrorCode { 10 enum WindowManagerErrorCode {
11 SUCCESS, 11 SUCCESS,
12 ACCESS_DENIED 12 ACCESS_DENIED
13 }; 13 };
14 14
15 // TODO(sky): seems like this should not be defined in mus, rather in mash. 15 // TODO(sky): seems like this should not be defined in mus, rather in mash.
16 // Only thing mus cares about is minimized and that should be expressed 16 // Only thing mus cares about is minimized and that should be expressed
17 // differently. 17 // differently.
18 enum ShowState { 18 enum ShowState {
19 DEFAULT, 19 DEFAULT,
20 NORMAL, 20 NORMAL,
21 MINIMIZED, 21 MINIMIZED,
22 MAXIMIZED, 22 MAXIMIZED,
23 INACTIVE, 23 INACTIVE,
24 FULLSCREEN, 24 FULLSCREEN,
25 }; 25 };
26 26
27 enum WindowPinType {
28 NONE,
29 PINNED,
30 TRUSTED_PINNED,
31 };
32
27 const int32 kResizeBehaviorNone = 0; 33 const int32 kResizeBehaviorNone = 0;
28 const int32 kResizeBehaviorCanResize = 1; 34 const int32 kResizeBehaviorCanResize = 1;
29 const int32 kResizeBehaviorCanMaximize = 2; 35 const int32 kResizeBehaviorCanMaximize = 2;
30 const int32 kResizeBehaviorCanMinimize = 4; 36 const int32 kResizeBehaviorCanMinimize = 4;
31 37
32 struct FrameDecorationValues { 38 struct FrameDecorationValues {
33 gfx.mojom.Insets normal_client_area_insets; 39 gfx.mojom.Insets normal_client_area_insets;
34 gfx.mojom.Insets maximized_client_area_insets; 40 gfx.mojom.Insets maximized_client_area_insets;
35 // Max width needed to display the buttons on the title bar. The buttons are 41 // Max width needed to display the buttons on the title bar. The buttons are
36 // aligned to the trailing edge of the titlebar. 42 // aligned to the trailing edge of the titlebar.
(...skipping 21 matching lines...) Expand all
58 PANEL, 64 PANEL,
59 WINDOW_FRAMELESS, 65 WINDOW_FRAMELESS,
60 CONTROL, 66 CONTROL,
61 POPUP, 67 POPUP,
62 MENU, 68 MENU,
63 TOOLTIP, 69 TOOLTIP,
64 BUBBLE, 70 BUBBLE,
65 DRAG, 71 DRAG,
66 UNKNOWN, 72 UNKNOWN,
67 }; 73 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698