| 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/profile_chooser_controller.h" | 5 #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h" |
| 6 | 6 |
| 7 #import <Carbon/Carbon.h> // kVK_Return. | 7 #import <Carbon/Carbon.h> // kVK_Return. |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| (...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1360 viewMode_ = profiles::BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT; | 1360 viewMode_ = profiles::BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT; |
| 1361 } | 1361 } |
| 1362 | 1362 |
| 1363 [window accessibilitySetOverrideValue: | 1363 [window accessibilitySetOverrideValue: |
| 1364 l10n_util::GetNSString(IDS_PROFILES_NEW_AVATAR_MENU_ACCESSIBLE_NAME) | 1364 l10n_util::GetNSString(IDS_PROFILES_NEW_AVATAR_MENU_ACCESSIBLE_NAME) |
| 1365 forAttribute:NSAccessibilityTitleAttribute]; | 1365 forAttribute:NSAccessibilityTitleAttribute]; |
| 1366 [window accessibilitySetOverrideValue: | 1366 [window accessibilitySetOverrideValue: |
| 1367 l10n_util::GetNSString(IDS_PROFILES_NEW_AVATAR_MENU_ACCESSIBLE_NAME) | 1367 l10n_util::GetNSString(IDS_PROFILES_NEW_AVATAR_MENU_ACCESSIBLE_NAME) |
| 1368 forAttribute:NSAccessibilityHelpAttribute]; | 1368 forAttribute:NSAccessibilityHelpAttribute]; |
| 1369 | 1369 |
| 1370 [[self bubble] setAlignment:info_bubble::kAlignRightEdgeToAnchorEdge]; | 1370 [[self bubble] setAlignment:info_bubble::kAlignTrailingEdgeToAnchorEdge]; |
| 1371 [[self bubble] setArrowLocation:info_bubble::kNoArrow]; | 1371 [[self bubble] setArrowLocation:info_bubble::kNoArrow]; |
| 1372 [[self bubble] setBackgroundColor:GetDialogBackgroundColor()]; | 1372 [[self bubble] setBackgroundColor:GetDialogBackgroundColor()]; |
| 1373 [self initMenuContentsWithView:viewMode_]; | 1373 [self initMenuContentsWithView:viewMode_]; |
| 1374 } | 1374 } |
| 1375 | 1375 |
| 1376 return self; | 1376 return self; |
| 1377 } | 1377 } |
| 1378 | 1378 |
| 1379 - (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay { | 1379 - (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay { |
| 1380 if (browser_->profile()->IsSupervised() && | 1380 if (browser_->profile()->IsSupervised() && |
| (...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2932 } | 2932 } |
| 2933 | 2933 |
| 2934 - (bool)shouldShowGoIncognito { | 2934 - (bool)shouldShowGoIncognito { |
| 2935 bool incognitoAvailable = | 2935 bool incognitoAvailable = |
| 2936 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != | 2936 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != |
| 2937 IncognitoModePrefs::DISABLED; | 2937 IncognitoModePrefs::DISABLED; |
| 2938 return incognitoAvailable && !browser_->profile()->IsGuestSession(); | 2938 return incognitoAvailable && !browser_->profile()->IsGuestSession(); |
| 2939 } | 2939 } |
| 2940 | 2940 |
| 2941 @end | 2941 @end |
| OLD | NEW |