Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef NSIIMAGETOPIXBUF_H_ |
michael@0 | 6 | #define NSIIMAGETOPIXBUF_H_ |
michael@0 | 7 | |
michael@0 | 8 | #include "nsISupports.h" |
michael@0 | 9 | |
michael@0 | 10 | // dfa4ac93-83f2-4ab8-9b2a-0ff7022aebe2 |
michael@0 | 11 | #define NSIIMAGETOPIXBUF_IID \ |
michael@0 | 12 | { 0xdfa4ac93, 0x83f2, 0x4ab8, \ |
michael@0 | 13 | { 0x9b, 0x2a, 0x0f, 0xf7, 0x02, 0x2a, 0xeb, 0xe2 } } |
michael@0 | 14 | |
michael@0 | 15 | class imgIContainer; |
michael@0 | 16 | typedef struct _GdkPixbuf GdkPixbuf; |
michael@0 | 17 | |
michael@0 | 18 | /** |
michael@0 | 19 | * An interface that allows converting the current frame of an imgIContainer to a GdkPixbuf*. |
michael@0 | 20 | */ |
michael@0 | 21 | class nsIImageToPixbuf : public nsISupports { |
michael@0 | 22 | public: |
michael@0 | 23 | NS_DECLARE_STATIC_IID_ACCESSOR(NSIIMAGETOPIXBUF_IID) |
michael@0 | 24 | |
michael@0 | 25 | /** |
michael@0 | 26 | * The return value, if not null, should be released as needed |
michael@0 | 27 | * by the caller using g_object_unref. |
michael@0 | 28 | */ |
michael@0 | 29 | NS_IMETHOD_(GdkPixbuf*) ConvertImageToPixbuf(imgIContainer* aImage) = 0; |
michael@0 | 30 | }; |
michael@0 | 31 | |
michael@0 | 32 | NS_DEFINE_STATIC_IID_ACCESSOR(nsIImageToPixbuf, NSIIMAGETOPIXBUF_IID) |
michael@0 | 33 | |
michael@0 | 34 | #endif |