| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_MUS_SHELF_LAYOUT_IMPL_H_ | |
| 6 #define ASH_MUS_SHELF_LAYOUT_IMPL_H_ | |
| 7 | |
| 8 #include "ash/public/interfaces/shelf_layout.mojom.h" | |
| 9 #include "base/macros.h" | |
| 10 | |
| 11 namespace ash { | |
| 12 namespace mus { | |
| 13 | |
| 14 class RootWindowController; | |
| 15 | |
| 16 // Implements the ShelfLayout mojo interface to listen for layout changes from | |
| 17 // the system UI application. | |
| 18 class ShelfLayoutImpl : public mojom::ShelfLayout { | |
| 19 public: | |
| 20 ShelfLayoutImpl(); | |
| 21 ~ShelfLayoutImpl() override; | |
| 22 | |
| 23 void Initialize(RootWindowController* root_controller); | |
| 24 | |
| 25 private: | |
| 26 // Overridden from mojom::ShelfLayout: | |
| 27 void SetAlignment(mash::shelf::mojom::Alignment alignment) override; | |
| 28 void SetAutoHideBehavior( | |
| 29 mash::shelf::mojom::AutoHideBehavior auto_hide) override; | |
| 30 | |
| 31 RootWindowController* root_controller_ = nullptr; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutImpl); | |
| 34 }; | |
| 35 | |
| 36 } // namespace mus | |
| 37 } // namespace ash | |
| 38 | |
| 39 #endif // ASH_MUS_SHELF_LAYOUT_IMPL_H_ | |
| OLD | NEW |