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

Unified Diff: ui/views/controls/focusable_rounded_border_mac.cc

Issue 1819443002: MacViews: draw combobox arrow backgrounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix linux build Created 4 years, 9 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: ui/views/controls/focusable_rounded_border_mac.cc
diff --git a/ui/views/controls/focusable_rounded_border_mac.cc b/ui/views/controls/focusable_rounded_border_mac.cc
index 0c5f2b5905dbcf8fa324573844cb0bc30bb9e6f5..ae4522a7c8bc2e311a8d6a68d29358e63e2b2f9d 100644
--- a/ui/views/controls/focusable_rounded_border_mac.cc
+++ b/ui/views/controls/focusable_rounded_border_mac.cc
@@ -5,11 +5,11 @@
#include "ui/views/controls/focusable_rounded_border_mac.h"
#include "ui/gfx/canvas.h"
+#include "ui/native_theme/native_theme_mac.h"
namespace {
const int kThickness = 1;
-const int kCornerRadius = 5;
} // namespace
@@ -37,7 +37,8 @@ void FocusableRoundedBorder::Paint(const View& view, gfx::Canvas* canvas) {
float half_thickness = kThickness / 2.0f;
gfx::RectF bounds(view.GetLocalBounds());
bounds.Inset(half_thickness, half_thickness);
- canvas->DrawRoundRect(bounds, kCornerRadius, paint);
+ canvas->DrawRoundRect(bounds, ui::NativeThemeMac::kComboboxCornerRadius,
+ paint);
}
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698