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

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

Issue 8879005: Fix bug where panels sometimes don't align on bottom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_browser_window_gtk.h
diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.h b/chrome/browser/ui/panels/panel_browser_window_gtk.h
index 88bc75abd91017893309c74b5f26a4881a81df0a..e1334fe8c13bd5fd53c3237e152f9374f07b4ee1 100644
--- a/chrome/browser/ui/panels/panel_browser_window_gtk.h
+++ b/chrome/browser/ui/panels/panel_browser_window_gtk.h
@@ -191,6 +191,12 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk,
scoped_ptr<ui::SlideAnimation> bounds_animator_;
gfx::Rect animation_start_bounds_;
+ // This records the bounds set on the last animation progress notification.
+ // We need this for the case where a new bounds animation starts before the
+ // current one completes. In this case, we want to start the new animation
+ // from where the last one left.
+ gfx::Rect last_animation_progressed_bounds_;
+
DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);
};

Powered by Google App Engine
This is Rietveld 408576698