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

Unified Diff: mash/wm/shelf_layout_manager.h

Issue 1991553002: Creates mus implementation of WmShelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: private Created 4 years, 7 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/bridge/wm_shelf_mus.cc ('k') | mash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/shelf_layout_manager.h
diff --git a/mash/wm/shelf_layout_manager.h b/mash/wm/shelf_layout_manager.h
index 23d7e6acc6f546d3f366e32f9bb94d8d4b3d3d88..ae7266c1064c81c9761feeee3afb40ff4752eeea 100644
--- a/mash/wm/shelf_layout_manager.h
+++ b/mash/wm/shelf_layout_manager.h
@@ -18,15 +18,23 @@ class ShelfLayoutManager : public LayoutManager {
explicit ShelfLayoutManager(mus::Window* owner);
~ShelfLayoutManager() override;
- void SetAlignment(mash::shelf::mojom::Alignment alignment);
- void SetAutoHideBehavior(mash::shelf::mojom::AutoHideBehavior auto_hide);
+ // Returns the shelf, which may be null.
+ mus::Window* GetShelfWindow();
+
+ void SetAlignment(shelf::mojom::Alignment alignment);
+ void SetAutoHideBehavior(shelf::mojom::AutoHideBehavior auto_hide);
+
+ shelf::mojom::Alignment alignment() const { return alignment_; }
+ shelf::mojom::AutoHideBehavior auto_hide_behavior() const {
+ return auto_hide_behavior_;
+ }
private:
// Overridden from LayoutManager:
void LayoutWindow(mus::Window* window) override;
- mash::shelf::mojom::Alignment alignment_;
- mash::shelf::mojom::AutoHideBehavior auto_hide_behavior_;
+ shelf::mojom::Alignment alignment_;
+ shelf::mojom::AutoHideBehavior auto_hide_behavior_;
DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
};
« no previous file with comments | « mash/wm/bridge/wm_shelf_mus.cc ('k') | mash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698