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

Unified Diff: chrome/browser/ui/cocoa/browser_window_cocoa.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_cocoa.h ('k') | chrome/browser/ui/cocoa/browser_window_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_cocoa.mm
===================================================================
--- chrome/browser/ui/cocoa/browser_window_cocoa.mm (revision 74134)
+++ chrome/browser/ui/cocoa/browser_window_cocoa.mm (working copy)
@@ -613,8 +613,7 @@
[controller_ updateBookmarkBarVisibilityWithAnimation:YES];
break;
case NotificationType::SIDEBAR_CHANGED:
- UpdateSidebarForContents(
- Details<SidebarContainer>(details)->tab_contents());
+ UpdateSidebar(Details<SidebarChangedDetails>(details).ptr());
break;
default:
NOTREACHED(); // we don't ask for anything else!
@@ -633,8 +632,8 @@
return [controller_ window];
}
-void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) {
- if (tab_contents == browser_->GetSelectedTabContents()) {
- [controller_ updateSidebarForContents:tab_contents];
+void BrowserWindowCocoa::UpdateSidebar(SidebarChangedDetails* details) {
+ if (details->source->tab() == browser_->GetSelectedTabContentsWrapper()) {
+ [controller_ updateSidebarForTab:details->source->tab()];
}
}
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/cocoa/browser_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698