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