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

Unified Diff: chrome/browser/ui/views/infobars/infobar.h

Issue 6788014: Fix DCHECK() in infobar animation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months 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 | « chrome/browser/ui/views/infobars/extension_infobar.cc ('k') | chrome/browser/ui/views/infobars/infobar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/infobars/infobar.h
===================================================================
--- chrome/browser/ui/views/infobars/infobar.h (revision 80169)
+++ chrome/browser/ui/views/infobars/infobar.h (working copy)
@@ -45,9 +45,15 @@
ui::SlideAnimation* animation() { return animation_.get(); }
const ui::SlideAnimation* animation() const { return animation_.get(); }
- // Subclasses may optionally override this.
- virtual void PlatformSpecificHide(bool animate);
+ // Calls PlatformSpecificRecalculateHeight(), then informs our container our
+ // height has changed.
+ void RecalculateHeight();
+ // Platforms may optionally override these if they need to do work during
+ // processing of the given calls.
+ virtual void PlatformSpecificHide(bool animate) {}
+ virtual void PlatformSpecificRecalculateHeight() {}
+
private:
// ui::AnimationDelegate:
virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
« no previous file with comments | « chrome/browser/ui/views/infobars/extension_infobar.cc ('k') | chrome/browser/ui/views/infobars/infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698