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

Unified Diff: chrome/browser/ui/panels/panel_browser_view.h

Issue 8787009: Add 3-stage animation for minimization of Panels on Win. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another build fix Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_browser_view.h
diff --git a/chrome/browser/ui/panels/panel_browser_view.h b/chrome/browser/ui/panels/panel_browser_view.h
index 99506dfae7e6c1c8a67e31ebf696e0fc32a9b826..77ea51724f32246066348ad19120e6b4df40e413 100644
--- a/chrome/browser/ui/panels/panel_browser_view.h
+++ b/chrome/browser/ui/panels/panel_browser_view.h
@@ -12,14 +12,28 @@
#include "chrome/browser/ui/panels/native_panel.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "ui/base/animation/animation_delegate.h"
+#include "ui/base/animation/slide_animation.h"
class Browser;
class Panel;
class NativePanelTestingWin;
class PanelBrowserFrameView;
-namespace ui {
-class SlideAnimation;
-}
+
+class PanelSlideAnimation : public ui::SlideAnimation {
+ public:
+ PanelSlideAnimation(ui::AnimationDelegate* target,
+ bool for_minimize,
+ double animation_stop_to_show_titlebar)
+ : ui::SlideAnimation(target),
+ for_minimize_(for_minimize),
+ animation_stop_to_show_titlebar_(animation_stop_to_show_titlebar) { }
+ virtual ~PanelSlideAnimation() { }
+ virtual double GetCurrentValue() const OVERRIDE;
+
+ private:
+ bool for_minimize_;
+ double animation_stop_to_show_titlebar_;
+};
// A browser view that implements Panel specific behavior.
class PanelBrowserView : public BrowserView,
@@ -148,7 +162,7 @@ class PanelBrowserView : public BrowserView,
MouseDraggingState mouse_dragging_state_;
// Used to animate the bounds change.
- scoped_ptr<ui::SlideAnimation> bounds_animator_;
+ scoped_ptr<PanelSlideAnimation> bounds_animator_;
gfx::Rect animation_start_bounds_;
// Is the panel in highlighted state to draw people's attention?
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698