Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2450)

Unified Diff: ash/shelf/shelf_layout_manager.cc

Issue 98373006: Animating docked background in sync with shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Animating docked background in sync with shelf Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager_observer.h » ('j') | ash/shelf/shelf_layout_manager_observer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_layout_manager.cc
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index 566db942d273abe3b4fd4804bdc7a19885bc24bc..8068ad3c09aa49d1db904648b3e03da542637a47 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -931,7 +931,10 @@ void ShelfLayoutManager::UpdateTargetBoundsForGesture(
void ShelfLayoutManager::UpdateShelfBackground(
BackgroundAnimator::ChangeType type) {
- shelf_->SetPaintsBackground(GetShelfBackgroundType(), type);
+ const ShelfBackgroundType background_type(GetShelfBackgroundType());
+ shelf_->SetPaintsBackground(background_type, type);
+ FOR_EACH_OBSERVER(ShelfLayoutManagerObserver, observers_,
+ OnBackgroundUpdated(background_type, type));
}
ShelfBackgroundType ShelfLayoutManager::GetShelfBackgroundType() const {
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager_observer.h » ('j') | ash/shelf/shelf_layout_manager_observer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698