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

Unified Diff: chrome/browser/cocoa/info_bubble_view.mm

Issue 1623002: Change how the calculation is performed for determining the location of the a... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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
« no previous file with comments | « chrome/browser/cocoa/info_bubble_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/info_bubble_view.mm
===================================================================
--- chrome/browser/cocoa/info_bubble_view.mm (revision 43634)
+++ chrome/browser/cocoa/info_bubble_view.mm (working copy)
@@ -92,4 +92,22 @@
}
}
+- (NSPoint)arrowTip {
+ NSRect bounds = [self bounds];
+ NSPoint arrowTip = NSMakePoint(NSMaxX(bounds), NSMaxY(bounds));
+ CGFloat tipXOffset = kBubbleArrowXOffset + kBubbleArrowWidth / 2.0;
+ switch (arrowLocation_) {
+ case kTopLeft:
+ arrowTip.x = tipXOffset;
+ break;
+ case kTopRight:
+ arrowTip.x -= tipXOffset;
+ break;
+ default:
+ NOTREACHED();
+ break;
+ }
+ return arrowTip;
+}
+
@end
« no previous file with comments | « chrome/browser/cocoa/info_bubble_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698