| 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 #include "ash/common/shelf/wm_shelf.h" | 5 #include "ash/common/shelf/wm_shelf.h" |
| 6 | 6 |
| 7 #include "ash/common/shelf/shelf_controller.h" | 7 #include "ash/common/shelf/shelf_controller.h" |
| 8 #include "ash/common/shelf/shelf_delegate.h" | 8 #include "ash/common/shelf/shelf_delegate.h" |
| 9 #include "ash/common/shelf/shelf_item_delegate.h" | 9 #include "ash/common/shelf/shelf_item_delegate.h" |
| 10 #include "ash/common/shelf/shelf_layout_manager.h" | 10 #include "ash/common/shelf/shelf_layout_manager.h" |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 base::MakeUnique<AutoHideEventHandler>(shelf_layout_manager()); | 366 base::MakeUnique<AutoHideEventHandler>(shelf_layout_manager()); |
| 367 } | 367 } |
| 368 } | 368 } |
| 369 | 369 |
| 370 void WmShelf::OnAutoHideStateChanged(ShelfAutoHideState new_state) { | 370 void WmShelf::OnAutoHideStateChanged(ShelfAutoHideState new_state) { |
| 371 for (auto& observer : observers_) | 371 for (auto& observer : observers_) |
| 372 observer.OnAutoHideStateChanged(new_state); | 372 observer.OnAutoHideStateChanged(new_state); |
| 373 } | 373 } |
| 374 | 374 |
| 375 void WmShelf::OnBackgroundUpdated(ShelfBackgroundType background_type, | 375 void WmShelf::OnBackgroundUpdated(ShelfBackgroundType background_type, |
| 376 BackgroundAnimatorChangeType change_type) { | 376 AnimationChangeType change_type) { |
| 377 if (background_type == GetBackgroundType()) | 377 if (background_type == GetBackgroundType()) |
| 378 return; | 378 return; |
| 379 for (auto& observer : observers_) | 379 for (auto& observer : observers_) |
| 380 observer.OnBackgroundTypeChanged(background_type, change_type); | 380 observer.OnBackgroundTypeChanged(background_type, change_type); |
| 381 } | 381 } |
| 382 | 382 |
| 383 } // namespace ash | 383 } // namespace ash |
| OLD | NEW |