Bug 1793629 - Implement attention indicator for the unified extensions button, r...
[gecko.git] / widget / android / ImageDecoderSupport.h
blobd38b3e7e1b454841f8c23b6b61dcc377bc896a38
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef ImageDecoderSupport_h__
6 #define ImageDecoderSupport_h__
8 #include "mozilla/java/ImageDecoderNatives.h"
10 class imgIContainerCallback;
12 namespace mozilla {
13 namespace widget {
15 class ImageDecoderSupport final
16 : public java::ImageDecoder::Natives<ImageDecoderSupport> {
17 public:
18 static void Decode(jni::String::Param aUri, int32_t aDesiredLength,
19 jni::Object::Param aResult);
21 private:
22 static nsresult DecodeInternal(const nsAString& aUri,
23 imgIContainerCallback* aCallback,
24 imgINotificationObserver* aObserver);
27 } // namespace widget
28 } // namespace mozilla
30 #endif // ImageDecoderSupport_h__