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

Unified Diff: chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm

Issue 2503713002: [Mac] Fix for omnibox lock icon (Closed)
Patch Set: fixed test Created 4 years, 1 month 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/ui/cocoa/location_bar/image_decoration_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
index 6ec3fd959f57e9a5ceccfd1d3fc96f7f57effea0..f092a09b85d4cd01b2cadc459d961dbdfc7e60bf 100644
--- a/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
@@ -43,6 +43,7 @@ const CGFloat kRetinaBaselineOffset = 0.5;
// The info-bubble point should look like it points to the bottom of the lock
// icon. Determined with Pixie.app.
+const CGFloat kPageInfoBubblePointXOffset = 5.0;
const CGFloat kPageInfoBubblePointYOffset = 6.0;
// Minimum acceptable width for the ev bubble.
@@ -273,7 +274,7 @@ bool SecurityStateBubbleDecoration::AcceptsMousePress() {
NSPoint SecurityStateBubbleDecoration::GetBubblePointInFrame(NSRect frame) {
NSRect image_rect = GetImageRectInFrame(frame);
- return NSMakePoint(NSMidX(image_rect),
+ return NSMakePoint(NSMidX(image_rect) + kPageInfoBubblePointXOffset,
NSMaxY(image_rect) - kPageInfoBubblePointYOffset);
}
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/image_decoration_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698