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

Unified Diff: services/ui/public/interfaces/window_manager_constants.mojom

Issue 2161993002: Start using display.mojom.Display in mus+ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@display_traits
Patch Set: Fixes. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | services/ui/test_wm/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/interfaces/window_manager_constants.mojom
diff --git a/services/ui/public/interfaces/window_manager_constants.mojom b/services/ui/public/interfaces/window_manager_constants.mojom
index 650124815196fe03bfedd4667a95b46c971fc70e..a702c20bcc36eee0e3924669b8fff46454caf8fa 100644
--- a/services/ui/public/interfaces/window_manager_constants.mojom
+++ b/services/ui/public/interfaces/window_manager_constants.mojom
@@ -4,6 +4,7 @@
module ui.mojom;
+import "services/ui/public/interfaces/display/display.mojom";
import "ui/gfx/geometry/mojo/geometry.mojom";
enum WindowManagerErrorCode {
@@ -24,13 +25,6 @@ enum ShowState {
DOCKED,
};
-enum Rotation {
- VALUE_0,
- VALUE_90,
- VALUE_180,
- VALUE_270,
-};
-
const int32 kResizeBehaviorNone = 0;
const int32 kResizeBehaviorCanResize = 1;
const int32 kResizeBehaviorCanMaximize = 2;
@@ -45,19 +39,8 @@ struct FrameDecorationValues {
uint32 max_title_bar_button_width;
};
-enum TouchSupport {
- UNKNOWN,
- AVAILABLE,
- UNAVAILABLE,
-};
-
-struct Display {
- int64 id;
- gfx.mojom.Rect bounds;
- gfx.mojom.Rect work_area;
- float device_pixel_ratio;
- Rotation rotation;
- TouchSupport touch_support;
+struct WsDisplay {
+ display.mojom.Display display;
bool is_primary;
FrameDecorationValues frame_decoration_values;
};
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | services/ui/test_wm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698