Index: mash/wm/shelf_layout_impl.cc |
diff --git a/mash/wm/shelf_layout_impl.cc b/mash/wm/shelf_layout_impl.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5a8917dd1beee2e99f3baa18c52da7c39478fcfd |
--- /dev/null |
+++ b/mash/wm/shelf_layout_impl.cc |
@@ -0,0 +1,34 @@ |
+// Copyright 2015 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. |
+ |
+#include "mash/wm/shelf_layout_impl.h" |
+ |
+#include "mash/wm/root_window_controller.h" |
+#include "mash/wm/shelf_layout_manager.h" |
+#include "mash/wm/status_layout_manager.h" |
+ |
+namespace mash { |
+namespace wm { |
+ |
+ShelfLayoutImpl::ShelfLayoutImpl() {} |
+ |
+ShelfLayoutImpl::~ShelfLayoutImpl() {} |
+ |
+void ShelfLayoutImpl::Initialize(RootWindowController* root_controller) { |
+ root_controller_ = root_controller; |
+} |
+ |
+void ShelfLayoutImpl::SetAlignment(mash::shelf::mojom::Alignment alignment) { |
+ root_controller_->GetShelfLayoutManager()->SetAlignment(alignment); |
+ root_controller_->GetStatusLayoutManager()->SetAlignment(alignment); |
+} |
+ |
+void ShelfLayoutImpl::SetAutoHideBehavior( |
+ mash::shelf::mojom::AutoHideBehavior auto_hide) { |
+ root_controller_->GetShelfLayoutManager()->SetAutoHideBehavior(auto_hide); |
+ root_controller_->GetStatusLayoutManager()->SetAutoHideBehavior(auto_hide); |
+} |
+ |
+} // namespace wm |
+} // namespace mash |