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

Side by Side Diff: ash/common/wm/background_animator.cc

Issue 2030593002: Renames ash/wm/common into ash/common/wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/common/wm/background_animator.h ('k') | ash/common/wm/container_finder.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/wm/common/background_animator.h" 5 #include "ash/common/wm/background_animator.h"
6 6
7 namespace ash { 7 namespace ash {
8 namespace { 8 namespace {
9 9
10 // Duration of the background animation. 10 // Duration of the background animation.
11 const int kBackgroundDurationMS = 1000; 11 const int kBackgroundDurationMS = 1000;
12 } 12 }
13 13
14 BackgroundAnimator::BackgroundAnimator(BackgroundAnimatorDelegate* delegate, 14 BackgroundAnimator::BackgroundAnimator(BackgroundAnimatorDelegate* delegate,
15 int min_alpha, 15 int min_alpha,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 void BackgroundAnimator::AnimationProgressed(const gfx::Animation* animation) { 49 void BackgroundAnimator::AnimationProgressed(const gfx::Animation* animation) {
50 int alpha = animation->CurrentValueBetween(min_alpha_, max_alpha_); 50 int alpha = animation->CurrentValueBetween(min_alpha_, max_alpha_);
51 if (alpha_ == alpha) 51 if (alpha_ == alpha)
52 return; 52 return;
53 alpha_ = alpha; 53 alpha_ = alpha;
54 delegate_->UpdateBackground(alpha_); 54 delegate_->UpdateBackground(alpha_);
55 } 55 }
56 56
57 } // namespace ash 57 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/background_animator.h ('k') | ash/common/wm/container_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698