Index: third_party/WebKit/Source/core/imagebitmap/ImageBitmapSource.h |
diff --git a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapSource.h b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapSource.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bb218d162f3e76941d207274edd0b8876fa68830 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapSource.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ImageBitmapSource_h |
+#define ImageBitmapSource_h |
+ |
+#include "core/CoreExport.h" |
+#include "platform/geometry/IntSize.h" |
+ |
+namespace blink { |
+ |
+class CORE_EXPORT ImageBitmapSource { |
+public: |
+ virtual IntSize bitmapSourceSize() const { return IntSize(); }; |
+ |
+ virtual bool isBlob() const { return false; } |
+ virtual bool isImageData() const { return false; } |
+ virtual bool isHTMLImageElement() const { return false; } |
+ virtual bool isHTMLVideoElement() const { return false; } |
+ virtual bool isCanvasElement() const { return false; } |
+ |
+protected: |
+ virtual ~ImageBitmapSource() {} |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |