From f33bc9e999c94c006b3304cc67d901cdbc37abec Mon Sep 17 00:00:00 2001 From: "rohitrao@chromium.org" Date: Fri, 8 Oct 2010 19:40:37 +0000 Subject: [Mac] Handle TabReplacedAt() notifications in TabStripModelObserverBridge. Adds a new |-tabReplacedWithContents:previousContents:atIndex:| method and calls that if it exists. TabStripController now listens for this notification and replaces the corresponding entry in its |tabContentsArray_|. BUG=56385 TEST=No visible changes. This notification is not sent on Mac (yet). Review URL: http://codereview.chromium.org/3606020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62000 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/browser_window_controller.mm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser/cocoa/browser_window_controller.mm') diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm index 9300d7d..f2fc066d 100644 --- a/chrome/browser/cocoa/browser_window_controller.mm +++ b/chrome/browser/cocoa/browser_window_controller.mm @@ -1371,6 +1371,9 @@ [infoBarContainerController_ changeTabContents:contents]; } +- (void)onReplaceTabWithContents:(TabContents*)contents { +} + - (void)onSelectedTabChange:(TabStripModelObserver::TabChangeType)change { // Update titles if this is the currently selected tab and if it isn't just // the loading state which changed. -- cgit v1.1