| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/cocoa/profiles/avatar_menu_bubble_controller.h" | 5 #import "chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/bundle_locations.h" | 7 #include "base/mac/bundle_locations.h" |
| 8 #include "base/mac/sdk_forward_declarations.h" | 8 #include "base/mac/sdk_forward_declarations.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 @synthesize iconView = iconView_; | 473 @synthesize iconView = iconView_; |
| 474 @synthesize activeView = activeView_; | 474 @synthesize activeView = activeView_; |
| 475 @synthesize nameField = nameField_; | 475 @synthesize nameField = nameField_; |
| 476 @synthesize emailField = emailField_; | 476 @synthesize emailField = emailField_; |
| 477 @synthesize editButton = editButton_; | 477 @synthesize editButton = editButton_; |
| 478 | 478 |
| 479 - (id)initWithMenuIndex:(size_t)menuIndex | 479 - (id)initWithMenuIndex:(size_t)menuIndex |
| 480 menuController:(AvatarMenuBubbleController*)controller { | 480 menuController:(AvatarMenuBubbleController*)controller { |
| 481 if ((self = [super initWithNibName:@"AvatarMenuItem" | 481 if ((self = [super initWithNibName:@"AvatarMenuItem" |
| 482 bundle:base::mac::FrameworkBundle()])) { | 482 bundle:base::mac::FrameworkBundle()])) { |
| 483 propertyReleaser_.Init(self, [AvatarMenuItemController class]); |
| 483 menuIndex_ = menuIndex; | 484 menuIndex_ = menuIndex; |
| 484 controller_ = controller; | 485 controller_ = controller; |
| 485 [self loadView]; | 486 [self loadView]; |
| 486 [nameField_ setAutoresizingMask:NSViewNotSizable]; | 487 [nameField_ setAutoresizingMask:NSViewNotSizable]; |
| 487 [[nameField_ cell] setLineBreakMode:NSLineBreakByTruncatingTail]; | 488 [[nameField_ cell] setLineBreakMode:NSLineBreakByTruncatingTail]; |
| 488 [emailField_ setAutoresizingMask:NSViewNotSizable]; | 489 [emailField_ setAutoresizingMask:NSViewNotSizable]; |
| 489 [[emailField_ cell] setLineBreakMode:NSLineBreakByTruncatingTail]; | 490 [[emailField_ cell] setLineBreakMode:NSLineBreakByTruncatingTail]; |
| 490 } | 491 } |
| 491 return self; | 492 return self; |
| 492 } | 493 } |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 - (BOOL)accessibilityIsIgnored { | 713 - (BOOL)accessibilityIsIgnored { |
| 713 return YES; | 714 return YES; |
| 714 } | 715 } |
| 715 @end | 716 @end |
| 716 | 717 |
| 717 @implementation AccessibilityIgnoredTextFieldCell | 718 @implementation AccessibilityIgnoredTextFieldCell |
| 718 - (BOOL)accessibilityIsIgnored { | 719 - (BOOL)accessibilityIsIgnored { |
| 719 return YES; | 720 return YES; |
| 720 } | 721 } |
| 721 @end | 722 @end |
| OLD | NEW |