From 88e8e752268e85da7196e5dbd8c622a7b0565e19 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Fri, 4 Jun 2010 18:35:35 +0000 Subject: 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. Review URL: http://codereview.chromium.org/2534001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48956 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/tab_view_picker_table.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 chrome/browser/cocoa/tab_view_picker_table.h (limited to 'chrome/browser/cocoa/tab_view_picker_table.h') diff --git a/chrome/browser/cocoa/tab_view_picker_table.h b/chrome/browser/cocoa/tab_view_picker_table.h new file mode 100644 index 0000000..4255fec4 --- /dev/null +++ b/chrome/browser/cocoa/tab_view_picker_table.h @@ -0,0 +1,20 @@ +// 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. + +#import + +// TabViewPickerTable is an NSTableView that can be used to switch between the +// NSTabViewItems of an NSTabView. To use this, just create a +// TabViewPickerTable in Interface Builder and connect the |tabView_| outlet +// to an NSTabView. Now the table is automatically populated with the tab labels +// of the tab view, clicking the table updates the tab view, and switching +// tab view items updates the selection of the table. +@interface TabViewPickerTable : NSTableView { + @public + IBOutlet NSTabView* tabView_; // Visible for testing. + + @private + id oldTabViewDelegate_; +} +@end -- cgit v1.1