| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class CanvasRenderingContext2D; | 47 class CanvasRenderingContext2D; |
| 48 class EventTarget; | 48 class EventTarget; |
| 49 class ExceptionState; | 49 class ExceptionState; |
| 50 class HTMLCanvasElement; | 50 class HTMLCanvasElement; |
| 51 class HTMLImageElement; | 51 class HTMLImageElement; |
| 52 class HTMLVideoElement; | 52 class HTMLVideoElement; |
| 53 class ImageBitmap; | 53 class ImageBitmap; |
| 54 class ImageData; | 54 class ImageData; |
| 55 class ExecutionContext; | 55 class ExecutionContext; |
| 56 | 56 |
| 57 class ImageBitmapFactories FINAL : public NoBaseWillBeGarbageCollectedFinalized<
ImageBitmapFactories>, public WillBeHeapSupplement<DOMWindow>, public WillBeHeap
Supplement<WorkerGlobalScope> { | 57 class ImageBitmapFactories FINAL : public NoBaseWillBeGarbageCollectedFinalized<
ImageBitmapFactories>, public WillBeHeapSupplement<LocalDOMWindow>, public WillB
eHeapSupplement<WorkerGlobalScope> { |
| 58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories); | 58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories); |
| 59 | 59 |
| 60 public: | 60 public: |
| 61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLImage
Element*, ExceptionState&); | 61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLImage
Element*, ExceptionState&); |
| 62 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLImage
Element*, int sx, int sy, int sw, int sh, ExceptionState&); | 62 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLImage
Element*, int sx, int sy, int sw, int sh, ExceptionState&); |
| 63 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLVideo
Element*, ExceptionState&); | 63 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLVideo
Element*, ExceptionState&); |
| 64 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLVideo
Element*, int sx, int sy, int sw, int sh, ExceptionState&); | 64 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLVideo
Element*, int sx, int sy, int sw, int sh, ExceptionState&); |
| 65 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, CanvasRen
deringContext2D*, ExceptionState&); | 65 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, CanvasRen
deringContext2D*, ExceptionState&); |
| 66 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, CanvasRen
deringContext2D*, int sx, int sy, int sw, int sh, ExceptionState&); | 66 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, CanvasRen
deringContext2D*, int sx, int sy, int sw, int sh, ExceptionState&); |
| 67 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLCanva
sElement*, ExceptionState&); | 67 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLCanva
sElement*, ExceptionState&); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 void addLoader(ImageBitmapLoader*); | 120 void addLoader(ImageBitmapLoader*); |
| 121 void didFinishLoading(ImageBitmapLoader*); | 121 void didFinishLoading(ImageBitmapLoader*); |
| 122 | 122 |
| 123 PersistentHeapHashSetWillBeHeapHashSet<Member<ImageBitmapLoader> > m_pending
Loaders; | 123 PersistentHeapHashSetWillBeHeapHashSet<Member<ImageBitmapLoader> > m_pending
Loaders; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace WebCore | 126 } // namespace WebCore |
| 127 | 127 |
| 128 #endif // ImageBitmapFactories_h | 128 #endif // ImageBitmapFactories_h |
| OLD | NEW |