Back to index

lightning-sunbird  0.9+nobinonly
imgIDecoderObserver.idl
Go to the documentation of this file.
00001 
00040 #include "imgIContainerObserver.idl"
00041 
00042 interface imgIRequest;
00043 interface imgIContainer;
00044 interface gfxIImageFrame;
00045 
00046 %{C++
00047 #include "nsRect.h"
00048 %}
00049 
00062 [scriptable, uuid(cce7152e-4395-4231-a781-c347c5446cc2)]
00063 interface imgIDecoderObserver : imgIContainerObserver
00064 {
00068   void onStartDecode(in imgIRequest aRequest);
00069 
00073   void onStartContainer(in imgIRequest aRequest, in imgIContainer aContainer);
00074 
00078   void onStartFrame(in imgIRequest aRequest, in gfxIImageFrame aFrame);
00079 
00083   [noscript] void onDataAvailable(in imgIRequest aRequest, in gfxIImageFrame aFrame, [const] in nsIntRect aRect);
00084 
00088   void onStopFrame(in imgIRequest aRequest, in gfxIImageFrame aFrame);
00089 
00093   void onStopContainer(in imgIRequest aRequest, in imgIContainer aContainer);
00094 
00098   void onStopDecode(in imgIRequest aRequest, in nsresult status,
00099                     in wstring statusArg);
00100 
00101 };
00102 
00103 [scriptable, uuid(d3ab9070-b5d2-410f-977d-36b1788de1e5)]
00104 interface imgIDecoderObserver_MOZILLA_1_8_BRANCH : nsISupports
00105 {
00114   void onStartRequest(in imgIRequest aRequest);
00115 
00124   void onStopRequest(in imgIRequest aRequest, in boolean aIsLastPart);
00125 };