| Index: cc/base/math_util.cc
|
| diff --git a/cc/base/math_util.cc b/cc/base/math_util.cc
|
| index 7873d931913b4ce0835f6e5a44cd50813b4c55b4..4123cf82934cc93c8fc79dd2f183e04dc5ea5fa3 100644
|
| --- a/cc/base/math_util.cc
|
| +++ b/cc/base/math_util.cc
|
| @@ -526,6 +526,15 @@ scoped_ptr<base::Value> MathUtil::AsValue(gfx::Size s) {
|
| return res.PassAs<base::Value>();
|
| }
|
|
|
| +scoped_ptr<base::Value> MathUtil::AsValue(gfx::Rect r) {
|
| + scoped_ptr<base::ListValue> res(new base::ListValue());
|
| + res->AppendInteger(r.x());
|
| + res->AppendInteger(r.y());
|
| + res->AppendInteger(r.width());
|
| + res->AppendInteger(r.height());
|
| + return res.PassAs<base::Value>();
|
| +}
|
| +
|
| scoped_ptr<base::Value> MathUtil::AsValue(gfx::PointF pt) {
|
| scoped_ptr<base::ListValue> res(new base::ListValue());
|
| res->AppendDouble(pt.x());
|
|
|