Chromium Code Reviews| Index: ui/gfx/geometry/rect.h |
| diff --git a/ui/gfx/geometry/rect.h b/ui/gfx/geometry/rect.h |
| index 8c37e8eeabd11cafdc2c0f43cad20bbac1f9f0f3..a2e1e124c56c19e97a16a7c73de89e464bbce556 100644 |
| --- a/ui/gfx/geometry/rect.h |
| +++ b/ui/gfx/geometry/rect.h |
| @@ -110,6 +110,8 @@ class GFX_EXPORT Rect { |
| set_height(height); |
| } |
| + void SetByBounds(int left, int top, int right, int bottom); |
|
danakj
2017/03/29 19:00:47
I see what you're saying about the comment that wa
danakj
2017/03/29 20:50:35
Idk if u didn't see this also, so in case you want
Peter Mayo
2017/03/29 21:10:12
I didn't. I like it - added.
|
| + |
| // Shrink the rectangle by a horizontal and vertical distance on all sides. |
| void Inset(int horizontal, int vertical) { |
| Inset(horizontal, vertical, horizontal, vertical); |