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

Side by Side Diff: ash/aura/wm_shelf_aura.cc

Issue 2053113002: Replaced BackgroundAnimator with ShelfBackgroundAnimator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into animate_shelf_chip_backgrounds Created 4 years, 4 months 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 unified diff | Download patch
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/material_design/material_design_controller_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/aura/wm_shelf_aura.h" 5 #include "ash/aura/wm_shelf_aura.h"
6 6
7 #include "ash/aura/wm_window_aura.h" 7 #include "ash/aura/wm_window_aura.h"
8 #include "ash/common/shelf/wm_shelf_observer.h" 8 #include "ash/common/shelf/wm_shelf_observer.h"
9 #include "ash/common/wm_window.h" 9 #include "ash/common/wm_window.h"
10 #include "ash/shelf/shelf.h" 10 #include "ash/shelf/shelf.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return shelf_->shelf_view_for_testing(); 171 return shelf_->shelf_view_for_testing();
172 } 172 }
173 173
174 void WmShelfAura::WillDeleteShelfLayoutManager() { 174 void WmShelfAura::WillDeleteShelfLayoutManager() {
175 ResetShelfLayoutManager(); 175 ResetShelfLayoutManager();
176 } 176 }
177 177
178 void WmShelfAura::OnBackgroundUpdated( 178 void WmShelfAura::OnBackgroundUpdated(
179 ShelfBackgroundType background_type, 179 ShelfBackgroundType background_type,
180 BackgroundAnimatorChangeType change_type) { 180 BackgroundAnimatorChangeType change_type) {
181 if (background_type == GetBackgroundType())
182 return;
181 FOR_EACH_OBSERVER(WmShelfObserver, observers_, 183 FOR_EACH_OBSERVER(WmShelfObserver, observers_,
182 OnBackgroundUpdated(background_type, change_type)); 184 OnBackgroundTypeChanged(background_type, change_type));
183 } 185 }
184 186
185 void WmShelfAura::WillChangeVisibilityState(ShelfVisibilityState new_state) { 187 void WmShelfAura::WillChangeVisibilityState(ShelfVisibilityState new_state) {
186 FOR_EACH_OBSERVER(WmShelfObserver, observers_, 188 FOR_EACH_OBSERVER(WmShelfObserver, observers_,
187 WillChangeVisibilityState(new_state)); 189 WillChangeVisibilityState(new_state));
188 } 190 }
189 191
190 void WmShelfAura::OnAutoHideStateChanged(ShelfAutoHideState new_state) { 192 void WmShelfAura::OnAutoHideStateChanged(ShelfAutoHideState new_state) {
191 FOR_EACH_OBSERVER(WmShelfObserver, observers_, 193 FOR_EACH_OBSERVER(WmShelfObserver, observers_,
192 OnAutoHideStateChanged(new_state)); 194 OnAutoHideStateChanged(new_state));
193 } 195 }
194 196
195 void WmShelfAura::OnShelfIconPositionsChanged() { 197 void WmShelfAura::OnShelfIconPositionsChanged() {
196 FOR_EACH_OBSERVER(WmShelfObserver, observers_, OnShelfIconPositionsChanged()); 198 FOR_EACH_OBSERVER(WmShelfObserver, observers_, OnShelfIconPositionsChanged());
197 } 199 }
198 200
199 } // namespace ash 201 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/material_design/material_design_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698