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

Unified Diff: chrome/browser/cocoa/tab_strip_model_observer_bridge.mm

Issue 1119005: [Mac] Re-enable pinned tabs; add support for mini-tabs and phantom tabs. (Closed)
Patch Set: Nits Created 10 years, 9 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
« no previous file with comments | « chrome/browser/cocoa/tab_strip_model_observer_bridge.h ('k') | chrome/browser/defaults.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_strip_model_observer_bridge.mm
diff --git a/chrome/browser/cocoa/tab_strip_model_observer_bridge.mm b/chrome/browser/cocoa/tab_strip_model_observer_bridge.mm
index 87051c0ccb954ba36f1b4df24ede0aaf20483ca8..e5280dcc853b94bddc75d97ff38776086d3a5a94 100644
--- a/chrome/browser/cocoa/tab_strip_model_observer_bridge.mm
+++ b/chrome/browser/cocoa/tab_strip_model_observer_bridge.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -63,12 +63,10 @@ void TabStripModelObserverBridge::TabMoved(TabContents* contents,
int from_index,
int to_index) {
if ([controller_ respondsToSelector:
- @selector(tabMovedWithContents:fromIndex:toIndex:pinnedStateChanged:)]) {
- // TODO: clean this up, need to remove pinnedStateChanged param.
+ @selector(tabMovedWithContents:fromIndex:toIndex:)]) {
[controller_ tabMovedWithContents:contents
fromIndex:from_index
- toIndex:to_index
- pinnedStateChanged:NO];
+ toIndex:to_index];
}
}
@@ -83,12 +81,17 @@ void TabStripModelObserverBridge::TabChangedAt(TabContents* contents,
}
}
-void TabStripModelObserverBridge::TabPinnedStateChanged(TabContents* contents,
- int index) {
+void TabStripModelObserverBridge::TabReplacedAt(TabContents* old_contents,
+ TabContents* new_contents,
+ int index) {
+ TabChangedAt(new_contents, index, ALL);
+}
+
+void TabStripModelObserverBridge::TabMiniStateChanged(TabContents* contents,
+ int index) {
if ([controller_ respondsToSelector:
- @selector(tabPinnedStateChangedWithContents:atIndex:)]) {
- [controller_ tabPinnedStateChangedWithContents:contents
- atIndex:index];
+ @selector(tabMiniStateChangedWithContents:atIndex:)]) {
+ [controller_ tabMiniStateChangedWithContents:contents atIndex:index];
}
}
« no previous file with comments | « chrome/browser/cocoa/tab_strip_model_observer_bridge.h ('k') | chrome/browser/defaults.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698