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

Unified Diff: chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm

Issue 943453003: Add tooltips to profile name when truncated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually include the sdk_forward_declarations Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm
index 588fdea9347c1ac9f41c41f8d9638c264c36d600..a1ff1f9c6b6c69124d90193923619d0b2e005641 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm
@@ -5,6 +5,7 @@
#import "chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h"
#include "base/mac/bundle_locations.h"
+#include "base/mac/sdk_forward_declarations.h"
#include "base/strings/sys_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/avatar_menu.h"
@@ -159,6 +160,9 @@ const CGFloat kSupervisedUserSpacing = 26.0;
NSRect frame = [nameField frame];
frame.size.width = kMaxItemTextWidth;
[nameField setFrame:frame];
+ if ([nameField respondsToSelector:@selector(setAllowsExpansionToolTips:)]) {
noms (inactive) 2015/02/23 22:16:34 nit: no {} for one-line if statements.
wesleylancel 2015/02/23 22:45:47 Done.
+ [nameField setAllowsExpansionToolTips:YES];
+ }
}
*widthAdjust = std::max(*widthAdjust, delta.width);

Powered by Google App Engine
This is Rietveld 408576698