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

Side by Side Diff: components/mus/public/interfaces/window_manager_constants.mojom

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 module mus.mojom;
6
7 import "ui/gfx/geometry/mojo/geometry.mojom";
8
9 enum WindowManagerErrorCode {
10 SUCCESS,
11 ACCESS_DENIED
12 };
13
14 // TODO(sky): seems like this should not be defined in mus, rather in mash.
15 // Only thing mus cares about is minimized and that should be expressed
16 // differently.
17 enum ShowState {
18 DEFAULT,
19 NORMAL,
20 MINIMIZED,
21 MAXIMIZED,
22 INACTIVE,
23 FULLSCREEN,
24 DOCKED,
25 };
26
27 enum Rotation {
28 VALUE_0,
29 VALUE_90,
30 VALUE_180,
31 VALUE_270,
32 };
33
34 const int32 kResizeBehaviorNone = 0;
35 const int32 kResizeBehaviorCanResize = 1;
36 const int32 kResizeBehaviorCanMaximize = 2;
37 const int32 kResizeBehaviorCanMinimize = 4;
38
39 struct FrameDecorationValues {
40 gfx.mojom.Insets normal_client_area_insets;
41 gfx.mojom.Insets maximized_client_area_insets;
42 // Max width needed to display the buttons on the title bar. The buttons are
43 // aligned to the trailing edge of the titlebar.
44 // TODO(sky): this API is very narrow, and assumes a particular config.
45 uint32 max_title_bar_button_width;
46 };
47
48 enum TouchSupport {
49 UNKNOWN,
50 AVAILABLE,
51 UNAVAILABLE,
52 };
53
54 struct Display {
55 int64 id;
56 gfx.mojom.Rect bounds;
57 gfx.mojom.Rect work_area;
58 float device_pixel_ratio;
59 Rotation rotation;
60 TouchSupport touch_support;
61 bool is_primary;
62 FrameDecorationValues frame_decoration_values;
63 };
64
65 enum WindowType {
66 // These constants come from Widget::InitParams. See it for details.
67 // TODO: see if we can reduce this set. For example, why do we need both
68 // BUBBLE and POPUP.
69 WINDOW,
70 PANEL,
71 WINDOW_FRAMELESS,
72 CONTROL,
73 POPUP,
74 MENU,
75 TOOLTIP,
76 BUBBLE,
77 DRAG,
78 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698