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

Side by Side Diff: ash/shelf/shelf_background_animator.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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/shelf/shelf_background_animator.h ('k') | ash/shelf/shelf_background_animator_observer.h » ('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/common/shelf/shelf_background_animator.h" 5 #include "ash/shelf/shelf_background_animator.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/animation/animation_change_type.h" 9 #include "ash/animation/animation_change_type.h"
10 #include "ash/common/shelf/shelf_background_animator_observer.h" 10 #include "ash/shelf/shelf_background_animator_observer.h"
11 #include "ash/common/shelf/shelf_constants.h" 11 #include "ash/shelf/shelf_constants.h"
12 #include "ash/common/shelf/wm_shelf.h" 12 #include "ash/shelf/wm_shelf.h"
13 #include "ash/common/wallpaper/wallpaper_controller.h" 13 #include "ash/wallpaper/wallpaper_controller.h"
14 #include "ui/gfx/animation/slide_animation.h" 14 #include "ui/gfx/animation/slide_animation.h"
15 #include "ui/gfx/color_utils.h" 15 #include "ui/gfx/color_utils.h"
16 16
17 namespace ash { 17 namespace ash {
18 18
19 ShelfBackgroundAnimator::AnimationValues::AnimationValues() {} 19 ShelfBackgroundAnimator::AnimationValues::AnimationValues() {}
20 20
21 ShelfBackgroundAnimator::AnimationValues::~AnimationValues() {} 21 ShelfBackgroundAnimator::AnimationValues::~AnimationValues() {}
22 22
23 void ShelfBackgroundAnimator::AnimationValues::UpdateCurrentValues(double t) { 23 void ShelfBackgroundAnimator::AnimationValues::UpdateCurrentValues(double t) {
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 void ShelfBackgroundAnimator::SetAnimationValues(double t) { 237 void ShelfBackgroundAnimator::SetAnimationValues(double t) {
238 DCHECK_GE(t, 0.0); 238 DCHECK_GE(t, 0.0);
239 DCHECK_LE(t, 1.0); 239 DCHECK_LE(t, 1.0);
240 shelf_background_values_.UpdateCurrentValues(t); 240 shelf_background_values_.UpdateCurrentValues(t);
241 item_background_values_.UpdateCurrentValues(t); 241 item_background_values_.UpdateCurrentValues(t);
242 NotifyObservers(); 242 NotifyObservers();
243 } 243 }
244 244
245 } // namespace ash 245 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shelf/shelf_background_animator.h ('k') | ash/shelf/shelf_background_animator_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698