Back to index

lightning-sunbird  0.9+nobinonly
nsIContentViewer.idl
Go to the documentation of this file.
00001 #include "nsISupports.idl"
00002 
00003 interface nsIDOMDocument;
00004 interface nsISHEntry;
00005 
00006 
00007 %{ C++
00008 class nsIWidget;
00009 class nsIDeviceContext;
00010 struct nsRect;
00011 %}
00012 
00013 [ptr] native nsIWidgetPtr(nsIWidget);
00014 [ptr] native nsIDeviceContextPtr(nsIDeviceContext);
00015 [ref] native nsRectRef(nsRect);
00016 
00017 [scriptable, uuid(6a7ddb40-8a9e-4576-8ad1-71c5641d8780)]
00018 interface nsIContentViewer : nsISupports
00019 {
00020 
00021   [noscript] void init(in nsIWidgetPtr aParentWidget,
00022                        in nsIDeviceContextPtr aDeviceContext,
00023                        [const] in nsRectRef aBounds);
00024 
00025   attribute nsISupports container;
00026 
00027   void loadStart(in nsISupports aDoc);
00028   void loadComplete(in unsigned long aStatus);
00029   boolean permitUnload();
00030   void pageHide(in boolean isUnload);
00031 
00053   void close(in nsISHEntry historyEntry);
00054   void destroy();
00055 
00056   void stop();
00057 
00058   attribute nsIDOMDocument DOMDocument;
00059 
00060   [noscript] void getBounds(in nsRectRef aBounds);
00061   [noscript] void setBounds([const] in nsRectRef aBounds);
00062 
00067   [noscript] attribute nsIContentViewer previousViewer;
00068 
00069   void move(in long aX, in long aY);
00070 
00071   void show();
00072   void hide();
00073 
00074   attribute boolean enableRendering;
00075 
00076   attribute boolean sticky;
00077 
00078   /*
00079    * This is called when the DOM window wants to be closed.  Returns true
00080    * if the window can close immediately.  Otherwise, returns false and will
00081    * close the DOM window as soon as practical.
00082    */
00083 
00084   boolean requestWindowClose();
00085 
00091   void open(in nsISupports aState);
00092 
00097   void clearHistoryEntry();
00098 };
00099 
00100 [scriptable, uuid(51341ed4-a3bf-4fd5-ae17-5fd3ec59dcab)]
00101 interface nsIContentViewer_MOZILLA_1_8_BRANCH : nsISupports
00102 {
00111   void openWithEntry(in nsISupports aState, in nsISHEntry aSHEntry);
00112 };
00113 
00114 [scriptable, uuid(ff091bb3-596f-4f28-9de7-96b03b05d984)]
00115 interface nsIContentViewer_MOZILLA_1_8_BRANCH2 : nsISupports
00116 {
00117 
00122   readonly attribute nsISHEntry historyEntry;
00123 };