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

Issue 2534001: Mac: Change content settings from showing tabs on top to showing a list on the side. (Closed)

Created:
10 years, 6 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Mac: Change content settings from showing tabs on top to showing a list on the side. xib changes: * Set NSTabView's style to "Tabless" (but kept panes in an NSTabView, since it's a convenient method to handle multiple overlapping views in IB) * Put NSTabView into a split view, put a table view in the other split pane of the split view, gave it class TabViewSwitcherTable * changed autosize flags of all child views of the tab view items * Made the NSTabView the tabView_ of the table view BUG=45546 TEST=Content settings window should still work. If it's opened through an omnibox bubble, the right section should still be autoselected. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48956

Patch Set 1 #

Patch Set 2 : unittest scaffolding #

Patch Set 3 : Real (failing) tests #

Patch Set 4 : note: nstableview only functions if it has at least one column #

Patch Set 5 : test actually passes #

Patch Set 6 : '' #

Total comments: 40

Patch Set 7 : commenst #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1715 lines, -1218 lines) Patch
M chrome/app/nibs/ContentSettings.xib View 39 chunks +1470 lines, -1217 lines 0 comments Download
M chrome/browser/cocoa/content_settings_dialog_controller.mm View 1 chunk +8 lines, -1 line 0 comments Download
A chrome/browser/cocoa/tab_view_picker_table.h View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/tab_view_picker_table.mm View 1 2 3 4 5 6 1 chunk +98 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/tab_view_picker_table_unittest.mm View 2 3 4 5 6 1 chunk +116 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Nico
10 years, 6 months ago (2010-06-03 22:14:21 UTC) #1
vtl
Can I get a screenshot?
10 years, 6 months ago (2010-06-03 22:15:49 UTC) #2
Nico
On 2010/06/03 22:15:49, vtl wrote: > Can I get a screenshot? http://imgur.com/yMfQn&4nPMS (spacing obviously subject ...
10 years, 6 months ago (2010-06-03 22:24:32 UTC) #3
vtl
http://codereview.chromium.org/2534001/diff/11001/12003 File chrome/browser/cocoa/tab_view_picker_table.h (right): http://codereview.chromium.org/2534001/diff/11001/12003#newcode9 chrome/browser/cocoa/tab_view_picker_table.h:9: // TabViewPickerTable in interface builder and connect the |tabView_| ...
10 years, 6 months ago (2010-06-03 22:26:41 UTC) #4
Robert Sesek
http://codereview.chromium.org/2534001/diff/11001/12002 File chrome/browser/cocoa/content_settings_dialog_controller.mm (right): http://codereview.chromium.org/2534001/diff/11001/12002#newcode57 chrome/browser/cocoa/content_settings_dialog_controller.mm:57: // autoupdated in IB. However, in chrome, the subviews ...
10 years, 6 months ago (2010-06-03 22:33:19 UTC) #5
viettrungluu
Man, that vtl guy is a terrible reviewer. On 2010/06/03 22:33:19, rsesek wrote: > http://codereview.chromium.org/2534001/diff/11001/12002 ...
10 years, 6 months ago (2010-06-03 23:08:03 UTC) #6
Nico
Thanks, Gentlemen. http://codereview.chromium.org/2534001/diff/11001/12003 File chrome/browser/cocoa/tab_view_picker_table.h (right): http://codereview.chromium.org/2534001/diff/11001/12003#newcode8 chrome/browser/cocoa/tab_view_picker_table.h:8: // NSTabViewItems of an NSTabView. To use ...
10 years, 6 months ago (2010-06-04 17:46:26 UTC) #7
viettrungluu
On 2010/06/04 17:46:26, Nico wrote: > Thanks, Gentlemen. s/men/man/. (I assume you're referring to rsesek, ...
10 years, 6 months ago (2010-06-04 18:16:30 UTC) #8
Robert Sesek
10 years, 6 months ago (2010-06-04 18:34:49 UTC) #9
LGTM

http://codereview.chromium.org/2534001/diff/11001/12003
File chrome/browser/cocoa/tab_view_picker_table.h (right):

http://codereview.chromium.org/2534001/diff/11001/12003#newcode15
chrome/browser/cocoa/tab_view_picker_table.h:15: IBOutlet NSTabView* tabView_; 
// Visible for testing.
On 2010/06/04 17:46:26, Nico wrote:
> On 2010/06/03 22:33:20, rsesek wrote:
> > I don't think this should be part of the public interface. Create a
> UnitTesting
> > category and add an accessor.
> 
> But I need to set it, not access it. And the setter needs to be called before
> awakeFromNib is called. Providing a setter function seems worse, given these
> circumstances

Fair enough.

Powered by Google App Engine
This is Rietveld 408576698