summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/base_bubble_controller.mm
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 00:16:07 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 00:16:07 +0000
commit38edb9ea6c406b8745935c82ebd57fa9825be6b2 (patch)
tree223afc9e4ac9f4d1afef86f58b06538126cffc9e /chrome/browser/ui/cocoa/base_bubble_controller.mm
parent0de0ad2eaeb50a0cdc37c5ca1c6106c0731e8e54 (diff)
downloadchromium_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/base_bubble_controller.mm')
-rw-r--r--chrome/browser/ui/cocoa/base_bubble_controller.mm9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/base_bubble_controller.mm b/chrome/browser/ui/cocoa/base_bubble_controller.mm
index 808ec8e..69160d7 100644
--- a/chrome/browser/ui/cocoa/base_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/base_bubble_controller.mm
@@ -133,6 +133,15 @@ class Bridge : public NotificationObserver {
[self updateOriginFromAnchor];
}
+- (NSBox*)separatorWithFrame:(NSRect)frame {
+ frame.size.height = 1.0;
+ scoped_nsobject<NSBox> spacer([[NSBox alloc] initWithFrame:frame]);
+ [spacer setBoxType:NSBoxSeparator];
+ [spacer setBorderType:NSLineBorder];
+ [spacer setAlphaValue:0.2];
+ return [spacer.release() autorelease];
+}
+
- (void)parentWindowWillClose:(NSNotification*)notification {
[self close];
}