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

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

Issue 2873029: Fix a crasher with the translate infobar.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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/views/infobars/infobars.h
===================================================================
--- chrome/browser/views/infobars/infobars.h (revision 51005)
+++ chrome/browser/views/infobars/infobars.h (working copy)
@@ -51,21 +51,6 @@
// InfoBar is added to the view hierarchy.
void set_container(InfoBarContainer* container) { container_ = container; }
- // Starts animating the InfoBar open.
- void AnimateOpen();
-
- // Opens the InfoBar immediately.
- void Open();
-
- // Starts animating the InfoBar closed. It will not be closed until the
- // animation has completed, when |Close| will be called.
- void AnimateClose();
-
- // Closes the InfoBar immediately and removes it from its container. Notifies
- // the delegate that it has closed. The InfoBar is deleted after this function
- // is called.
- void Close();
-
// The target height of the InfoBar, regardless of what its current height
// is (due to animation).
static const double kDefaultTargetHeight;
@@ -118,6 +103,23 @@
virtual void AnimationEnded(const Animation* animation);
private:
+ friend class InfoBarContainer;
+
+ // Starts animating the InfoBar open.
+ void AnimateOpen();
+
+ // Opens the InfoBar immediately.
+ void Open();
+
+ // Starts animating the InfoBar closed. It will not be closed until the
+ // animation has completed, when |Close| will be called.
+ void AnimateClose();
+
+ // Closes the InfoBar immediately and removes it from its container. Notifies
+ // the delegate that it has closed. The InfoBar is deleted after this function
+ // is called.
+ void Close();
+
// Called when an InfoBar is added or removed from a view hierarchy to do
// setup and shutdown.
void InfoBarAdded();
« no previous file with comments | « chrome/browser/views/infobars/before_translate_infobar.cc ('k') | chrome/browser/views/infobars/infobars.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698