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

Unified Diff: chrome/browser/ui/views/toolbar/wrench_menu.cc

Issue 185233017: Removes extra left border from wrench menu buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 | « 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/wrench_menu.cc
diff --git a/chrome/browser/ui/views/toolbar/wrench_menu.cc b/chrome/browser/ui/views/toolbar/wrench_menu.cc
index a4ce9f54131065945785ea5d49554b64a62a04d9..cffdf70c01c7b8408aed48506f732480eca8a521 100644
--- a/chrome/browser/ui/views/toolbar/wrench_menu.cc
+++ b/chrome/browser/ui/views/toolbar/wrench_menu.cc
@@ -188,16 +188,14 @@ class MenuButtonBackground : public views::Background {
int w = view->width();
int h = view->height();
#if defined(USE_AURA)
sky 2014/03/05 15:28:34 nit: you can remove this ifdef too.
varkha 2014/03/05 15:57:38 Done.
- // Normal buttons get a border drawn on the right side and the rest gets
- // filled in. The left button however does not get a line to combine
- // buttons.
- int border = 0;
- if (type_ != RIGHT_BUTTON) {
- border = 1;
- canvas->FillRect(gfx::Rect(0, 0, border, h),
- BorderColor(view, views::Button::STATE_NORMAL));
- }
if (use_new_menu_) {
sky 2014/03/05 15:28:34 view->GetNativeTheme() == ui::NativeThemeAura::ins
varkha 2014/03/05 15:57:38 Code in https://code.google.com/p/chromium/codesea
+ // Normal buttons get a border drawn on the right side and the rest gets
+ // filled in. The left button however does not get a line to combine
+ // buttons.
+ if (type_ != RIGHT_BUTTON) {
+ canvas->FillRect(gfx::Rect(0, 0, 1, h),
+ BorderColor(view, views::Button::STATE_NORMAL));
+ }
gfx::Rect bounds(view->GetLocalBounds());
bounds.set_x(view->GetMirroredXForRect(bounds));
DrawBackground(canvas, view, bounds, state);
« 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