OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_SLIDE_ANIMATION_H_ | |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_SLIDE_ANIMATION_H_ | |
7 #pragma once | |
8 | |
9 #include "ui/base/animation/animation_delegate.h" | |
jianli
2011/12/06 19:55:10
Probably we do not need to include this. Instead,
Dmitry Titov
2011/12/07 03:46:04
Done.
| |
10 #include "ui/base/animation/slide_animation.h" | |
11 | |
12 class Panel; | |
13 | |
14 class PanelSlideAnimation : public ui::SlideAnimation { | |
15 public: | |
16 PanelSlideAnimation(ui::AnimationDelegate* target, | |
17 Panel* panel, | |
18 gfx::Rect initial_bounds, | |
jianli
2011/12/06 19:55:10
nit: const &
Dmitry Titov
2011/12/07 03:46:04
Done.
| |
19 gfx::Rect final_bounds); | |
jianli
2011/12/06 19:55:10
ditto
Dmitry Titov
2011/12/07 03:46:04
Done.
| |
20 virtual ~PanelSlideAnimation(); | |
21 virtual double GetCurrentValue() const OVERRIDE; | |
22 | |
23 private: | |
24 Panel* panel_; // Weak, owns us. | |
25 bool for_minimize_; | |
26 double animation_stop_to_show_titlebar_; | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(PanelSlideAnimation); | |
29 }; | |
30 | |
31 #endif // CHROME_BROWSER_UI_PANELS_PANEL_SLIDE_ANIMATION_H_ | |
OLD | NEW |