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

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

Issue 1618963005: Revert of Start of display management for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « components/mus/public/interfaces/display.mojom ('k') | components/mus/ws/connection_manager.h » ('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 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,
(...skipping 13 matching lines...) Expand all
24 VALUE_90, 24 VALUE_90,
25 VALUE_180, 25 VALUE_180,
26 VALUE_270, 26 VALUE_270,
27 }; 27 };
28 28
29 const int32 kResizeBehaviorNone = 0; 29 const int32 kResizeBehaviorNone = 0;
30 const int32 kResizeBehaviorCanResize = 1; 30 const int32 kResizeBehaviorCanResize = 1;
31 const int32 kResizeBehaviorCanMaximize = 2; 31 const int32 kResizeBehaviorCanMaximize = 2;
32 const int32 kResizeBehaviorCanMinimize = 4; 32 const int32 kResizeBehaviorCanMinimize = 4;
33 33
34 enum TouchSupport {
35 UNKNOWN,
36 AVAILABLE,
37 UNAVAILABLE,
38 };
39
40 // TODO(sky): move this to display.mojom
41 struct Display { 34 struct Display {
42 int64 id; 35 int64 id;
43 mojo.Rect bounds; 36 mojo.Rect bounds;
44 mojo.Rect work_area; 37 mojo.Rect work_area;
45 float device_pixel_ratio; 38 float device_pixel_ratio;
46 Rotation rotation; 39 Rotation rotation;
47 TouchSupport touch_support;
48 bool is_primary;
49 }; 40 };
50 41
51 enum WindowType { 42 enum WindowType {
52 // These constants come from Widget::InitParams. See it for details. 43 // These constants come from Widget::InitParams. See it for details.
53 // 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
54 // BUBBLE and POPUP. 45 // BUBBLE and POPUP.
55 WINDOW, 46 WINDOW,
56 PANEL, 47 PANEL,
57 WINDOW_FRAMELESS, 48 WINDOW_FRAMELESS,
58 CONTROL, 49 CONTROL,
59 POPUP, 50 POPUP,
60 MENU, 51 MENU,
61 TOOLTIP, 52 TOOLTIP,
62 BUBBLE, 53 BUBBLE,
63 DRAG, 54 DRAG,
64 }; 55 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/display.mojom ('k') | components/mus/ws/connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698