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

Unified Diff: chrome/browser/cocoa/infobar_container_controller.h

Issue 174349: Add support for replace infobar. The lack of this was a top mac crasher.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 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/cocoa/infobar_container_controller.h
===================================================================
--- chrome/browser/cocoa/infobar_container_controller.h (revision 24114)
+++ chrome/browser/cocoa/infobar_container_controller.h (working copy)
@@ -64,6 +64,11 @@
// 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;

Powered by Google App Engine
This is Rietveld 408576698