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

Side by Side Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.h

Issue 1853743005: Oilpan: Remove WillBe types (part 13) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class EventTarget; 48 class EventTarget;
49 class ExceptionState; 49 class ExceptionState;
50 class ExecutionContext; 50 class ExecutionContext;
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 NoBaseWillBeGarbageCollectedFinalized< ImageBitmapFactories>, public WillBeHeapSupplement<LocalDOMWindow>, public WillB eHeapSupplement<WorkerGlobalScope> { 58 class ImageBitmapFactories final : public GarbageCollectedFinalized<ImageBitmapF actories>, public HeapSupplement<LocalDOMWindow>, public HeapSupplement<WorkerGl obalScope> {
59 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories); 59 USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories);
60 USING_FAST_MALLOC_WILL_BE_REMOVED(ImageBitmapFactories);
61
62 public: 60 public:
63 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima geBitmapSourceUnion&, ExceptionState&); 61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima geBitmapSourceUnion&, ExceptionState&);
64 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima geBitmapSourceUnion&, const ImageBitmapOptions&, ExceptionState&); 62 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima geBitmapSourceUnion&, const ImageBitmapOptions&, ExceptionState&);
65 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima geBitmapSourceUnion&, int sx, int sy, int sw, int sh, ExceptionState&); 63 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima geBitmapSourceUnion&, int sx, int sy, int sw, int sh, ExceptionState&);
66 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima geBitmapSourceUnion&, int sx, int sy, int sw, int sh, const ImageBitmapOptions&, ExceptionState&); 64 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, const Ima geBitmapSourceUnion&, int sx, int sy, int sw, int sh, const ImageBitmapOptions&, ExceptionState&);
67 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm apSource*, int sx, int sy, int sw, int sh, const ImageBitmapOptions&, ExceptionS tate&); 65 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm apSource*, int sx, int sy, int sw, int sh, const ImageBitmapOptions&, ExceptionS tate&);
68 66
69 virtual ~ImageBitmapFactories() { } 67 virtual ~ImageBitmapFactories() { }
70 68
71 DECLARE_TRACE(); 69 DECLARE_TRACE();
(...skipping 25 matching lines...) Expand all
97 void decodeImageOnDecoderThread(WebTaskRunner*); 95 void decodeImageOnDecoderThread(WebTaskRunner*);
98 void resolvePromiseOnOriginalThread(PassRefPtr<SkImage>); 96 void resolvePromiseOnOriginalThread(PassRefPtr<SkImage>);
99 97
100 // FileReaderLoaderClient 98 // FileReaderLoaderClient
101 void didStartLoading() override { } 99 void didStartLoading() override { }
102 void didReceiveData() override { } 100 void didReceiveData() override { }
103 void didFinishLoading() override; 101 void didFinishLoading() override;
104 void didFail(FileError::ErrorCode) override; 102 void didFail(FileError::ErrorCode) override;
105 103
106 FileReaderLoader m_loader; 104 FileReaderLoader m_loader;
107 RawPtrWillBeMember<ImageBitmapFactories> m_factory; 105 Member<ImageBitmapFactories> m_factory;
108 Member<ScriptPromiseResolver> m_resolver; 106 Member<ScriptPromiseResolver> m_resolver;
109 IntRect m_cropRect; 107 IntRect m_cropRect;
110 ImageBitmapOptions m_options; 108 ImageBitmapOptions m_options;
111 }; 109 };
112 110
113 static ImageBitmapFactories& from(EventTarget&); 111 static ImageBitmapFactories& from(EventTarget&);
114 112
115 template<class GlobalObject> 113 template<class GlobalObject>
116 static ImageBitmapFactories& fromInternal(GlobalObject&); 114 static ImageBitmapFactories& fromInternal(GlobalObject&);
117 115
118 void addLoader(ImageBitmapLoader*); 116 void addLoader(ImageBitmapLoader*);
119 void didFinishLoading(ImageBitmapLoader*); 117 void didFinishLoading(ImageBitmapLoader*);
120 118
121 PersistentHeapHashSetWillBeHeapHashSet<Member<ImageBitmapLoader>> m_pendingL oaders; 119 HeapHashSet<Member<ImageBitmapLoader>> m_pendingLoaders;
122 }; 120 };
123 121
124 } // namespace blink 122 } // namespace blink
125 123
126 #endif // ImageBitmapFactories_h 124 #endif // ImageBitmapFactories_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698