| 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 #include "ash/mus/shelf_layout_manager.h" | 5 #include "ash/mus/shelf_layout_manager.h" |
| 6 | 6 |
| 7 #include "ash/mus/property_util.h" | 7 #include "ash/mus/property_util.h" |
| 8 #include "ash/mus/shelf_layout_manager_delegate.h" | 8 #include "ash/mus/shelf_layout_manager_delegate.h" |
| 9 #include "ash/public/interfaces/ash_window_type.mojom.h" | 9 #include "ash/public/interfaces/ash_window_type.mojom.h" |
| 10 #include "components/mus/public/cpp/window.h" | 10 #include "services/ui/public/cpp/window.h" |
| 11 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
| 12 | 12 |
| 13 namespace ash { | 13 namespace ash { |
| 14 namespace mus { | 14 namespace mus { |
| 15 | 15 |
| 16 ShelfLayoutManager::ShelfLayoutManager(::mus::Window* owner, | 16 ShelfLayoutManager::ShelfLayoutManager(::mus::Window* owner, |
| 17 ShelfLayoutManagerDelegate* delegate) | 17 ShelfLayoutManagerDelegate* delegate) |
| 18 : LayoutManager(owner), | 18 : LayoutManager(owner), |
| 19 delegate_(delegate), | 19 delegate_(delegate), |
| 20 alignment_(mash::shelf::mojom::Alignment::BOTTOM), | 20 alignment_(mash::shelf::mojom::Alignment::BOTTOM), |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 | 76 |
| 77 void ShelfLayoutManager::WindowAdded(::mus::Window* window) { | 77 void ShelfLayoutManager::WindowAdded(::mus::Window* window) { |
| 78 if (GetAshWindowType(window) == mojom::AshWindowType::SHELF) | 78 if (GetAshWindowType(window) == mojom::AshWindowType::SHELF) |
| 79 delegate_->OnShelfWindowAvailable(); | 79 delegate_->OnShelfWindowAvailable(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace mus | 82 } // namespace mus |
| 83 } // namespace ash | 83 } // namespace ash |
| OLD | NEW |