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

Unified Diff: chrome/browser/ui/views/location_bar/background_with_1_px_border.h

Issue 2066303003: Adjust BackgroundWith1PxBorder corner radius to scale properly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move add inside cast Created 4 years, 6 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 | chrome/browser/ui/views/location_bar/background_with_1_px_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/background_with_1_px_border.h
diff --git a/chrome/browser/ui/views/location_bar/background_with_1_px_border.h b/chrome/browser/ui/views/location_bar/background_with_1_px_border.h
index f568615647498393e63ad8d7d73b2229fb2c69e9..69045793eca0a3d5c2102bea13fe1aa9371706c2 100644
--- a/chrome/browser/ui/views/location_bar/background_with_1_px_border.h
+++ b/chrome/browser/ui/views/location_bar/background_with_1_px_border.h
@@ -22,13 +22,13 @@ class View;
// that the border is one pixel regardless of display scaling.
class BackgroundWith1PxBorder : public views::Background {
public:
+ // Corner radius of the inside edge of the roundrect border stroke.
+ static constexpr int kCornerRadius = 2;
+
BackgroundWith1PxBorder(SkColor background, SkColor border);
void Paint(gfx::Canvas* canvas, views::View* view) const override;
- // Corner radius of the roundrect border.
- static const float kCornerRadius;
-
private:
// Color for the one pixel border.
SkColor border_color_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/background_with_1_px_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698