Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Unified Diff: cc/stubs/int_size.h

Issue 11275113: Remove most remaining references to IntRect and FloatRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compositor bindings Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/stubs/float_size.h ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/stubs/int_size.h
diff --git a/cc/stubs/int_size.h b/cc/stubs/int_size.h
index 8b75f1ee43e7c47874268fd71a0764706cf7ab05..9e1c3e60fb5e76ff5bf2b940f571f88ff78c3880 100644
--- a/cc/stubs/int_size.h
+++ b/cc/stubs/int_size.h
@@ -11,6 +11,7 @@
#include "third_party/WebKit/Source/WebCore/platform/graphics/IntSize.h"
#endif
#include "ui/gfx/size.h"
+#include "ui/gfx/vector2d.h"
namespace cc {
@@ -34,7 +35,14 @@ public:
{
}
+ explicit IntSize(gfx::Vector2d vector)
+ : WebCore::IntSize(vector.x(), vector.y())
+ {
+ }
+
operator gfx::Size() const { return gfx::Size(width(), height()); }
+
+ operator gfx::Vector2d() const { return gfx::Vector2d(width(), height()); }
};
}
« no previous file with comments | « cc/stubs/float_size.h ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698