| OLD | NEW |
| 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/gfx/geometry/mojo/geometry.mojom"; | 7 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 8 | 8 |
| 9 enum WindowManagerErrorCode { | 9 enum WindowManagerErrorCode { |
| 10 SUCCESS, | 10 SUCCESS, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 int64 id; | 55 int64 id; |
| 56 gfx.mojom.Rect bounds; | 56 gfx.mojom.Rect bounds; |
| 57 gfx.mojom.Rect work_area; | 57 gfx.mojom.Rect work_area; |
| 58 float device_pixel_ratio; | 58 float device_pixel_ratio; |
| 59 Rotation rotation; | 59 Rotation rotation; |
| 60 TouchSupport touch_support; | 60 TouchSupport touch_support; |
| 61 bool is_primary; | 61 bool is_primary; |
| 62 FrameDecorationValues frame_decoration_values; | 62 FrameDecorationValues frame_decoration_values; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 // Whether a client initiated move loop was started with a mouse event or a |
| 66 // touch event. |
| 67 enum MoveLoopSource { |
| 68 MOUSE, |
| 69 TOUCH |
| 70 }; |
| 71 |
| 65 enum WindowType { | 72 enum WindowType { |
| 66 // These constants come from Widget::InitParams. See it for details. | 73 // 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 | 74 // TODO: see if we can reduce this set. For example, why do we need both |
| 68 // BUBBLE and POPUP. | 75 // BUBBLE and POPUP. |
| 69 WINDOW, | 76 WINDOW, |
| 70 PANEL, | 77 PANEL, |
| 71 WINDOW_FRAMELESS, | 78 WINDOW_FRAMELESS, |
| 72 CONTROL, | 79 CONTROL, |
| 73 POPUP, | 80 POPUP, |
| 74 MENU, | 81 MENU, |
| 75 TOOLTIP, | 82 TOOLTIP, |
| 76 BUBBLE, | 83 BUBBLE, |
| 77 DRAG, | 84 DRAG, |
| 78 }; | 85 }; |
| OLD | NEW |