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

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

Issue 1775223002: Prepare chrome/ for compilation with OS X 10.7 deployment target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors. Fix null-window error. Created 4 years, 9 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/autofill/autofill_tooltip_controller.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm b/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm
index b2a66dc7c08efb0167739d9677dc27b49a38f850..d16b63515b6ccb16adad9515f701f32a2a51bb0e 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm
@@ -7,6 +7,7 @@
#include "base/mac/foundation_util.h"
#import "chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.h"
#import "ui/base/cocoa/base_view.h"
+#include "ui/base/cocoa/cocoa_base_utils.h"
#import "ui/base/cocoa/hover_image_button.h"
// Delay time before tooltip shows/hides.
@@ -164,8 +165,8 @@ CGFloat kTooltipInset = 10;
// Compute anchor point (in window coords - views might be flipped).
NSRect viewRect = [view_ convertRect:[view_ bounds] toView:nil];
NSPoint anchorPoint = NSMakePoint(NSMidX(viewRect), NSMinY(viewRect));
- [bubbleController_ setAnchorPoint:
- [[[self view] window] convertBaseToScreen:anchorPoint]];
+ [bubbleController_ setAnchorPoint:ui::ConvertPointFromWindowToScreen(
+ [[self view] window], anchorPoint)];
[bubbleController_ showWindow:self];
}

Powered by Google App Engine
This is Rietveld 408576698