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

Unified Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapSource.h

Issue 2035113002: Implement ImageBitmapOptions resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 5 months 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
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
index 4e15f7f07974e2bf29ea332651a3f9d6a56ec465..0d1c78dca13136f713017bd3e35c8d48e66ed3ea 100644
--- a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapSource.h
+++ b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapSource.h
@@ -10,7 +10,9 @@
#include "bindings/core/v8/ScriptState.h"
#include "core/CoreExport.h"
#include "core/dom/ExceptionCode.h"
+#include "platform/geometry/IntRect.h"
#include "platform/geometry/IntSize.h"
+#include "third_party/WebKit/Source/wtf/Optional.h"
namespace blink {
@@ -20,7 +22,7 @@ class ImageBitmapOptions;
class CORE_EXPORT ImageBitmapSource {
public:
virtual IntSize bitmapSourceSize() const { return IntSize(); }
- virtual ScriptPromise createImageBitmap(ScriptState*, EventTarget&, int sx, int sy, int sw, int sh, const ImageBitmapOptions&, ExceptionState&);
+ virtual ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Optional<IntRect>, const ImageBitmapOptions&, ExceptionState&);
virtual bool isBlob() const { return false; }

Powered by Google App Engine
This is Rietveld 408576698