OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "chrome/browser/cocoa/tab_strip_view.h" | 5 #import "chrome/browser/cocoa/tab_strip_view.h" |
6 | 6 |
7 #include "base/mac_util.h" | 7 #include "base/mac_util.h" |
8 #import "chrome/browser/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/cocoa/browser_window_controller.h" |
9 #import "chrome/browser/cocoa/tab_strip_controller.h" | 9 #import "chrome/browser/cocoa/tab_strip_controller.h" |
| 10 #import "chrome/browser/cocoa/view_id_util.h" |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 | 12 |
12 @implementation TabStripView | 13 @implementation TabStripView |
13 | 14 |
14 @synthesize newTabButton = newTabButton_; | 15 @synthesize newTabButton = newTabButton_; |
15 @synthesize dropArrowShown = dropArrowShown_; | 16 @synthesize dropArrowShown = dropArrowShown_; |
16 @synthesize dropArrowPosition = dropArrowPosition_; | 17 @synthesize dropArrowPosition = dropArrowPosition_; |
17 | 18 |
18 - (id)initWithFrame:(NSRect)frame { | 19 - (id)initWithFrame:(NSRect)frame { |
19 self = [super initWithFrame:frame]; | 20 self = [super initWithFrame:frame]; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 return NO; | 185 return NO; |
185 } | 186 } |
186 | 187 |
187 - (id)accessibilityAttributeValue:(NSString*)attribute { | 188 - (id)accessibilityAttributeValue:(NSString*)attribute { |
188 if ([attribute isEqual:NSAccessibilityRoleAttribute]) | 189 if ([attribute isEqual:NSAccessibilityRoleAttribute]) |
189 return NSAccessibilityGroupRole; | 190 return NSAccessibilityGroupRole; |
190 | 191 |
191 return [super accessibilityAttributeValue:attribute]; | 192 return [super accessibilityAttributeValue:attribute]; |
192 } | 193 } |
193 | 194 |
| 195 // Tag is used solely for ViewID. Override to prevent changing of it. |
| 196 - (NSInteger)tag { |
| 197 return view_id_util::ViewIDToTag(VIEW_ID_TAB_STRIP); |
| 198 } |
| 199 |
194 @end | 200 @end |
OLD | NEW |