Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.h |
| diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h |
| index a8fdc1741b6ca79c51d50ab82c3b04d7dea1aca2..0759c41fc8ec857a1d674d975f7b3f2beffeaa63 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h |
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h |
| @@ -36,6 +36,7 @@ |
| #include "core/dom/DocumentVisibilityObserver.h" |
| #include "core/fileapi/FileCallback.h" |
| #include "core/html/HTMLElement.h" |
| +#include "core/html/canvas/CanvasDrawListener.h" |
| #include "core/html/canvas/CanvasImageSource.h" |
| #include "platform/geometry/FloatRect.h" |
| #include "platform/geometry/IntSize.h" |
| @@ -101,6 +102,10 @@ public: |
| void toBlob(FileCallback*, const String& mimeType, const ScriptValue& qualityArgument, ExceptionState&); |
| void toBlob(FileCallback* callback, const String& mimeType, ExceptionState& exceptionState) { return toBlob(callback, mimeType, ScriptValue(), exceptionState); } |
| + // Used for canvas capture. |
| + void addListener(CanvasDrawListener*); |
| + void removeListener(CanvasDrawListener*); |
| + |
| // Used for rendering |
| void didDraw(const FloatRect&); |
| @@ -193,9 +198,13 @@ private: |
| bool paintsIntoCanvasBuffer() const; |
| + void notifyListenersCanvasChanged(); |
| + |
| ImageData* toImageData(SourceDrawingBuffer) const; |
| String toDataURLInternal(const String& mimeType, const double& quality, SourceDrawingBuffer) const; |
| + PersistentHeapHashSetWillBeHeapHashSet<WeakMember<CanvasDrawListener>> m_listeners; |
|
Justin Novosad
2015/11/25 02:38:05
I feel bad that you had to figure out how to decla
emircan
2015/11/26 01:03:52
Right, thanks for catching. I am adding.
|
| + |
| IntSize m_size; |
| OwnPtrWillBeMember<CanvasRenderingContext> m_context; |