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

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

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/app_list_shelf_item_delegate.cc ('k') | ash/shelf/background_animator.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 (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 #ifndef ASH_SHELF_BACKGROUND_ANIMATOR_H_ 5 #ifndef ASH_SHELF_BACKGROUND_ANIMATOR_H_
6 #define ASH_SHELF_BACKGROUND_ANIMATOR_H_ 6 #define ASH_SHELF_BACKGROUND_ANIMATOR_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "ui/gfx/animation/animation_delegate.h" 10 #include "ui/gfx/animation/animation_delegate.h"
11 #include "ui/gfx/animation/slide_animation.h" 11 #include "ui/gfx/animation/slide_animation.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 // How the background can be changed. 15 // How the background can be changed.
16 enum BackgroundAnimatorChangeType { 16 enum BackgroundAnimatorChangeType {
17 BACKGROUND_CHANGE_ANIMATE, 17 BACKGROUND_CHANGE_ANIMATE,
18 BACKGROUND_CHANGE_IMMEDIATE 18 BACKGROUND_CHANGE_IMMEDIATE
19 }; 19 };
20 20
21 namespace internal {
22
23 // Delegate is notified any time the background changes. 21 // Delegate is notified any time the background changes.
24 class ASH_EXPORT BackgroundAnimatorDelegate { 22 class ASH_EXPORT BackgroundAnimatorDelegate {
25 public: 23 public:
26 virtual void UpdateBackground(int alpha) = 0; 24 virtual void UpdateBackground(int alpha) = 0;
27 25
28 protected: 26 protected:
29 virtual ~BackgroundAnimatorDelegate() {} 27 virtual ~BackgroundAnimatorDelegate() {}
30 }; 28 };
31 29
32 // BackgroundAnimator is used by the shelf to animate the background (alpha). 30 // BackgroundAnimator is used by the shelf to animate the background (alpha).
(...skipping 29 matching lines...) Expand all
62 60
63 // Whether the background is painted. 61 // Whether the background is painted.
64 bool paints_background_; 62 bool paints_background_;
65 63
66 // Current alpha value of the background. 64 // Current alpha value of the background.
67 int alpha_; 65 int alpha_;
68 66
69 DISALLOW_COPY_AND_ASSIGN(BackgroundAnimator); 67 DISALLOW_COPY_AND_ASSIGN(BackgroundAnimator);
70 }; 68 };
71 69
72 } // namespace internal
73 } // namespace ash 70 } // namespace ash
74 71
75 #endif // ASH_SHELF_BACKGROUND_ANIMATOR_H_ 72 #endif // ASH_SHELF_BACKGROUND_ANIMATOR_H_
OLDNEW
« no previous file with comments | « ash/shelf/app_list_shelf_item_delegate.cc ('k') | ash/shelf/background_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698