Chromium Code Reviews| Index: ui/gfx/size.h |
| diff --git a/ui/gfx/size.h b/ui/gfx/size.h |
| index 2d01eeea5004f53893d214c3c3915b113ad84050..015378fd7e0c345c167096bb2f201b8ed82a5a5c 100644 |
| --- a/ui/gfx/size.h |
| +++ b/ui/gfx/size.h |
| @@ -10,6 +10,7 @@ |
| #include "build/build_config.h" |
| #include "ui/base/ui_export.h" |
| #include "ui/gfx/size_base.h" |
| +#include "ui/gfx/size_f.h" |
| #if defined(OS_WIN) |
| typedef struct tagSIZE SIZE; |
| @@ -42,6 +43,10 @@ class UI_EXPORT Size : public SizeBase<Size, int> { |
| CGSize ToCGSize() const; |
| #endif |
| + SizeF ToSizeF() const WARN_UNUSED_RESULT { |
|
sky
2012/10/02 20:05:38
Remove the WARN_UNUSED_RESULT. We're only using th
danakj
2012/10/02 20:06:33
OK. I will remove it from the already-present ToRe
|
| + return SizeF(width(), height()); |
| + } |
| + |
| std::string ToString() const; |
| }; |