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

Side by Side Diff: chrome/browser/cocoa/tab_strip_view.mm

Issue 2973004: [Mac]Implement ViewID support. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Turns out that, it's not a good solution. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/cocoa/tab_strip_controller.mm ('k') | chrome/browser/cocoa/tab_view.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_strip_controller.mm ('k') | chrome/browser/cocoa/tab_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698