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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WindowImageBitmapFactories_h | 31 #ifndef WindowImageBitmapFactories_h |
32 #define WindowImageBitmapFactories_h | 32 #define WindowImageBitmapFactories_h |
33 | 33 |
34 #include "bindings/core/v8/ScriptPromise.h" | 34 #include "bindings/core/v8/ScriptPromise.h" |
35 #include "bindings/core/v8/ScriptPromiseResolver.h" | 35 #include "bindings/core/v8/ScriptPromiseResolver.h" |
36 #include "bindings/core/v8/ScriptState.h" | 36 #include "bindings/core/v8/ScriptState.h" |
37 #include "platform/geometry/IntRect.h" | 37 #include "platform/geometry/IntRect.h" |
| 38 #include "wtf/Allocator.h" |
38 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
39 #include "wtf/HashSet.h" | 40 #include "wtf/HashSet.h" |
40 | 41 |
41 namespace blink { | 42 namespace blink { |
42 | 43 |
43 class CanvasRenderingContext2D; | 44 class CanvasRenderingContext2D; |
44 class EventTarget; | 45 class EventTarget; |
45 class ExceptionState; | 46 class ExceptionState; |
46 class HTMLCanvasElement; | 47 class HTMLCanvasElement; |
47 class HTMLImageElement; | 48 class HTMLImageElement; |
48 class HTMLVideoElement; | 49 class HTMLVideoElement; |
49 | 50 |
50 class WindowImageBitmapFactories { | 51 class WindowImageBitmapFactories { |
| 52 STATIC_ONLY(WindowImageBitmapFactories); |
51 public: | 53 public: |
52 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLImage
Element*, ExceptionState&); | 54 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLImage
Element*, ExceptionState&); |
53 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLImage
Element*, int sx, int sy, int sw, int sh, ExceptionState&); | 55 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLImage
Element*, int sx, int sy, int sw, int sh, ExceptionState&); |
54 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLVideo
Element*, ExceptionState&); | 56 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLVideo
Element*, ExceptionState&); |
55 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLVideo
Element*, int sx, int sy, int sw, int sh, ExceptionState&); | 57 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLVideo
Element*, int sx, int sy, int sw, int sh, ExceptionState&); |
56 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, CanvasRen
deringContext2D*, ExceptionState&); | 58 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, CanvasRen
deringContext2D*, ExceptionState&); |
57 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, CanvasRen
deringContext2D*, int sx, int sy, int sw, int sh, ExceptionState&); | 59 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, CanvasRen
deringContext2D*, int sx, int sy, int sw, int sh, ExceptionState&); |
58 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLCanva
sElement*, ExceptionState&); | 60 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLCanva
sElement*, ExceptionState&); |
59 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLCanva
sElement*, int sx, int sy, int sw, int sh, ExceptionState&); | 61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLCanva
sElement*, int sx, int sy, int sw, int sh, ExceptionState&); |
60 }; | 62 }; |
61 | 63 |
62 } // namespace blink | 64 } // namespace blink |
63 | 65 |
64 #endif // WindowImageBitmapFactories_h | 66 #endif // WindowImageBitmapFactories_h |
OLD | NEW |