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

Side by Side Diff: Source/modules/imagebitmap/ImageBitmapFactories.h

Issue 273683006: ScriptPromise should understand the ScriptState from which the ScriptPromise is generated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/modules/imagebitmap/ImageBitmapFactories.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class HTMLImageElement; 50 class HTMLImageElement;
51 class HTMLVideoElement; 51 class HTMLVideoElement;
52 class ImageBitmap; 52 class ImageBitmap;
53 class ImageData; 53 class ImageData;
54 class ExecutionContext; 54 class ExecutionContext;
55 55
56 class ImageBitmapFactories FINAL : public NoBaseWillBeGarbageCollectedFinalized< ImageBitmapFactories>, public WillBeHeapSupplement<DOMWindow>, public WillBeHeap Supplement<WorkerGlobalScope> { 56 class ImageBitmapFactories FINAL : public NoBaseWillBeGarbageCollectedFinalized< ImageBitmapFactories>, public WillBeHeapSupplement<DOMWindow>, public WillBeHeap Supplement<WorkerGlobalScope> {
57 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories); 57 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories);
58 58
59 public: 59 public:
60 static ScriptPromise createImageBitmap(EventTarget&, HTMLImageElement*, Exce ptionState&); 60 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLImage Element*, ExceptionState&);
61 static ScriptPromise createImageBitmap(EventTarget&, HTMLImageElement*, int sx, int sy, int sw, int sh, ExceptionState&); 61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLImage Element*, int sx, int sy, int sw, int sh, ExceptionState&);
62 static ScriptPromise createImageBitmap(EventTarget&, HTMLVideoElement*, Exce ptionState&); 62 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLVideo Element*, ExceptionState&);
63 static ScriptPromise createImageBitmap(EventTarget&, HTMLVideoElement*, int sx, int sy, int sw, int sh, ExceptionState&); 63 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLVideo Element*, int sx, int sy, int sw, int sh, ExceptionState&);
64 static ScriptPromise createImageBitmap(EventTarget&, CanvasRenderingContext2 D*, ExceptionState&); 64 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, CanvasRen deringContext2D*, ExceptionState&);
65 static ScriptPromise createImageBitmap(EventTarget&, CanvasRenderingContext2 D*, int sx, int sy, int sw, int sh, ExceptionState&); 65 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, CanvasRen deringContext2D*, int sx, int sy, int sw, int sh, ExceptionState&);
66 static ScriptPromise createImageBitmap(EventTarget&, HTMLCanvasElement*, Exc eptionState&); 66 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLCanva sElement*, ExceptionState&);
67 static ScriptPromise createImageBitmap(EventTarget&, HTMLCanvasElement*, int sx, int sy, int sw, int sh, ExceptionState&); 67 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, HTMLCanva sElement*, int sx, int sy, int sw, int sh, ExceptionState&);
68 static ScriptPromise createImageBitmap(EventTarget&, Blob*, ExceptionState&) ; 68 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Blob*, Ex ceptionState&);
69 static ScriptPromise createImageBitmap(EventTarget&, Blob*, int sx, int sy, int sw, int sh, ExceptionState&); 69 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Blob*, in t sx, int sy, int sw, int sh, ExceptionState&);
70 static ScriptPromise createImageBitmap(EventTarget&, ImageData*, ExceptionSt ate&); 70 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageData *, ExceptionState&);
71 static ScriptPromise createImageBitmap(EventTarget&, ImageData*, int sx, int sy, int sw, int sh, ExceptionState&); 71 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageData *, int sx, int sy, int sw, int sh, ExceptionState&);
72 static ScriptPromise createImageBitmap(EventTarget&, ImageBitmap*, Exception State&); 72 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm ap*, ExceptionState&);
73 static ScriptPromise createImageBitmap(EventTarget&, ImageBitmap*, int sx, i nt sy, int sw, int sh, ExceptionState&); 73 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm ap*, int sx, int sy, int sw, int sh, ExceptionState&);
74 74
75 virtual ~ImageBitmapFactories() { } 75 virtual ~ImageBitmapFactories() { }
76 76
77 void trace(Visitor*); 77 void trace(Visitor*);
78 78
79 protected: 79 protected:
80 static const char* supplementName(); 80 static const char* supplementName();
81 81
82 private: 82 private:
83 class ImageBitmapLoader FINAL : public RefCountedWillBeGarbageCollectedFinal ized<ImageBitmapLoader>, public FileReaderLoaderClient { 83 class ImageBitmapLoader FINAL : public RefCountedWillBeGarbageCollectedFinal ized<ImageBitmapLoader>, public FileReaderLoaderClient {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 void addLoader(PassRefPtrWillBeRawPtr<ImageBitmapLoader>); 119 void addLoader(PassRefPtrWillBeRawPtr<ImageBitmapLoader>);
120 void didFinishLoading(ImageBitmapLoader*); 120 void didFinishLoading(ImageBitmapLoader*);
121 121
122 WillBeHeapHashSet<RefPtrWillBeMember<ImageBitmapLoader> > m_pendingLoaders; 122 WillBeHeapHashSet<RefPtrWillBeMember<ImageBitmapLoader> > m_pendingLoaders;
123 }; 123 };
124 124
125 } // namespace WebCore 125 } // namespace WebCore
126 126
127 #endif // ImageBitmapFactories_h 127 #endif // ImageBitmapFactories_h
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/modules/imagebitmap/ImageBitmapFactories.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698