summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/info_bubble_view.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/info_bubble_view.mm')
-rw-r--r--chrome/browser/cocoa/info_bubble_view.mm9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/info_bubble_view.mm b/chrome/browser/cocoa/info_bubble_view.mm
index 58cd923..1ced0dd 100644
--- a/chrome/browser/cocoa/info_bubble_view.mm
+++ b/chrome/browser/cocoa/info_bubble_view.mm
@@ -92,4 +92,13 @@ extern const CGFloat kBubbleCornerRadius = 8.0;
}
}
+- (NSPoint)arrowTip {
+ NSRect bounds = [self bounds];
+ CGFloat tipXOffset = kBubbleArrowXOffset + kBubbleArrowWidth / 2.0;
+ CGFloat xOffset = arrowLocation_ == kTopRight ? NSMaxX(bounds) - tipXOffset :
+ NSMinX(bounds) + tipXOffset;
+ NSPoint arrowTip = NSMakePoint(xOffset, NSMaxY(bounds));
+ return arrowTip;
+}
+
@end