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); |
}; |