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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 6250141: Sidebar mini tabs UI (views version).... Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/ui/cocoa/browser_window_controller.h ('k') | chrome/browser/ui/cocoa/sidebar_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/browser_window_controller.mm (revision 74134)
+++ chrome/browser/ui/cocoa/browser_window_controller.mm (working copy)
@@ -484,8 +484,8 @@
[devToolsController_ ensureContentsVisible];
}
-- (void)updateSidebarForContents:(TabContents*)contents {
- [sidebarController_ updateSidebarForTabContents:contents];
+- (void)updateSidebarForTab:(TabContentsWrapper*)tab {
+ [sidebarController_ updateSidebarForTab:tab];
[sidebarController_ ensureContentsVisible];
}
@@ -1421,14 +1421,16 @@
}
// TabStripControllerDelegate protocol.
-- (void)onSelectTabWithContents:(TabContents*)contents {
+- (void)onSelectTab:(TabContentsWrapper*)tab {
// Update various elements that are interested in knowing the current
// TabContents.
+ TabContents* contents = tab ? tab->tab_contents() : NULL;
+
// Update all the UI bits.
windowShim_->UpdateTitleBar();
- [sidebarController_ updateSidebarForTabContents:contents];
+ [sidebarController_ updateSidebarForTab:tab];
[devToolsController_ updateDevToolsForTabContents:contents
withProfile:browser_->profile()];
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.h ('k') | chrome/browser/ui/cocoa/sidebar_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698