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

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

Issue 12042002: Alternate NTP: Add search token to omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 7 years, 11 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/location_bar/web_intents_button_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm b/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm
index 5551c6e7b29d019017202fd2ab8f114c85c18683..ed22c3f61ed1e0774260636eb6c6dc438a9341cb 100644
--- a/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm
@@ -27,7 +27,6 @@ const NSTimeInterval kAnimationIntervalS = 1.0 / 60.0;
const CGFloat kTextMarginPadding = 4;
const CGFloat kIconMarginPadding = 2;
const CGFloat kBorderPadding = 3;
-const CGFloat kBubbleYInset = 4.0;
// During animation, the text opens to full width.
enum AnimationState {
@@ -187,7 +186,7 @@ void WebIntentsButtonDecoration::DrawInFrame(NSRect frame,
return;
}
- frame = NSInsetRect(frame, 0.0, kBubbleYInset);
+ frame = NSInsetRect(frame, 0.0, kTextYInset);
NSDrawThreePartImage(frame,
left_image_.get(),
center_image_.get(),

Powered by Google App Engine
This is Rietveld 408576698