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

Unified Diff: ui/gfx/geometry/insets_f.cc

Issue 1800973002: MD text buttons - implement focus ring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/gfx/geometry/insets_f.cc
diff --git a/ui/gfx/geometry/insets_f.cc b/ui/gfx/geometry/insets_f.cc
index 24ccd627bdb314eb8b2d3bdab8bac5ba0ac3dedf..e4368913ccda0f44ccea5a831a777d79c69ce29c 100644
--- a/ui/gfx/geometry/insets_f.cc
+++ b/ui/gfx/geometry/insets_f.cc
@@ -8,7 +8,12 @@
namespace gfx {
-InsetsF::InsetsF() : InsetsF(0.f, 0.f, 0.f, 0.f) {}
+InsetsF::InsetsF() : InsetsF(0.f) {}
+
+InsetsF::InsetsF(float all) : InsetsF(all, all, all, all) {}
+
+InsetsF::InsetsF(float vertical, float horizontal)
+ : InsetsF(vertical, horizontal, vertical, horizontal) {}
InsetsF::InsetsF(float top, float left, float bottom, float right)
: top_(top), left_(left), bottom_(bottom), right_(right) {}

Powered by Google App Engine
This is Rietveld 408576698