| Index: gfx/rect.h
|
| diff --git a/gfx/rect.h b/gfx/rect.h
|
| index e305b9bdb8ff6d6bb565d3e2a2ac58b55ec09e42..b4c9a0bd397ab44d1d7fcc1e47f6d9dc5588f889 100644
|
| --- a/gfx/rect.h
|
| +++ b/gfx/rect.h
|
| @@ -164,6 +164,10 @@ class Rect {
|
| // Returns the center of this rectangle.
|
| Point CenterPoint() const;
|
|
|
| + // Return a rectangle that has the same center point but with a size capped
|
| + // at given |size|.
|
| + Rect Center(const gfx::Size& size) const;
|
| +
|
| // Returns true if this rectangle shares an entire edge (i.e., same width or
|
| // same height) with the given rectangle, and the rectangles do not overlap.
|
| bool SharesEdgeWith(const gfx::Rect& rect) const;
|
|
|