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

Side by Side Diff: ash/mus/shelf_layout_manager.h

Issue 2182633011: Replaces ::ui:: with ui:: in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « ash/mus/shadow_controller.cc ('k') | ash/mus/shelf_layout_manager.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 ASH_MUS_SHELF_LAYOUT_MANAGER_H_ 5 #ifndef ASH_MUS_SHELF_LAYOUT_MANAGER_H_
6 #define ASH_MUS_SHELF_LAYOUT_MANAGER_H_ 6 #define ASH_MUS_SHELF_LAYOUT_MANAGER_H_
7 7
8 #include "ash/mus/layout_manager.h" 8 #include "ash/mus/layout_manager.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "mash/shelf/public/interfaces/shelf_constants.mojom.h" 10 #include "mash/shelf/public/interfaces/shelf_constants.mojom.h"
11 11
12 namespace ash { 12 namespace ash {
13 namespace mus { 13 namespace mus {
14 14
15 class ShelfLayoutManagerDelegate; 15 class ShelfLayoutManagerDelegate;
16 16
17 // Lays out the shelf within shelf containers. 17 // Lays out the shelf within shelf containers.
18 class ShelfLayoutManager : public LayoutManager { 18 class ShelfLayoutManager : public LayoutManager {
19 public: 19 public:
20 ShelfLayoutManager(::ui::Window* owner, ShelfLayoutManagerDelegate* delegate); 20 ShelfLayoutManager(ui::Window* owner, ShelfLayoutManagerDelegate* delegate);
21 ~ShelfLayoutManager() override; 21 ~ShelfLayoutManager() override;
22 22
23 // Returns the shelf, which may be null. 23 // Returns the shelf, which may be null.
24 ::ui::Window* GetShelfWindow(); 24 ui::Window* GetShelfWindow();
25 25
26 void SetAlignment(mash::shelf::mojom::Alignment alignment); 26 void SetAlignment(mash::shelf::mojom::Alignment alignment);
27 void SetAutoHideBehavior(mash::shelf::mojom::AutoHideBehavior auto_hide); 27 void SetAutoHideBehavior(mash::shelf::mojom::AutoHideBehavior auto_hide);
28 28
29 mash::shelf::mojom::Alignment alignment() const { return alignment_; } 29 mash::shelf::mojom::Alignment alignment() const { return alignment_; }
30 mash::shelf::mojom::AutoHideBehavior auto_hide_behavior() const { 30 mash::shelf::mojom::AutoHideBehavior auto_hide_behavior() const {
31 return auto_hide_behavior_; 31 return auto_hide_behavior_;
32 } 32 }
33 33
34 private: 34 private:
35 // Overridden from LayoutManager: 35 // Overridden from LayoutManager:
36 void LayoutWindow(::ui::Window* window) override; 36 void LayoutWindow(ui::Window* window) override;
37 void WindowAdded(::ui::Window* window) override; 37 void WindowAdded(ui::Window* window) override;
38 38
39 ShelfLayoutManagerDelegate* delegate_; 39 ShelfLayoutManagerDelegate* delegate_;
40 mash::shelf::mojom::Alignment alignment_; 40 mash::shelf::mojom::Alignment alignment_;
41 mash::shelf::mojom::AutoHideBehavior auto_hide_behavior_; 41 mash::shelf::mojom::AutoHideBehavior auto_hide_behavior_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 43 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
44 }; 44 };
45 45
46 } // namespace mus 46 } // namespace mus
47 } // namespace ash 47 } // namespace ash
48 48
49 #endif // ASH_MUS_SHELF_LAYOUT_MANAGER_H_ 49 #endif // ASH_MUS_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/mus/shadow_controller.cc ('k') | ash/mus/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698