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

Unified Diff: ash/mus/shelf_layout_manager.h

Issue 2259153002: mash: Port ash_sysui ShelfDelegateMus impl to mojo:ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 4 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 | « ash/mus/shelf_delegate_mus.cc ('k') | ash/mus/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/shelf_layout_manager.h
diff --git a/ash/mus/shelf_layout_manager.h b/ash/mus/shelf_layout_manager.h
deleted file mode 100644
index 3f96571064ead55606557327c8c8483dba5633ef..0000000000000000000000000000000000000000
--- a/ash/mus/shelf_layout_manager.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// 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.
-
-#ifndef ASH_MUS_SHELF_LAYOUT_MANAGER_H_
-#define ASH_MUS_SHELF_LAYOUT_MANAGER_H_
-
-#include "ash/mus/layout_manager.h"
-#include "base/macros.h"
-#include "mash/shelf/public/interfaces/shelf_constants.mojom.h"
-
-namespace ash {
-namespace mus {
-
-class ShelfLayoutManagerDelegate;
-
-// Lays out the shelf within shelf containers.
-class ShelfLayoutManager : public LayoutManager {
- public:
- ShelfLayoutManager(ui::Window* owner, ShelfLayoutManagerDelegate* delegate);
- ~ShelfLayoutManager() override;
-
- // Returns the shelf, which may be null.
- ui::Window* GetShelfWindow();
-
- void SetAlignment(mash::shelf::mojom::Alignment alignment);
- void SetAutoHideBehavior(mash::shelf::mojom::AutoHideBehavior auto_hide);
-
- mash::shelf::mojom::Alignment alignment() const { return alignment_; }
- mash::shelf::mojom::AutoHideBehavior auto_hide_behavior() const {
- return auto_hide_behavior_;
- }
-
- private:
- // Overridden from LayoutManager:
- void LayoutWindow(ui::Window* window) override;
- void WindowAdded(ui::Window* window) override;
-
- ShelfLayoutManagerDelegate* delegate_;
- mash::shelf::mojom::Alignment alignment_;
- mash::shelf::mojom::AutoHideBehavior auto_hide_behavior_;
-
- DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
-};
-
-} // namespace mus
-} // namespace ash
-
-#endif // ASH_MUS_SHELF_LAYOUT_MANAGER_H_
« no previous file with comments | « ash/mus/shelf_delegate_mus.cc ('k') | ash/mus/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698