diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-30 00:16:07 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-30 00:16:07 +0000 |
commit | 38edb9ea6c406b8745935c82ebd57fa9825be6b2 (patch) | |
tree | 223afc9e4ac9f4d1afef86f58b06538126cffc9e /chrome/browser/ui/cocoa/page_info_bubble_controller.mm | |
parent | 0de0ad2eaeb50a0cdc37c5ca1c6106c0731e8e54 (diff) | |
download | chromium_src-38edb9ea6c406b8745935c82ebd57fa9825be6b2.zip chromium_src-38edb9ea6c406b8745935c82ebd57fa9825be6b2.tar.gz chromium_src-38edb9ea6c406b8745935c82ebd57fa9825be6b2.tar.bz2 |
[Mac] Slightly redesigned avatar menu.
XIB Changes:
* Add email field and change the edit button to a hyperlink button that overlaps the email
* Add ChromeUILocalizer object to translate the edit string
* Change username font to 13pt
* Remove the invisible tracking button (SwitchProfileButtonCell) and make the root view AvatarMenuItemView
BUG=93837,94930
TEST=Visual and no more zombie crashes.
Review URL: http://codereview.chromium.org/8083010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/cocoa/page_info_bubble_controller.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/page_info_bubble_controller.mm | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/chrome/browser/ui/cocoa/page_info_bubble_controller.mm b/chrome/browser/ui/cocoa/page_info_bubble_controller.mm index bdb0389..3ae8aac 100644 --- a/chrome/browser/ui/cocoa/page_info_bubble_controller.mm +++ b/chrome/browser/ui/cocoa/page_info_bubble_controller.mm @@ -453,15 +453,10 @@ void ShowPageInfoBubble(gfx::NativeWindow parent, // next offset. - (CGFloat)addSeparatorToSubviews:(NSMutableArray*)subviews atOffset:(CGFloat)offset { - const CGFloat kSpacerHeight = 1.0; - NSRect frame = NSMakeRect(kFramePadding, offset, - kWindowWidth - 2 * kFramePadding, kSpacerHeight); - scoped_nsobject<NSBox> spacer([[NSBox alloc] initWithFrame:frame]); - [spacer setBoxType:NSBoxSeparator]; - [spacer setBorderType:NSLineBorder]; - [spacer setAlphaValue:0.2]; - [subviews addObject:spacer.get()]; - return kVerticalSpacing + kSpacerHeight; + NSBox* spacer = [self separatorWithFrame:NSMakeRect(kFramePadding, offset, + kWindowWidth - 2 * kFramePadding, 0)]; + [subviews addObject:spacer]; + return kVerticalSpacing + NSHeight([spacer frame]); } // Takes in the bubble's height and the parent window, which should be a |