summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/tab_strip_view.mm
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 01:51:32 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 01:51:32 +0000
commit882b2736343f1d38fd3f712da3bcb132e34463db (patch)
tree6fe46ec7fa50b4826b02f9c93483f023f176d779 /chrome/browser/cocoa/tab_strip_view.mm
parentd13950ec676bc8aa9ea493e89a4cd1aee4a41913 (diff)
downloadchromium_src-882b2736343f1d38fd3f712da3bcb132e34463db.zip
chromium_src-882b2736343f1d38fd3f712da3bcb132e34463db.tar.gz
chromium_src-882b2736343f1d38fd3f712da3bcb132e34463db.tar.bz2
Mac: remove hacky way the New Tab button is obtained from the nib.
I added a member variable and an accessor/mutator ... and hooked up that up in the nib. Changes to BrowserWindow.xib: hook up the New Tab button to |newTabButton| in TabBar. Unit test fixed. Previously committed at r33758, reverted at r33761. BUG=none TEST=Make sure it builds, runs, and that the New Tab button still works. Review URL: http://codereview.chromium.org/460058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_strip_view.mm')
-rw-r--r--chrome/browser/cocoa/tab_strip_view.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/tab_strip_view.mm b/chrome/browser/cocoa/tab_strip_view.mm
index 398e6a3..f2638dc 100644
--- a/chrome/browser/cocoa/tab_strip_view.mm
+++ b/chrome/browser/cocoa/tab_strip_view.mm
@@ -8,6 +8,8 @@
@implementation TabStripView
+@synthesize newTabButton = newTabButton_;
+
- (id)initWithFrame:(NSRect)frame {
self = [super initWithFrame:frame];
if (self) {