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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 class ImageBitmapSource; | 51 class ImageBitmapSource; |
52 class ImageBitmapOptions; | 52 class ImageBitmapOptions; |
53 class ImageDecoder; | 53 class ImageDecoder; |
54 class WebTaskRunner; | 54 class WebTaskRunner; |
55 | 55 |
56 typedef HTMLImageElementOrHTMLVideoElementOrHTMLCanvasElementOrBlobOrImageDataOr
ImageBitmap ImageBitmapSourceUnion; | 56 typedef HTMLImageElementOrHTMLVideoElementOrHTMLCanvasElementOrBlobOrImageDataOr
ImageBitmap ImageBitmapSourceUnion; |
57 | 57 |
58 class ImageBitmapFactories final : public GarbageCollectedFinalized<ImageBitmapF
actories>, public Supplement<LocalDOMWindow>, public Supplement<WorkerGlobalScop
e> { | 58 class ImageBitmapFactories final : public GarbageCollectedFinalized<ImageBitmapF
actories>, public Supplement<LocalDOMWindow>, public Supplement<WorkerGlobalScop
e> { |
59 USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories); | 59 USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories); |
60 public: | 60 public: |
61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima
geBitmapSourceUnion&, ExceptionState&); | |
62 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima
geBitmapSourceUnion&, const ImageBitmapOptions&, ExceptionState&); | 61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima
geBitmapSourceUnion&, const ImageBitmapOptions&, ExceptionState&); |
63 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima
geBitmapSourceUnion&, int sx, int sy, int sw, int sh, ExceptionState&); | |
64 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima
geBitmapSourceUnion&, int sx, int sy, int sw, int sh, const ImageBitmapOptions&,
ExceptionState&); | 62 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima
geBitmapSourceUnion&, int sx, int sy, int sw, int sh, const ImageBitmapOptions&,
ExceptionState&); |
65 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm
apSource*, int sx, int sy, int sw, int sh, const ImageBitmapOptions&, ExceptionS
tate&); | 63 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm
apSource*, int sx, int sy, int sw, int sh, const ImageBitmapOptions&, ExceptionS
tate&); |
66 | 64 |
67 virtual ~ImageBitmapFactories() { } | 65 virtual ~ImageBitmapFactories() { } |
68 | 66 |
69 DECLARE_TRACE(); | 67 DECLARE_TRACE(); |
70 | 68 |
71 protected: | 69 protected: |
72 static const char* supplementName(); | 70 static const char* supplementName(); |
73 | 71 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 113 |
116 void addLoader(ImageBitmapLoader*); | 114 void addLoader(ImageBitmapLoader*); |
117 void didFinishLoading(ImageBitmapLoader*); | 115 void didFinishLoading(ImageBitmapLoader*); |
118 | 116 |
119 HeapHashSet<Member<ImageBitmapLoader>> m_pendingLoaders; | 117 HeapHashSet<Member<ImageBitmapLoader>> m_pendingLoaders; |
120 }; | 118 }; |
121 | 119 |
122 } // namespace blink | 120 } // namespace blink |
123 | 121 |
124 #endif // ImageBitmapFactories_h | 122 #endif // ImageBitmapFactories_h |
OLD | NEW |