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

Unified Diff: chrome/browser/ui/views/toolbar_view.cc

Issue 5348005: Adjust the position of the Wrench menu badge.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/toolbar_view.cc
===================================================================
--- chrome/browser/ui/views/toolbar_view.cc (revision 67614)
+++ chrome/browser/ui/views/toolbar_view.cc (working copy)
@@ -76,9 +76,8 @@
// badge.
static const float kBadgeTextFontSize = 9.0;
-// Margins for the wrench menu badges (badge is placed in the upper right
-// corner of the wrench menu with the specified margins).
-static const int kBadgeRightMargin = 2;
+// Top margin for the wrench menu badges (badge is placed in the upper right
+// corner of the wrench menu).
static const int kBadgeTopMargin = 2;
static SkBitmap* kPopupBackgroundEdge = NULL;
@@ -753,9 +752,7 @@
NOTREACHED();
}
- canvas->DrawBitmapInt(badge,
- icon.width() - badge.width() - kBadgeRightMargin,
- kBadgeTopMargin);
+ canvas->DrawBitmapInt(badge, icon.width() - badge.width(), kBadgeTopMargin);
return canvas->ExtractBitmap();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698