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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void rejectPromise(); | 101 void rejectPromise(); |
102 | 102 |
103 // FileReaderLoaderClient | 103 // FileReaderLoaderClient |
104 virtual void didStartLoading() override { } | 104 virtual void didStartLoading() override { } |
105 virtual void didReceiveData() override { } | 105 virtual void didReceiveData() override { } |
106 virtual void didFinishLoading() override; | 106 virtual void didFinishLoading() override; |
107 virtual void didFail(FileError::ErrorCode) override; | 107 virtual void didFail(FileError::ErrorCode) override; |
108 | 108 |
109 FileReaderLoader m_loader; | 109 FileReaderLoader m_loader; |
110 RawPtrWillBeMember<ImageBitmapFactories> m_factory; | 110 RawPtrWillBeMember<ImageBitmapFactories> m_factory; |
111 RefPtr<ScriptPromiseResolver> m_resolver; | 111 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver; |
112 IntRect m_cropRect; | 112 IntRect m_cropRect; |
113 }; | 113 }; |
114 | 114 |
115 static ImageBitmapFactories& from(EventTarget&); | 115 static ImageBitmapFactories& from(EventTarget&); |
116 | 116 |
117 template<class GlobalObject> | 117 template<class GlobalObject> |
118 static ImageBitmapFactories& fromInternal(GlobalObject&); | 118 static ImageBitmapFactories& fromInternal(GlobalObject&); |
119 | 119 |
120 void addLoader(ImageBitmapLoader*); | 120 void addLoader(ImageBitmapLoader*); |
121 void didFinishLoading(ImageBitmapLoader*); | 121 void didFinishLoading(ImageBitmapLoader*); |
122 | 122 |
123 PersistentHeapHashSetWillBeHeapHashSet<Member<ImageBitmapLoader> > m_pending
Loaders; | 123 PersistentHeapHashSetWillBeHeapHashSet<Member<ImageBitmapLoader> > m_pending
Loaders; |
124 }; | 124 }; |
125 | 125 |
126 } // namespace blink | 126 } // namespace blink |
127 | 127 |
128 #endif // ImageBitmapFactories_h | 128 #endif // ImageBitmapFactories_h |
OLD | NEW |