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

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

Issue 2197253002: [Mac][MD User Menu] UI Tweaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NSHeight + rebased Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_base_controller.h" 5 #import "chrome/browser/ui/cocoa/profiles/avatar_base_controller.h"
6 6
7 #include "base/mac/foundation_util.h" 7 #include "base/mac/foundation_util.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 10 matching lines...) Expand all
21 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 21 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
22 #import "chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h" 22 #import "chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h"
23 #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h" 23 #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h"
24 #include "components/signin/core/common/profile_management_switches.h" 24 #include "components/signin/core/common/profile_management_switches.h"
25 #include "ui/base/cocoa/cocoa_base_utils.h" 25 #include "ui/base/cocoa/cocoa_base_utils.h"
26 26
27 // Space between the avatar icon and the avatar menu bubble. 27 // Space between the avatar icon and the avatar menu bubble.
28 const CGFloat kMenuYOffsetAdjust = 1.0; 28 const CGFloat kMenuYOffsetAdjust = 1.0;
29 // Offset needed to align the edge of the avatar bubble with the edge of the 29 // Offset needed to align the edge of the avatar bubble with the edge of the
30 // avatar button. 30 // avatar button.
31 const CGFloat kMenuXOffsetAdjust = 2.0; 31 const CGFloat kMenuXOffsetAdjust = 1.0;
32 32
33 @interface AvatarBaseController (Private) 33 @interface AvatarBaseController (Private)
34 // Shows the avatar bubble. 34 // Shows the avatar bubble.
35 - (IBAction)buttonClicked:(id)sender; 35 - (IBAction)buttonClicked:(id)sender;
36 - (IBAction)buttonRightClicked:(id)sender; 36 - (IBAction)buttonRightClicked:(id)sender;
37 37
38 - (void)bubbleWillClose:(NSNotification*)notif; 38 - (void)bubbleWillClose:(NSNotification*)notif;
39 39
40 // Updates the profile name displayed by the avatar button. If |layoutParent| is 40 // Updates the profile name displayed by the avatar button. If |layoutParent| is
41 // yes, then the BrowserWindowController is notified to relayout the subviews, 41 // yes, then the BrowserWindowController is notified to relayout the subviews,
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 } 237 }
238 238
239 - (void)setErrorStatus:(BOOL)hasError { 239 - (void)setErrorStatus:(BOOL)hasError {
240 } 240 }
241 241
242 - (BaseBubbleController*)menuController { 242 - (BaseBubbleController*)menuController {
243 return menuController_; 243 return menuController_;
244 } 244 }
245 245
246 @end 246 @end
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698