Index: chrome/browser/ui/panels/panel_slide_animation.h |
diff --git a/chrome/browser/ui/panels/panel_slide_animation.h b/chrome/browser/ui/panels/panel_slide_animation.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..820ed2ce7a856b27f1bf46527e63ecec0abc5d53 |
--- /dev/null |
+++ b/chrome/browser/ui/panels/panel_slide_animation.h |
@@ -0,0 +1,31 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_PANELS_PANEL_SLIDE_ANIMATION_H_ |
+#define CHROME_BROWSER_UI_PANELS_PANEL_SLIDE_ANIMATION_H_ |
+#pragma once |
+ |
+#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.
|
+#include "ui/base/animation/slide_animation.h" |
+ |
+class Panel; |
+ |
+class PanelSlideAnimation : public ui::SlideAnimation { |
+ public: |
+ PanelSlideAnimation(ui::AnimationDelegate* target, |
+ Panel* panel, |
+ gfx::Rect initial_bounds, |
jianli
2011/12/06 19:55:10
nit: const &
Dmitry Titov
2011/12/07 03:46:04
Done.
|
+ gfx::Rect final_bounds); |
jianli
2011/12/06 19:55:10
ditto
Dmitry Titov
2011/12/07 03:46:04
Done.
|
+ virtual ~PanelSlideAnimation(); |
+ virtual double GetCurrentValue() const OVERRIDE; |
+ |
+ private: |
+ Panel* panel_; // Weak, owns us. |
+ bool for_minimize_; |
+ double animation_stop_to_show_titlebar_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PanelSlideAnimation); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_PANELS_PANEL_SLIDE_ANIMATION_H_ |