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

Unified Diff: Source/core/page/DOMWindow.h

Issue 20748002: Blob creation methods for ImageBitmap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Read blob as ArrayBuffer. Refactor into ImageBitmapFactories. Created 7 years, 4 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: Source/core/page/DOMWindow.h
diff --git a/Source/core/page/DOMWindow.h b/Source/core/page/DOMWindow.h
index ae98cf0a1fb716d1597a64c4e27225ece329b7b7..05de0436e2e53ec0d8e0511d0f9ec55374b4c5e1 100644
--- a/Source/core/page/DOMWindow.h
+++ b/Source/core/page/DOMWindow.h
@@ -30,12 +30,14 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/EventTarget.h"
#include "core/page/FrameDestructionObserver.h"
+#include "core/page/ImageBitmapFactories.h"
#include "core/platform/Supplementable.h"
#include "wtf/Forward.h"
namespace WebCore {
class BarProp;
+ class Blob;
class CSSRuleList;
class CSSStyleDeclaration;
class Console;
@@ -54,6 +56,7 @@ namespace WebCore {
class Frame;
class History;
class IDBFactory;
+ class ImageBitmapLoader;
class Location;
class MediaQueryList;
class MessageEvent;
@@ -242,6 +245,9 @@ namespace WebCore {
DOMWindowCSS* css();
+ void loadBlobAsync(ImageBitmapLoader*, Blob*);
Justin Novosad 2013/08/07 19:35:12 Why does this need to live in DOM window? it does
+ void finishedLoading(ImageBitmapLoader*);
+
// Events
// EventTarget API
virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture);
@@ -393,6 +399,7 @@ namespace WebCore {
bool m_shouldPrintWhenFinishedLoading;
HashSet<DOMWindowProperty*> m_properties;
+ HashSet<ImageBitmapLoader*> m_pendingImageBitmapLoaders;
mutable RefPtr<Screen> m_screen;
mutable RefPtr<History> m_history;

Powered by Google App Engine
This is Rietveld 408576698