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

Side by Side Diff: mash/wm/shelf_layout_impl.h

Issue 1950293003: mash: Add status area container to mash window manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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 unified diff | Download patch
« no previous file with comments | « mash/wm/shelf_layout.cc ('k') | mash/wm/shelf_layout_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MASH_WM_SHELF_LAYOUT_H_ 5 #ifndef MASH_WM_SHELF_LAYOUT_IMPL_H_
6 #define MASH_WM_SHELF_LAYOUT_H_ 6 #define MASH_WM_SHELF_LAYOUT_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mash/wm/layout_manager.h"
10 #include "mash/wm/public/interfaces/shelf_layout.mojom.h" 9 #include "mash/wm/public/interfaces/shelf_layout.mojom.h"
11 10
12 namespace mash { 11 namespace mash {
13 namespace wm { 12 namespace wm {
14 13
15 // Lays out the shelf within shelf containers. 14 class RootWindowController;
16 class ShelfLayout : public LayoutManager, public mojom::ShelfLayout { 15
16 // Implements the ShelfLayout mojo interface to listen for layout changes from
17 // the system UI application.
18 class ShelfLayoutImpl : public mojom::ShelfLayout {
17 public: 19 public:
18 explicit ShelfLayout(mus::Window* owner); 20 ShelfLayoutImpl();
19 ~ShelfLayout() override; 21 ~ShelfLayoutImpl() override;
22
23 void Initialize(RootWindowController* root_controller);
20 24
21 private: 25 private:
22 // Overridden from LayoutManager:
23 void LayoutWindow(mus::Window* window) override;
24
25 // Overridden from mojom::ShelfLayout: 26 // Overridden from mojom::ShelfLayout:
26 void SetAlignment(mash::shelf::mojom::Alignment alignment) override; 27 void SetAlignment(mash::shelf::mojom::Alignment alignment) override;
27 void SetAutoHideBehavior( 28 void SetAutoHideBehavior(
28 mash::shelf::mojom::AutoHideBehavior auto_hide) override; 29 mash::shelf::mojom::AutoHideBehavior auto_hide) override;
29 30
30 mash::shelf::mojom::Alignment alignment_; 31 RootWindowController* root_controller_ = nullptr;
31 mash::shelf::mojom::AutoHideBehavior auto_hide_behavior_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(ShelfLayout); 33 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutImpl);
34 }; 34 };
35 35
36 } // namespace wm 36 } // namespace wm
37 } // namespace mash 37 } // namespace mash
38 38
39 #endif // MASH_WM_SHELF_LAYOUT_H_ 39 #endif // MASH_WM_SHELF_LAYOUT_IMPL_H_
OLDNEW
« no previous file with comments | « mash/wm/shelf_layout.cc ('k') | mash/wm/shelf_layout_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698