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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h

Issue 2508943003: Make OffscreenCanvas resizeable (Closed)
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
index 36f9714170b576eb3bbf5d5b5e5ba0c5f8d559c4..5750fbce3146ca302d04f4241a8107a47c62aa81 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
@@ -37,8 +37,8 @@ class CORE_EXPORT OffscreenCanvas final : public EventTargetWithInlineData,
// IDL attributes
unsigned width() const { return m_size.width(); }
unsigned height() const { return m_size.height(); }
- void setWidth(unsigned, ExceptionState&);
- void setHeight(unsigned, ExceptionState&);
+ void setWidth(unsigned);
+ void setHeight(unsigned);
// API Methods
ImageBitmap* transferToImageBitmap(ScriptState*, ExceptionState&);
@@ -47,6 +47,8 @@ class CORE_EXPORT OffscreenCanvas final : public EventTargetWithInlineData,
ExceptionState&);
IntSize size() const { return m_size; }
+ void setSize(const IntSize&);
+
void setPlaceholderCanvasId(int canvasId) {
m_placeholderCanvasId = canvasId;
}

Powered by Google App Engine
This is Rietveld 408576698