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

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 87541)
+++ 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,19 +110,16 @@
@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
+ deleteImmediately:(BOOL)delete_now;
rohitrao (ping after 24h) 2011/06/02 18:58:25 thisKindOfCase for obj-c arguments. (CamelCase?)
// 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.
-// This simply calls closeInfoBarsForDelegate: 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