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.h

Issue 2440723003: Tweaks to ToggleButton details. (Closed)
Patch Set: invert Created 4 years, 2 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 | ui/gfx/geometry/insets.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/insets.h
diff --git a/ui/gfx/geometry/insets.h b/ui/gfx/geometry/insets.h
index bc5e3460ca3bdff536c43c01226566aa11bde4e3..3a202c38eb0da6d8bc945c5b3cc51d437cd610e4 100644
--- a/ui/gfx/geometry/insets.h
+++ b/ui/gfx/geometry/insets.h
@@ -12,6 +12,8 @@
namespace gfx {
+class Vector2d;
+
// Represents the widths of the four borders or margins of an unspecified
// rectangle. An Insets stores the thickness of the top, left, bottom and right
// edges, without storing the actual size and position of the rectangle itself.
@@ -118,6 +120,8 @@ inline Insets operator-(Insets lhs, const Insets& rhs) {
return lhs;
}
+GFX_EXPORT Insets operator+(const Insets& insets, const gfx::Vector2d& vector);
danakj 2016/10/28 18:44:59 So this moves the top/bottom and left/right insets
Evan Stade 2016/10/28 19:22:03 assuming it returns an Inset (unlike gfx::Rect::Of
danakj 2016/10/28 19:46:56 That would match the behaviour of Scale() so sure
Evan Stade 2016/10/28 20:12:10 done (unlike Scale, the impl is in the .cc file to
+
} // namespace gfx
#endif // UI_GFX_GEOMETRY_INSETS_H_
« no previous file with comments | « no previous file | ui/gfx/geometry/insets.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698