diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 16:26:17 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 16:26:17 +0000 |
commit | 0de1fb9715db68c0a8b6a8b19de1f59ea445bb79 (patch) | |
tree | d30a4a09df249860108b7636c45e6185b4832f13 /chrome/browser/cocoa/infobar_container_controller.h | |
parent | 849c665ada183ae516869c4e71cb60e8bb6310f8 (diff) | |
download | chromium_src-0de1fb9715db68c0a8b6a8b19de1f59ea445bb79.zip chromium_src-0de1fb9715db68c0a8b6a8b19de1f59ea445bb79.tar.gz chromium_src-0de1fb9715db68c0a8b6a8b19de1f59ea445bb79.tar.bz2 |
Add support for replace infobar. The lack of this was a top mac crasher.
BUG=19728
TEST=install two themes without dismissing info bar. then dismiss the info bar. It shouldn't crash.
Review URL: http://codereview.chromium.org/174349
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/infobar_container_controller.h')
-rw-r--r-- | chrome/browser/cocoa/infobar_container_controller.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/infobar_container_controller.h b/chrome/browser/cocoa/infobar_container_controller.h index cfd7157..22077ac 100644 --- a/chrome/browser/cocoa/infobar_container_controller.h +++ b/chrome/browser/cocoa/infobar_container_controller.h @@ -64,6 +64,11 @@ class TabStripModelObserverBridge; // call positionInfoBarsAndRedraw after calling this method. - (void)removeInfoBarsForDelegate:(InfoBarDelegate*)delegate; +// Replaces all info bars for the delegate with a new info bar. +// This simply calls removeInfoBarsForDelegate: and then addInfoBar:. +- (void)replaceInfoBarsForDelegate:(InfoBarDelegate*)old_delegate + with:(InfoBarDelegate*)new_delegate; + // Positions the infobar views in the container view and notifies // |browser_controller_| that it needs to resize the container view. - (void)positionInfoBarsAndRedraw; |