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

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
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 PlatformSpecificOnSizeChanged(), then informs our container our size
+ // has changed.
+ void OnSizeChanged();
Sheridan Rawlins 2011/04/01 18:41:48 private?
Peter Kasting 2011/04/01 19:07:15 No, because InfoBarView::SetTargetHeight() calls i
+ // Platforms may optionally override these if they need to do work during
+ // processing of the given calls.
+ virtual void PlatformSpecificHide(bool animate) {}
+ virtual void PlatformSpecificOnSizeChanged() {}
Sheridan Rawlins 2011/04/01 18:41:48 Move implementations to implementation file for th
Peter Kasting 2011/04/01 19:07:15 That's not a style rule I can find. Virtual funct
Sheridan Rawlins 2011/04/01 20:36:56 Thanks, sorry - I had asked a peer who thought all
+
private:
// ui::AnimationDelegate:
virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698