Chromium Code Reviews| Index: base/gfx/size.h |
| diff --git a/base/gfx/size.h b/base/gfx/size.h |
| index bf0aa26adc165b340a0bd1e2bf2306b714dfafd7..57e080b621f1abceaef85c3c73d438c8c1528e46 100644 |
| --- a/base/gfx/size.h |
| +++ b/base/gfx/size.h |
| @@ -30,6 +30,8 @@ class Size { |
| int width() const { return width_; } |
| int height() const { return height_; } |
| + int GetArea() const { return width_ * height_; } |
| + |
| void SetSize(int width, int height) { |
| set_width(width); |
| set_height(height); |