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

Issue 65011: Flatten down to a single toolbar per window, significantly simplifying the ta... (Closed)

Created:
11 years, 8 months ago by pink (ping after 24hrs)
Modified:
9 years, 7 months ago
Reviewers:
TVL
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Flatten down to a single toolbar per window, significantly simplifying the tab strip as it now no longer needs to forward messages for everything. Created a toolbar controller to encapsulate much of the toolbar logic that was in the tab contents controller. Better parameterized the tab strip controller so that it could switch any view, not just the main window's content view, when switching tabs. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13441

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+1115 lines, -907 lines) Patch
M chrome/app/nibs/en.lproj/BrowserWindow.xib View 11 chunks +51 lines, -77 lines 0 comments Download
M chrome/app/nibs/en.lproj/TabContents.xib View 16 chunks +19 lines, -554 lines 0 comments Download
A chrome/app/nibs/en.lproj/Toolbar.xib View 1 chunk +695 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller.mm View 6 chunks +44 lines, -9 lines 0 comments Download
A chrome/browser/cocoa/command_observer_bridge.h View 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/command_observer_bridge.mm View 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_contents_controller.h View 4 chunks +1 line, -35 lines 0 comments Download
M chrome/browser/cocoa/tab_contents_controller.mm View 7 chunks +0 lines, -147 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.h View 2 chunks +6 lines, -21 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.mm View 5 chunks +8 lines, -54 lines 0 comments Download
M chrome/browser/cocoa/tab_window_controller.h View 4 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/tab_window_controller.mm View 4 chunks +20 lines, -7 lines 4 comments Download
A chrome/browser/cocoa/toolbar_controller.h View 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/toolbar_controller.mm View 1 chunk +121 lines, -0 lines 6 comments Download
M chrome/chrome.gyp View 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
pink (ping after 24hrs)
This is stage one. It still leaves the bookmark bar per tab and has some ...
11 years, 8 months ago (2009-04-09 15:29:07 UTC) #1
TVL
lgtm http://codereview.chromium.org/65011/diff/1/9 File chrome/browser/cocoa/tab_window_controller.mm (right): http://codereview.chromium.org/65011/diff/1/9#newcode21 Line 21: NSRect tabFrame = [tabContentArea_ frame]; you could ...
11 years, 8 months ago (2009-04-09 15:53:00 UTC) #2
pink (ping after 24hrs)
11 years, 8 months ago (2009-04-09 16:00:48 UTC) #3
http://codereview.chromium.org/65011/diff/1/9
File chrome/browser/cocoa/tab_window_controller.mm (right):

http://codereview.chromium.org/65011/diff/1/9#newcode21
Line 21: NSRect tabFrame = [tabContentArea_ frame];
On 2009/04/09 15:53:00, TVL wrote:
> you could DCheck the class requirements on tabContentArea_ you mentioned in
the
> header for safety.

do what, though? check that it's not an NSBox? that seems odd.

http://codereview.chromium.org/65011/diff/1/9#newcode56
Line 56: [overlayWindow_ contentView] : [cachedContentView_ superview];
On 2009/04/09 15:53:00, TVL wrote:
> move this outside the loop, it doesn't need loop state to pick.

duh. changed this around at the last minute and missed that.

http://codereview.chromium.org/65011/diff/1/11
File chrome/browser/cocoa/toolbar_controller.mm (right):

http://codereview.chromium.org/65011/diff/1/11#newcode24
Line 24: if ((self = [super initWithNibName:@"Toolbar" bundle:nil])) {
On 2009/04/09 15:53:00, TVL wrote:
> dcheck model and commands like the other classes do?

Done.

http://codereview.chromium.org/65011/diff/1/11#newcode81
Line 81: break;
On 2009/04/09 15:53:00, TVL wrote:
> fix the indents here

Done.

http://codereview.chromium.org/65011/diff/1/11#newcode94
Line 94: [starButton_ setEnabled:commands->IsCommandEnabled(IDC_STAR) ? YES :
NO];
On 2009/04/09 15:53:00, TVL wrote:
> todo(pinkerton) home button

Done.

Powered by Google App Engine
This is Rietveld 408576698