| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SHELF_SHELF_CONTROLLER_H_ | 5 #ifndef ASH_SHELF_SHELF_CONTROLLER_H_ |
| 6 #define ASH_SHELF_SHELF_CONTROLLER_H_ | 6 #define ASH_SHELF_SHELF_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ash/public/cpp/shelf_item.h" | 8 #include "ash/public/cpp/shelf_item.h" |
| 9 #include "ash/public/cpp/shelf_model.h" |
| 10 #include "ash/public/cpp/shelf_model_observer.h" |
| 9 #include "ash/public/cpp/shelf_types.h" | 11 #include "ash/public/cpp/shelf_types.h" |
| 10 #include "ash/public/interfaces/shelf.mojom.h" | 12 #include "ash/public/interfaces/shelf.mojom.h" |
| 11 #include "ash/shelf/shelf_model.h" | |
| 12 #include "ash/shelf/shelf_model_observer.h" | |
| 13 #include "mojo/public/cpp/bindings/binding_set.h" | 13 #include "mojo/public/cpp/bindings/binding_set.h" |
| 14 #include "mojo/public/cpp/bindings/interface_ptr_set.h" | 14 #include "mojo/public/cpp/bindings/interface_ptr_set.h" |
| 15 | 15 |
| 16 namespace ash { | 16 namespace ash { |
| 17 | 17 |
| 18 class Shelf; | 18 class Shelf; |
| 19 | 19 |
| 20 // Ash's ShelfController owns the ShelfModel and implements interface functions | 20 // Ash's ShelfController owns the ShelfModel and implements interface functions |
| 21 // that allow Chrome to modify and observe the Shelf and ShelfModel state. | 21 // that allow Chrome to modify and observe the Shelf and ShelfModel state. |
| 22 class ShelfController : public mojom::ShelfController, | 22 class ShelfController : public mojom::ShelfController, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 // The set of shelf observers notified about state and model changes. | 69 // The set of shelf observers notified about state and model changes. |
| 70 mojo::AssociatedInterfacePtrSet<mojom::ShelfObserver> observers_; | 70 mojo::AssociatedInterfacePtrSet<mojom::ShelfObserver> observers_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(ShelfController); | 72 DISALLOW_COPY_AND_ASSIGN(ShelfController); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace ash | 75 } // namespace ash |
| 76 | 76 |
| 77 #endif // ASH_SHELF_SHELF_CONTROLLER_H_ | 77 #endif // ASH_SHELF_SHELF_CONTROLLER_H_ |
| OLD | NEW |