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

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

Issue 8826002: Panels: Adding 3-step animation on minimize on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing 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
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..ec9f82f1c37c3104716d089df2b4dcd8d6f074ee
--- /dev/null
+++ b/chrome/browser/ui/panels/panel_slide_animation.h
@@ -0,0 +1,37 @@
+// 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/slide_animation.h"
+
+namespace ui {
+class AnimationDelegate;
+}
+class Panel;
+
+class PanelSlideAnimation : public ui::SlideAnimation {
+ public:
+ PanelSlideAnimation(ui::AnimationDelegate* target,
+ Panel* panel,
+ const gfx::Rect& initial_bounds,
+ const gfx::Rect& final_bounds);
+ virtual ~PanelSlideAnimation();
+ virtual double GetCurrentValue() const OVERRIDE;
+
+ // Static because it is reused on Mac to override NSAnimation's calculation.
+ static double ComputeAnimationValue(double progress,
+ bool for_big_minimize,
+ double animation_stop_to_show_titlebar);
+ private:
+ Panel* panel_; // Weak, owns us.
+ bool for_big_minimize_;
+ double animation_stop_to_show_titlebar_;
+
+ DISALLOW_COPY_AND_ASSIGN(PanelSlideAnimation);
+};
+
+#endif // CHROME_BROWSER_UI_PANELS_PANEL_SLIDE_ANIMATION_H_
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.cc ('k') | chrome/browser/ui/panels/panel_slide_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698