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

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

Issue 7006010: Change InfoBar-related notifications to be sourced from a TabContentsWrapper, not a TabContents. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/cocoa/infobars/infobar_container_controller.h
===================================================================
--- chrome/browser/ui/cocoa/infobars/infobar_container_controller.h (revision 87366)
+++ chrome/browser/ui/cocoa/infobars/infobar_container_controller.h (working copy)
@@ -14,6 +14,7 @@
#include "content/common/notification_registrar.h"
@class InfoBarController;
+class InfoBar;
class InfoBarDelegate;
class InfoBarNotificationObserver;
class TabContentsWrapper;
@@ -109,18 +110,18 @@
@interface InfoBarContainerController (ForTheObserverAndTesting)
-// Adds an infobar view for the given delegate.
-- (void)addInfoBar:(InfoBarDelegate*)delegate animate:(BOOL)animate;
+// Adds the given infobar. Takes ownership of |infobar|.
+- (void)addInfoBar:(InfoBar*)infobar animate:(BOOL)animate;
// Closes all the infobar views for a given delegate, either immediately or by
// starting a close animation.
- (void)closeInfoBarsForDelegate:(InfoBarDelegate*)delegate
animate:(BOOL)animate;
-// Replaces all info bars for the delegate with a new info bar.
+// Replaces all info bars for |old_delegate| with |new_infobar|.
// This simply calls closeInfoBarsForDelegate: and then addInfoBar:.
- (void)replaceInfoBarsForDelegate:(InfoBarDelegate*)old_delegate
- with:(InfoBarDelegate*)new_delegate;
+ with:(InfoBar*)new_infobar;
// Positions the infobar views in the container view and notifies
// |browser_controller_| that it needs to resize the container view.

Powered by Google App Engine
This is Rietveld 408576698