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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm

Issue 1162393003: Replace info_bubble::BubbleArrowLocation with views::BubbleBorder::Arrow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile in test Created 5 years, 6 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
OLDNEW
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 anchoredAt:point])) { 125 anchoredAt:point])) {
126 menu_.reset(menu); 126 menu_.reset(menu);
127 127
128 [window accessibilitySetOverrideValue: 128 [window accessibilitySetOverrideValue:
129 l10n_util::GetNSString(IDS_PROFILES_BUBBLE_ACCESSIBLE_NAME) 129 l10n_util::GetNSString(IDS_PROFILES_BUBBLE_ACCESSIBLE_NAME)
130 forAttribute:NSAccessibilityTitleAttribute]; 130 forAttribute:NSAccessibilityTitleAttribute];
131 [window accessibilitySetOverrideValue: 131 [window accessibilitySetOverrideValue:
132 l10n_util::GetNSString(IDS_PROFILES_BUBBLE_ACCESSIBLE_DESCRIPTION) 132 l10n_util::GetNSString(IDS_PROFILES_BUBBLE_ACCESSIBLE_DESCRIPTION)
133 forAttribute:NSAccessibilityHelpAttribute]; 133 forAttribute:NSAccessibilityHelpAttribute];
134 134
135 [[self bubble] setArrowLocation:info_bubble::kTopRight]; 135 [[self bubble] setArrowLocation:views::BubbleBorder::TOP_RIGHT];
136 [self performLayout]; 136 [self performLayout];
137 } 137 }
138 return self; 138 return self;
139 } 139 }
140 140
141 - (AvatarMenuItemController*)initAvatarItem:(int)itemIndex 141 - (AvatarMenuItemController*)initAvatarItem:(int)itemIndex
142 updateWidthAdjust:(CGFloat*)widthAdjust 142 updateWidthAdjust:(CGFloat*)widthAdjust
143 setYOffset:(CGFloat)yOffset { 143 setYOffset:(CGFloat)yOffset {
144 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 144 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
145 const AvatarMenu::Item& item = menu_->GetItemAt(itemIndex); 145 const AvatarMenu::Item& item = menu_->GetItemAt(itemIndex);
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 - (BOOL)accessibilityIsIgnored { 713 - (BOOL)accessibilityIsIgnored {
714 return YES; 714 return YES;
715 } 715 }
716 @end 716 @end
717 717
718 @implementation AccessibilityIgnoredTextFieldCell 718 @implementation AccessibilityIgnoredTextFieldCell
719 - (BOOL)accessibilityIsIgnored { 719 - (BOOL)accessibilityIsIgnored {
720 return YES; 720 return YES;
721 } 721 }
722 @end 722 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/info_bubble_view.mm ('k') | chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698