| Index: ui/gfx/size.h
|
| diff --git a/ui/gfx/size.h b/ui/gfx/size.h
|
| index 8a53b97edbcc6c55a0b6ac7bb7de18fdf9a39e56..a2cdf3eb4314257a0b0d03469738053214fe4195 100644
|
| --- a/ui/gfx/size.h
|
| +++ b/ui/gfx/size.h
|
| @@ -47,6 +47,14 @@ class UI_EXPORT Size : public SizeBase<Size, int> {
|
| return SizeF(width(), height());
|
| }
|
|
|
| + SizeF Scale(float scale) const WARN_UNUSED_RESULT {
|
| + return Scale(scale, scale);
|
| + }
|
| +
|
| + SizeF Scale(float x_scale, float y_scale) const WARN_UNUSED_RESULT {
|
| + return SizeF(width() * x_scale, height() * y_scale);
|
| + }
|
| +
|
| std::string ToString() const;
|
| };
|
|
|
|
|