Index: ui/gfx/geometry/rect.h |
diff --git a/ui/gfx/geometry/rect.h b/ui/gfx/geometry/rect.h |
index 8c37e8eeabd11cafdc2c0f43cad20bbac1f9f0f3..ea61b9f15c14872f1fefdeaaff31ca083e2ff701 100644 |
--- a/ui/gfx/geometry/rect.h |
+++ b/ui/gfx/geometry/rect.h |
@@ -110,6 +110,9 @@ class GFX_EXPORT Rect { |
set_height(height); |
} |
+ // Safely(heuristically) take min and max to the internal representation. |
+ void SetByBounds(int left, int right, int top, int bottom); |
+ |
// Shrink the rectangle by a horizontal and vertical distance on all sides. |
void Inset(int horizontal, int vertical) { |
Inset(horizontal, vertical, horizontal, vertical); |