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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 return self; | 85 return self; |
86 } | 86 } |
87 | 87 |
88 - (IBAction)newProfile:(id)sender { | 88 - (IBAction)newProfile:(id)sender { |
89 menu_->AddNewProfile(ProfileMetrics::ADD_NEW_USER_ICON); | 89 menu_->AddNewProfile(ProfileMetrics::ADD_NEW_USER_ICON); |
90 } | 90 } |
91 | 91 |
92 - (IBAction)switchToProfile:(id)sender { | 92 - (IBAction)switchToProfile:(id)sender { |
93 // Check the event flags to see if a new window should be crated. | 93 // Check the event flags to see if a new window should be crated. |
94 bool always_create = ui::WindowOpenDispositionFromNSEvent( | 94 bool always_create = |
95 [NSApp currentEvent]) == NEW_WINDOW; | 95 ui::WindowOpenDispositionFromNSEvent([NSApp currentEvent]) == |
| 96 WindowOpenDisposition::NEW_WINDOW; |
96 menu_->SwitchToProfile([sender menuIndex], always_create, | 97 menu_->SwitchToProfile([sender menuIndex], always_create, |
97 ProfileMetrics::SWITCH_PROFILE_ICON); | 98 ProfileMetrics::SWITCH_PROFILE_ICON); |
98 } | 99 } |
99 | 100 |
100 - (IBAction)editProfile:(id)sender { | 101 - (IBAction)editProfile:(id)sender { |
101 menu_->EditProfile([sender menuIndex]); | 102 menu_->EditProfile([sender menuIndex]); |
102 } | 103 } |
103 | 104 |
104 - (IBAction)switchProfile:(id)sender { | 105 - (IBAction)switchProfile:(id)sender { |
105 expanded_ = YES; | 106 expanded_ = YES; |
(...skipping 606 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 |