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

Side by Side Diff: chrome/browser/ui/panels/panel_bounds_animation.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_PANELS_PANEL_BOUNDS_ANIMATION_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BOUNDS_ANIMATION_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BOUNDS_ANIMATION_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BOUNDS_ANIMATION_H_
7 7
8 #include "ui/base/animation/linear_animation.h" 8 #include "ui/gfx/animation/linear_animation.h"
9 9
10 namespace ui { 10 namespace gfx {
11 class AnimationDelegate; 11 class AnimationDelegate;
12 } 12 }
13 class Panel; 13 class Panel;
14 14
15 class PanelBoundsAnimation : public ui::LinearAnimation { 15 class PanelBoundsAnimation : public gfx::LinearAnimation {
16 public: 16 public:
17 PanelBoundsAnimation(ui::AnimationDelegate* target, 17 PanelBoundsAnimation(gfx::AnimationDelegate* target,
18 Panel* panel, 18 Panel* panel,
19 const gfx::Rect& initial_bounds, 19 const gfx::Rect& initial_bounds,
20 const gfx::Rect& final_bounds); 20 const gfx::Rect& final_bounds);
21 virtual ~PanelBoundsAnimation(); 21 virtual ~PanelBoundsAnimation();
22 virtual double GetCurrentValue() const OVERRIDE; 22 virtual double GetCurrentValue() const OVERRIDE;
23 23
24 // Static because it is reused on Mac to override NSAnimation's calculation. 24 // Static because it is reused on Mac to override NSAnimation's calculation.
25 static double ComputeAnimationValue(double progress, 25 static double ComputeAnimationValue(double progress,
26 bool for_big_minimize, 26 bool for_big_minimize,
27 double animation_stop_to_show_titlebar); 27 double animation_stop_to_show_titlebar);
28 28
29 protected: 29 protected:
30 virtual void AnimateToState(double state) OVERRIDE {} 30 virtual void AnimateToState(double state) OVERRIDE {}
31 31
32 private: 32 private:
33 Panel* panel_; // Weak, owns us. 33 Panel* panel_; // Weak, owns us.
34 bool for_big_minimize_; 34 bool for_big_minimize_;
35 double animation_stop_to_show_titlebar_; 35 double animation_stop_to_show_titlebar_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(PanelBoundsAnimation); 37 DISALLOW_COPY_AND_ASSIGN(PanelBoundsAnimation);
38 }; 38 };
39 39
40 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BOUNDS_ANIMATION_H_ 40 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BOUNDS_ANIMATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/throbber_gtk.cc ('k') | chrome/browser/ui/panels/panel_bounds_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698