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

Unified Diff: mash/wm/shelf_layout.h

Issue 1835403002: Support additional mash shelf alignments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase; address comments (sorry). 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
« no previous file with comments | « mash/wm/root_window_controller.cc ('k') | mash/wm/shelf_layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/shelf_layout.h
diff --git a/mash/wm/shelf_layout.h b/mash/wm/shelf_layout.h
index 44f318230363cbb2e38ded63e2d2068952dffe66..ccef7da3331b357e6c69a34595c7747128eededf 100644
--- a/mash/wm/shelf_layout.h
+++ b/mash/wm/shelf_layout.h
@@ -7,12 +7,13 @@
#include "base/macros.h"
#include "mash/wm/layout_manager.h"
+#include "mash/wm/public/interfaces/shelf_layout.mojom.h"
namespace mash {
namespace wm {
// Lays out the shelf within shelf containers.
-class ShelfLayout : public LayoutManager {
+class ShelfLayout : public LayoutManager, public mojom::ShelfLayout {
public:
explicit ShelfLayout(mus::Window* owner);
~ShelfLayout() override;
@@ -21,6 +22,14 @@ class ShelfLayout : public LayoutManager {
// Overridden from LayoutManager:
void LayoutWindow(mus::Window* window) override;
+ // Overridden from mojom::ShelfLayout:
+ void SetAlignment(mash::shelf::mojom::Alignment alignment) override;
+ void SetAutoHideBehavior(
+ mash::shelf::mojom::AutoHideBehavior auto_hide) override;
+
+ mash::shelf::mojom::Alignment alignment_;
+ mash::shelf::mojom::AutoHideBehavior auto_hide_behavior_;
+
DISALLOW_COPY_AND_ASSIGN(ShelfLayout);
};
« no previous file with comments | « mash/wm/root_window_controller.cc ('k') | mash/wm/shelf_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698