Index: ui/cc/stubs/Region.h |
diff --git a/ui/cc/stubs/Region.h b/ui/cc/stubs/Region.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8758c32a26db451be6f95f65e15ae6cd9426b630 |
--- /dev/null |
+++ b/ui/cc/stubs/Region.h |
@@ -0,0 +1,33 @@ |
+#ifndef UI_CC_STUBS_REGION_H_ |
+#define UI_CC_STUBS_REGION_H_ |
+ |
+#include <wtf/Vector.h> |
+#include "IntRect.h" |
+ |
+namespace WebCore { |
+class IntPoint; |
+ |
+class Region { |
+public: |
+ Region() { } |
+ Region(const IntRect&) { } |
+ Region(const Region&) { } |
+ IntRect bounds() const { return IntRect(); } |
+ Vector<IntRect> rects() const { return Vector<IntRect>(); } |
+ void unite(IntRect) { } |
+ void unite(Region) { } |
+ void subtract(Region) { } |
+ bool isEmpty() const { return true; } |
+ bool contains(const IntPoint&) const { return false; } |
+ bool contains(const Region&) const { return false; } |
+ |
+}; |
+ |
+static Region subtract(const Region&, const Region&) { return Region(); } |
+static Region intersect(const Region&, const Region&) { return Region(); } |
+ |
+bool operator==(const Region&, const Region&) { return true; } |
+ |
+} |
+ |
+#endif // UI_CC_STUBS_REGION_H_ |