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

Side by Side Diff: ash/wm/workspace/alternate_frame_caption_button.h

Issue 23531053: ui/base/animation -> ui/gfx/animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 2 trunk Created 7 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WM_WORKSPACE_ALTERNATE_FRAME_CAPTION_BUTTON_H_ 5 #ifndef ASH_WM_WORKSPACE_ALTERNATE_FRAME_CAPTION_BUTTON_H_
6 #define ASH_WM_WORKSPACE_ALTERNATE_FRAME_CAPTION_BUTTON_H_ 6 #define ASH_WM_WORKSPACE_ALTERNATE_FRAME_CAPTION_BUTTON_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/controls/button/custom_button.h" 10 #include "ui/views/controls/button/custom_button.h"
11 11
12 namespace ui { 12 namespace gfx {
13 class SlideAnimation; 13 class SlideAnimation;
14 } 14 }
15 15
16 namespace ash { 16 namespace ash {
17 17
18 // Base class for buttons using the alternate button style. 18 // Base class for buttons using the alternate button style.
19 class ASH_EXPORT AlternateFrameCaptionButton : public views::CustomButton { 19 class ASH_EXPORT AlternateFrameCaptionButton : public views::CustomButton {
20 public: 20 public:
21 static const char kViewClassName[]; 21 static const char kViewClassName[];
22 22
(...skipping 17 matching lines...) Expand all
40 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 40 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
41 41
42 private: 42 private:
43 // Animates the background bubble for the current views::ButtonState. 43 // Animates the background bubble for the current views::ButtonState.
44 void MaybeStartNewBubbleAnimation(); 44 void MaybeStartNewBubbleAnimation();
45 45
46 // views::CustomButton override: 46 // views::CustomButton override:
47 virtual void StateChanged() OVERRIDE; 47 virtual void StateChanged() OVERRIDE;
48 48
49 // ui::AnimateDelegate overrides. (views::CustomButton inherits from 49 // ui::AnimateDelegate overrides. (views::CustomButton inherits from
50 // ui::AnimationDelegate). 50 // gfx::AnimationDelegate).
51 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 51 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
52 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; 52 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE;
53 53
54 Action action_; 54 Action action_;
55 55
56 // The radius of the background bubble when it is hidden. 56 // The radius of the background bubble when it is hidden.
57 double hidden_bubble_radius_; 57 double hidden_bubble_radius_;
58 58
59 // The radius of the background bubble when it is visible. 59 // The radius of the background bubble when it is visible.
60 double shown_bubble_radius_; 60 double shown_bubble_radius_;
61 61
62 scoped_ptr<ui::SlideAnimation> bubble_animation_; 62 scoped_ptr<gfx::SlideAnimation> bubble_animation_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(AlternateFrameCaptionButton); 64 DISALLOW_COPY_AND_ASSIGN(AlternateFrameCaptionButton);
65 }; 65 };
66 66
67 } // namespace ash 67 } // namespace ash
68 68
69 #endif // ASH_WM_WORKSPACE_ALTERNATE_FRAME_CAPTION_BUTTON_H_ 69 #endif // ASH_WM_WORKSPACE_ALTERNATE_FRAME_CAPTION_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/wm/window_animations_unittest.cc ('k') | ash/wm/workspace/alternate_frame_caption_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698