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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm

Issue 113763002: [rAc] [OSX] Set tooltip bubble arrow's anchor point based on the icon location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/autofill/autofill_notification_controller.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm b/chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm
index e78b94f6a9bb4d428334fe14a6eeb1f37342021c..f163397ff8a0d88344ea481332a404ba26e19b50 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm
@@ -142,7 +142,8 @@
// (2) this way, the sizing computation can be cached.
[checkbox_ sizeToFit];
- tooltipController_.reset([[AutofillTooltipController alloc] init]);
+ tooltipController_.reset([[AutofillTooltipController alloc]
+ initWithArrowLocation:info_bubble::kTopRight]);
groby-ooo-7-16 2013/12/13 01:35:49 That's a lot of code for a single kTopCenter... Wh
Ilya Sherman 2013/12/13 02:17:07 Well, because the tooltip controller doesn't alway
[tooltipController_ setImage:
ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
IDR_AUTOFILL_TOOLTIP_ICON).ToNSImage()];

Powered by Google App Engine
This is Rietveld 408576698