| 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/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 Loading... |
| 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 |
| OLD | NEW |