diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-04 18:35:35 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-04 18:35:35 +0000 |
commit | 88e8e752268e85da7196e5dbd8c622a7b0565e19 (patch) | |
tree | 2c2e58276f73624e037442c322245bdf01797aaf /chrome/browser/cocoa/tab_view_picker_table.h | |
parent | 22a4e5fc5a599598c90b32341edaeb417c7ba3cc (diff) | |
download | chromium_src-88e8e752268e85da7196e5dbd8c622a7b0565e19.zip chromium_src-88e8e752268e85da7196e5dbd8c622a7b0565e19.tar.gz chromium_src-88e8e752268e85da7196e5dbd8c622a7b0565e19.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/cocoa/tab_view_picker_table.h')
-rw-r--r-- | chrome/browser/cocoa/tab_view_picker_table.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 <Cocoa/Cocoa.h> + +// 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 |