| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 class Blob; | 46 class Blob; |
| 47 class EventTarget; | 47 class EventTarget; |
| 48 class ExceptionState; | 48 class ExceptionState; |
| 49 class ImageBitmap; | 49 class ImageBitmap; |
| 50 class ImageData; | 50 class ImageData; |
| 51 class ExecutionContext; | 51 class ExecutionContext; |
| 52 | 52 |
| 53 class ImageBitmapFactories final : public NoBaseWillBeGarbageCollectedFinalized<
ImageBitmapFactories>, public WillBeHeapSupplement<LocalDOMWindow>, public WillB
eHeapSupplement<WorkerGlobalScope> { | 53 class ImageBitmapFactories final : public NoBaseWillBeGarbageCollectedFinalized<
ImageBitmapFactories>, public WillBeHeapSupplement<LocalDOMWindow>, public WillB
eHeapSupplement<WorkerGlobalScope> { |
| 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories); | 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories); |
| 55 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ImageBitmapFactories); |
| 55 | 56 |
| 56 public: | 57 public: |
| 57 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Blob*, Ex
ceptionState&); | 58 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Blob*, Ex
ceptionState&); |
| 58 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Blob*, in
t sx, int sy, int sw, int sh, ExceptionState&); | 59 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Blob*, in
t sx, int sy, int sw, int sh, ExceptionState&); |
| 59 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageData
*, ExceptionState&); | 60 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageData
*, ExceptionState&); |
| 60 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageData
*, int sx, int sy, int sw, int sh, ExceptionState&); | 61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageData
*, int sx, int sy, int sw, int sh, ExceptionState&); |
| 61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm
ap*, ExceptionState&); | 62 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm
ap*, ExceptionState&); |
| 62 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm
ap*, int sx, int sy, int sw, int sh, ExceptionState&); | 63 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm
ap*, int sx, int sy, int sw, int sh, ExceptionState&); |
| 63 | 64 |
| 64 virtual ~ImageBitmapFactories() { } | 65 virtual ~ImageBitmapFactories() { } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 108 |
| 108 void addLoader(ImageBitmapLoader*); | 109 void addLoader(ImageBitmapLoader*); |
| 109 void didFinishLoading(ImageBitmapLoader*); | 110 void didFinishLoading(ImageBitmapLoader*); |
| 110 | 111 |
| 111 PersistentHeapHashSetWillBeHeapHashSet<Member<ImageBitmapLoader>> m_pendingL
oaders; | 112 PersistentHeapHashSetWillBeHeapHashSet<Member<ImageBitmapLoader>> m_pendingL
oaders; |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace blink | 115 } // namespace blink |
| 115 | 116 |
| 116 #endif // ImageBitmapFactories_h | 117 #endif // ImageBitmapFactories_h |
| OLD | NEW |