LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDOMChromeWindow.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMChromeWindow.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDOMChromeWindow_h__
       6                 : #define __gen_nsIDOMChromeWindow_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_domstubs_h__
      10                 : #include "domstubs.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : class nsIBrowserDOMWindow; /* forward declaration */
      18                 : 
      19                 : class nsIDOMElement; /* forward declaration */
      20                 : 
      21                 : class nsIDOMEvent; /* forward declaration */
      22                 : 
      23                 : class nsIChromeFrameMessageManager; /* forward declaration */
      24                 : 
      25                 : 
      26                 : /* starting interface:    nsIDOMChromeWindow */
      27                 : #define NS_IDOMCHROMEWINDOW_IID_STR "7cfbc355-cbf9-4408-8e4c-a3c603ff1428"
      28                 : 
      29                 : #define NS_IDOMCHROMEWINDOW_IID \
      30                 :   {0x7cfbc355, 0xcbf9, 0x4408, \
      31                 :     { 0x8e, 0x4c, 0xa3, 0xc6, 0x03, 0xff, 0x14, 0x28 }}
      32                 : 
      33               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMChromeWindow : public nsISupports {
      34                 :  public: 
      35                 : 
      36                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCHROMEWINDOW_IID)
      37                 : 
      38                 :   enum {
      39                 :     STATE_MAXIMIZED = 1U,
      40                 :     STATE_MINIMIZED = 2U,
      41                 :     STATE_NORMAL = 3U,
      42                 :     STATE_FULLSCREEN = 4U
      43                 :   };
      44                 : 
      45                 :   /* readonly attribute unsigned short windowState; */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowState(PRUint16 *aWindowState) = 0;
      47                 : 
      48                 :   /* attribute nsIBrowserDOMWindow browserDOMWindow; */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetBrowserDOMWindow(nsIBrowserDOMWindow * *aBrowserDOMWindow) = 0;
      50                 :   NS_SCRIPTABLE NS_IMETHOD SetBrowserDOMWindow(nsIBrowserDOMWindow *aBrowserDOMWindow) = 0;
      51                 : 
      52                 :   /* void getAttention (); */
      53                 :   NS_SCRIPTABLE NS_IMETHOD GetAttention(void) = 0;
      54                 : 
      55                 :   /* void getAttentionWithCycleCount (in long aCycleCount); */
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetAttentionWithCycleCount(PRInt32 aCycleCount) = 0;
      57                 : 
      58                 :   /* void setCursor (in DOMString cursor); */
      59                 :   NS_SCRIPTABLE NS_IMETHOD SetCursor(const nsAString & cursor) = 0;
      60                 : 
      61                 :   /* void maximize (); */
      62                 :   NS_SCRIPTABLE NS_IMETHOD Maximize(void) = 0;
      63                 : 
      64                 :   /* void minimize (); */
      65                 :   NS_SCRIPTABLE NS_IMETHOD Minimize(void) = 0;
      66                 : 
      67                 :   /* void restore (); */
      68                 :   NS_SCRIPTABLE NS_IMETHOD Restore(void) = 0;
      69                 : 
      70                 :   /* void notifyDefaultButtonLoaded (in nsIDOMElement defaultButton); */
      71                 :   NS_SCRIPTABLE NS_IMETHOD NotifyDefaultButtonLoaded(nsIDOMElement *defaultButton) = 0;
      72                 : 
      73                 :   /* readonly attribute nsIChromeFrameMessageManager messageManager; */
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetMessageManager(nsIChromeFrameMessageManager * *aMessageManager) = 0;
      75                 : 
      76                 :   /* void beginWindowMove (in nsIDOMEvent mouseDownEvent, [optional] in nsIDOMElement panel); */
      77                 :   NS_SCRIPTABLE NS_IMETHOD BeginWindowMove(nsIDOMEvent *mouseDownEvent, nsIDOMElement *panel) = 0;
      78                 : 
      79                 : };
      80                 : 
      81                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMChromeWindow, NS_IDOMCHROMEWINDOW_IID)
      82                 : 
      83                 : /* Use this macro when declaring classes that implement this interface. */
      84                 : #define NS_DECL_NSIDOMCHROMEWINDOW \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowState(PRUint16 *aWindowState); \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetBrowserDOMWindow(nsIBrowserDOMWindow * *aBrowserDOMWindow); \
      87                 :   NS_SCRIPTABLE NS_IMETHOD SetBrowserDOMWindow(nsIBrowserDOMWindow *aBrowserDOMWindow); \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetAttention(void); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetAttentionWithCycleCount(PRInt32 aCycleCount); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD SetCursor(const nsAString & cursor); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD Maximize(void); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD Minimize(void); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD Restore(void); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD NotifyDefaultButtonLoaded(nsIDOMElement *defaultButton); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetMessageManager(nsIChromeFrameMessageManager * *aMessageManager); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD BeginWindowMove(nsIDOMEvent *mouseDownEvent, nsIDOMElement *panel); 
      97                 : 
      98                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      99                 : #define NS_FORWARD_NSIDOMCHROMEWINDOW(_to) \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowState(PRUint16 *aWindowState) { return _to GetWindowState(aWindowState); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetBrowserDOMWindow(nsIBrowserDOMWindow * *aBrowserDOMWindow) { return _to GetBrowserDOMWindow(aBrowserDOMWindow); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD SetBrowserDOMWindow(nsIBrowserDOMWindow *aBrowserDOMWindow) { return _to SetBrowserDOMWindow(aBrowserDOMWindow); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetAttention(void) { return _to GetAttention(); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetAttentionWithCycleCount(PRInt32 aCycleCount) { return _to GetAttentionWithCycleCount(aCycleCount); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD SetCursor(const nsAString & cursor) { return _to SetCursor(cursor); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD Maximize(void) { return _to Maximize(); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD Minimize(void) { return _to Minimize(); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD Restore(void) { return _to Restore(); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD NotifyDefaultButtonLoaded(nsIDOMElement *defaultButton) { return _to NotifyDefaultButtonLoaded(defaultButton); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetMessageManager(nsIChromeFrameMessageManager * *aMessageManager) { return _to GetMessageManager(aMessageManager); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD BeginWindowMove(nsIDOMEvent *mouseDownEvent, nsIDOMElement *panel) { return _to BeginWindowMove(mouseDownEvent, panel); } 
     112                 : 
     113                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     114                 : #define NS_FORWARD_SAFE_NSIDOMCHROMEWINDOW(_to) \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowState(PRUint16 *aWindowState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowState(aWindowState); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetBrowserDOMWindow(nsIBrowserDOMWindow * *aBrowserDOMWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBrowserDOMWindow(aBrowserDOMWindow); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD SetBrowserDOMWindow(nsIBrowserDOMWindow *aBrowserDOMWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBrowserDOMWindow(aBrowserDOMWindow); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetAttention(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttention(); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetAttentionWithCycleCount(PRInt32 aCycleCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttentionWithCycleCount(aCycleCount); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD SetCursor(const nsAString & cursor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCursor(cursor); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD Maximize(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Maximize(); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD Minimize(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Minimize(); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD Restore(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Restore(); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD NotifyDefaultButtonLoaded(nsIDOMElement *defaultButton) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDefaultButtonLoaded(defaultButton); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD GetMessageManager(nsIChromeFrameMessageManager * *aMessageManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageManager(aMessageManager); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD BeginWindowMove(nsIDOMEvent *mouseDownEvent, nsIDOMElement *panel) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginWindowMove(mouseDownEvent, panel); } 
     127                 : 
     128                 : #if 0
     129                 : /* Use the code below as a template for the implementation class for this interface. */
     130                 : 
     131                 : /* Header file */
     132                 : class nsDOMChromeWindow : public nsIDOMChromeWindow
     133                 : {
     134                 : public:
     135                 :   NS_DECL_ISUPPORTS
     136                 :   NS_DECL_NSIDOMCHROMEWINDOW
     137                 : 
     138                 :   nsDOMChromeWindow();
     139                 : 
     140                 : private:
     141                 :   ~nsDOMChromeWindow();
     142                 : 
     143                 : protected:
     144                 :   /* additional members */
     145                 : };
     146                 : 
     147                 : /* Implementation file */
     148                 : NS_IMPL_ISUPPORTS1(nsDOMChromeWindow, nsIDOMChromeWindow)
     149                 : 
     150                 : nsDOMChromeWindow::nsDOMChromeWindow()
     151                 : {
     152                 :   /* member initializers and constructor code */
     153                 : }
     154                 : 
     155                 : nsDOMChromeWindow::~nsDOMChromeWindow()
     156                 : {
     157                 :   /* destructor code */
     158                 : }
     159                 : 
     160                 : /* readonly attribute unsigned short windowState; */
     161                 : NS_IMETHODIMP nsDOMChromeWindow::GetWindowState(PRUint16 *aWindowState)
     162                 : {
     163                 :     return NS_ERROR_NOT_IMPLEMENTED;
     164                 : }
     165                 : 
     166                 : /* attribute nsIBrowserDOMWindow browserDOMWindow; */
     167                 : NS_IMETHODIMP nsDOMChromeWindow::GetBrowserDOMWindow(nsIBrowserDOMWindow * *aBrowserDOMWindow)
     168                 : {
     169                 :     return NS_ERROR_NOT_IMPLEMENTED;
     170                 : }
     171                 : NS_IMETHODIMP nsDOMChromeWindow::SetBrowserDOMWindow(nsIBrowserDOMWindow *aBrowserDOMWindow)
     172                 : {
     173                 :     return NS_ERROR_NOT_IMPLEMENTED;
     174                 : }
     175                 : 
     176                 : /* void getAttention (); */
     177                 : NS_IMETHODIMP nsDOMChromeWindow::GetAttention()
     178                 : {
     179                 :     return NS_ERROR_NOT_IMPLEMENTED;
     180                 : }
     181                 : 
     182                 : /* void getAttentionWithCycleCount (in long aCycleCount); */
     183                 : NS_IMETHODIMP nsDOMChromeWindow::GetAttentionWithCycleCount(PRInt32 aCycleCount)
     184                 : {
     185                 :     return NS_ERROR_NOT_IMPLEMENTED;
     186                 : }
     187                 : 
     188                 : /* void setCursor (in DOMString cursor); */
     189                 : NS_IMETHODIMP nsDOMChromeWindow::SetCursor(const nsAString & cursor)
     190                 : {
     191                 :     return NS_ERROR_NOT_IMPLEMENTED;
     192                 : }
     193                 : 
     194                 : /* void maximize (); */
     195                 : NS_IMETHODIMP nsDOMChromeWindow::Maximize()
     196                 : {
     197                 :     return NS_ERROR_NOT_IMPLEMENTED;
     198                 : }
     199                 : 
     200                 : /* void minimize (); */
     201                 : NS_IMETHODIMP nsDOMChromeWindow::Minimize()
     202                 : {
     203                 :     return NS_ERROR_NOT_IMPLEMENTED;
     204                 : }
     205                 : 
     206                 : /* void restore (); */
     207                 : NS_IMETHODIMP nsDOMChromeWindow::Restore()
     208                 : {
     209                 :     return NS_ERROR_NOT_IMPLEMENTED;
     210                 : }
     211                 : 
     212                 : /* void notifyDefaultButtonLoaded (in nsIDOMElement defaultButton); */
     213                 : NS_IMETHODIMP nsDOMChromeWindow::NotifyDefaultButtonLoaded(nsIDOMElement *defaultButton)
     214                 : {
     215                 :     return NS_ERROR_NOT_IMPLEMENTED;
     216                 : }
     217                 : 
     218                 : /* readonly attribute nsIChromeFrameMessageManager messageManager; */
     219                 : NS_IMETHODIMP nsDOMChromeWindow::GetMessageManager(nsIChromeFrameMessageManager * *aMessageManager)
     220                 : {
     221                 :     return NS_ERROR_NOT_IMPLEMENTED;
     222                 : }
     223                 : 
     224                 : /* void beginWindowMove (in nsIDOMEvent mouseDownEvent, [optional] in nsIDOMElement panel); */
     225                 : NS_IMETHODIMP nsDOMChromeWindow::BeginWindowMove(nsIDOMEvent *mouseDownEvent, nsIDOMElement *panel)
     226                 : {
     227                 :     return NS_ERROR_NOT_IMPLEMENTED;
     228                 : }
     229                 : 
     230                 : /* End of implementation class template. */
     231                 : #endif
     232                 : 
     233                 : 
     234                 : #endif /* __gen_nsIDOMChromeWindow_h__ */

Generated by: LCOV version 1.7