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

Unified Diff: mash/wm/public/interfaces/shelf_layout.mojom

Issue 1835403002: Support additional mash shelf alignments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup; address comments. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: mash/wm/public/interfaces/shelf_layout.mojom
diff --git a/mash/wm/public/interfaces/shelf_layout.mojom b/mash/wm/public/interfaces/shelf_layout.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..6ea69d703994e32d8ddc8587bc148083cb8679d9
--- /dev/null
+++ b/mash/wm/public/interfaces/shelf_layout.mojom
@@ -0,0 +1,18 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mash.wm.mojom;
+
+// These values match ash::ShelfAlignment.
+enum ShelfAlignment { BOTTOM, LEFT, RIGHT, };
+
+// These values match ash::ShelfAutoHideBehavior.
+enum ShelfAutoHideBehavior { ALWAYS, NEVER, HIDDEN, };
+
+// Used by mojo:ash_sysui to push the current shelf state to its layout manager.
+interface ShelfLayout {
+ // TODO: Update preferred sizes with alignment to avoid flicker during layout.
+ SetAlignment(ShelfAlignment alignment);
+ SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide);
+};

Powered by Google App Engine
This is Rietveld 408576698