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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/shelf/background_animator.h ('k') | ash/shelf/overflow_bubble.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/shelf/background_animator.h" 5 #include "ash/shelf/background_animator.h"
6 6
7 7
8 namespace ash { 8 namespace ash {
9 namespace internal {
10
11 namespace { 9 namespace {
12 10
13 // Duration of the background animation. 11 // Duration of the background animation.
14 const int kBackgroundDurationMS = 1000; 12 const int kBackgroundDurationMS = 1000;
15 13
16 } 14 }
17 15
18 BackgroundAnimator::BackgroundAnimator(BackgroundAnimatorDelegate* delegate, 16 BackgroundAnimator::BackgroundAnimator(BackgroundAnimatorDelegate* delegate,
19 int min_alpha, 17 int min_alpha,
20 int max_alpha) 18 int max_alpha)
(...skipping 30 matching lines...) Expand all
51 } 49 }
52 50
53 void BackgroundAnimator::AnimationProgressed(const gfx::Animation* animation) { 51 void BackgroundAnimator::AnimationProgressed(const gfx::Animation* animation) {
54 int alpha = animation->CurrentValueBetween(min_alpha_, max_alpha_); 52 int alpha = animation->CurrentValueBetween(min_alpha_, max_alpha_);
55 if (alpha_ == alpha) 53 if (alpha_ == alpha)
56 return; 54 return;
57 alpha_ = alpha; 55 alpha_ = alpha;
58 delegate_->UpdateBackground(alpha_); 56 delegate_->UpdateBackground(alpha_);
59 } 57 }
60 58
61 } // namespace internal
62 } // namespace ash 59 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shelf/background_animator.h ('k') | ash/shelf/overflow_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698