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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/components/windowwatcher/public/nsIWindowWatcher.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIWindowWatcher_h__
       6                 : #define __gen_nsIWindowWatcher_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.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 nsIDOMWindow; /* forward declaration */
      18                 : 
      19                 : class nsIObserver; /* forward declaration */
      20                 : 
      21                 : class nsIPrompt; /* forward declaration */
      22                 : 
      23                 : class nsIAuthPrompt; /* forward declaration */
      24                 : 
      25                 : class nsISimpleEnumerator; /* forward declaration */
      26                 : 
      27                 : class nsIWebBrowserChrome; /* forward declaration */
      28                 : 
      29                 : class nsIWindowCreator; /* forward declaration */
      30                 : 
      31                 : 
      32                 : /* starting interface:    nsIWindowWatcher */
      33                 : #define NS_IWINDOWWATCHER_IID_STR "002286a8-494b-43b3-8ddd-49e3fc50622b"
      34                 : 
      35                 : #define NS_IWINDOWWATCHER_IID \
      36                 :   {0x002286a8, 0x494b, 0x43b3, \
      37                 :     { 0x8d, 0xdd, 0x49, 0xe3, 0xfc, 0x50, 0x62, 0x2b }}
      38                 : 
      39             103 : class NS_NO_VTABLE NS_SCRIPTABLE nsIWindowWatcher : public nsISupports {
      40                 :  public: 
      41                 : 
      42                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWWATCHER_IID)
      43                 : 
      44                 :   /* nsIDOMWindow openWindow (in nsIDOMWindow aParent, in string aUrl, in string aName, in string aFeatures, in nsISupports aArguments); */
      45                 :   NS_SCRIPTABLE NS_IMETHOD OpenWindow(nsIDOMWindow *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, nsIDOMWindow * *_retval NS_OUTPARAM) = 0;
      46                 : 
      47                 :   /* void registerNotification (in nsIObserver aObserver); */
      48                 :   NS_SCRIPTABLE NS_IMETHOD RegisterNotification(nsIObserver *aObserver) = 0;
      49                 : 
      50                 :   /* void unregisterNotification (in nsIObserver aObserver); */
      51                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterNotification(nsIObserver *aObserver) = 0;
      52                 : 
      53                 :   /* nsISimpleEnumerator getWindowEnumerator (); */
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
      55                 : 
      56                 :   /* nsIPrompt getNewPrompter (in nsIDOMWindow aParent); */
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt * *_retval NS_OUTPARAM) = 0;
      58                 : 
      59                 :   /* nsIAuthPrompt getNewAuthPrompter (in nsIDOMWindow aParent); */
      60                 :   NS_SCRIPTABLE NS_IMETHOD GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt * *_retval NS_OUTPARAM) = 0;
      61                 : 
      62                 :   /* void setWindowCreator (in nsIWindowCreator creator); */
      63                 :   NS_SCRIPTABLE NS_IMETHOD SetWindowCreator(nsIWindowCreator *creator) = 0;
      64                 : 
      65                 :   /* nsIWebBrowserChrome getChromeForWindow (in nsIDOMWindow aWindow); */
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome * *_retval NS_OUTPARAM) = 0;
      67                 : 
      68                 :   /* nsIDOMWindow getWindowByName (in wstring aTargetName, in nsIDOMWindow aCurrentWindow); */
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowByName(const PRUnichar * aTargetName, nsIDOMWindow *aCurrentWindow, nsIDOMWindow * *_retval NS_OUTPARAM) = 0;
      70                 : 
      71                 :   /* attribute nsIDOMWindow activeWindow; */
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetActiveWindow(nsIDOMWindow * *aActiveWindow) = 0;
      73                 :   NS_SCRIPTABLE NS_IMETHOD SetActiveWindow(nsIDOMWindow *aActiveWindow) = 0;
      74                 : 
      75                 : };
      76                 : 
      77                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWindowWatcher, NS_IWINDOWWATCHER_IID)
      78                 : 
      79                 : /* Use this macro when declaring classes that implement this interface. */
      80                 : #define NS_DECL_NSIWINDOWWATCHER \
      81                 :   NS_SCRIPTABLE NS_IMETHOD OpenWindow(nsIDOMWindow *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, nsIDOMWindow * *_retval NS_OUTPARAM); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD RegisterNotification(nsIObserver *aObserver); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterNotification(nsIObserver *aObserver); \
      84                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt * *_retval NS_OUTPARAM); \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt * *_retval NS_OUTPARAM); \
      87                 :   NS_SCRIPTABLE NS_IMETHOD SetWindowCreator(nsIWindowCreator *creator); \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome * *_retval NS_OUTPARAM); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowByName(const PRUnichar * aTargetName, nsIDOMWindow *aCurrentWindow, nsIDOMWindow * *_retval NS_OUTPARAM); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetActiveWindow(nsIDOMWindow * *aActiveWindow); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD SetActiveWindow(nsIDOMWindow *aActiveWindow); 
      92                 : 
      93                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      94                 : #define NS_FORWARD_NSIWINDOWWATCHER(_to) \
      95                 :   NS_SCRIPTABLE NS_IMETHOD OpenWindow(nsIDOMWindow *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, nsIDOMWindow * *_retval NS_OUTPARAM) { return _to OpenWindow(aParent, aUrl, aName, aFeatures, aArguments, _retval); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD RegisterNotification(nsIObserver *aObserver) { return _to RegisterNotification(aObserver); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterNotification(nsIObserver *aObserver) { return _to UnregisterNotification(aObserver); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetWindowEnumerator(_retval); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt * *_retval NS_OUTPARAM) { return _to GetNewPrompter(aParent, _retval); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt * *_retval NS_OUTPARAM) { return _to GetNewAuthPrompter(aParent, _retval); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD SetWindowCreator(nsIWindowCreator *creator) { return _to SetWindowCreator(creator); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome * *_retval NS_OUTPARAM) { return _to GetChromeForWindow(aWindow, _retval); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowByName(const PRUnichar * aTargetName, nsIDOMWindow *aCurrentWindow, nsIDOMWindow * *_retval NS_OUTPARAM) { return _to GetWindowByName(aTargetName, aCurrentWindow, _retval); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetActiveWindow(nsIDOMWindow * *aActiveWindow) { return _to GetActiveWindow(aActiveWindow); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD SetActiveWindow(nsIDOMWindow *aActiveWindow) { return _to SetActiveWindow(aActiveWindow); } 
     106                 : 
     107                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     108                 : #define NS_FORWARD_SAFE_NSIWINDOWWATCHER(_to) \
     109                 :   NS_SCRIPTABLE NS_IMETHOD OpenWindow(nsIDOMWindow *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, nsIDOMWindow * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenWindow(aParent, aUrl, aName, aFeatures, aArguments, _retval); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD RegisterNotification(nsIObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterNotification(aObserver); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterNotification(nsIObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterNotification(aObserver); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowEnumerator(_retval); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewPrompter(aParent, _retval); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewAuthPrompter(aParent, _retval); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD SetWindowCreator(nsIWindowCreator *creator) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWindowCreator(creator); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChromeForWindow(aWindow, _retval); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowByName(const PRUnichar * aTargetName, nsIDOMWindow *aCurrentWindow, nsIDOMWindow * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowByName(aTargetName, aCurrentWindow, _retval); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetActiveWindow(nsIDOMWindow * *aActiveWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveWindow(aActiveWindow); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD SetActiveWindow(nsIDOMWindow *aActiveWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActiveWindow(aActiveWindow); } 
     120                 : 
     121                 : #if 0
     122                 : /* Use the code below as a template for the implementation class for this interface. */
     123                 : 
     124                 : /* Header file */
     125                 : class nsWindowWatcher : public nsIWindowWatcher
     126                 : {
     127                 : public:
     128                 :   NS_DECL_ISUPPORTS
     129                 :   NS_DECL_NSIWINDOWWATCHER
     130                 : 
     131                 :   nsWindowWatcher();
     132                 : 
     133                 : private:
     134                 :   ~nsWindowWatcher();
     135                 : 
     136                 : protected:
     137                 :   /* additional members */
     138                 : };
     139                 : 
     140                 : /* Implementation file */
     141                 : NS_IMPL_ISUPPORTS1(nsWindowWatcher, nsIWindowWatcher)
     142                 : 
     143                 : nsWindowWatcher::nsWindowWatcher()
     144                 : {
     145                 :   /* member initializers and constructor code */
     146                 : }
     147                 : 
     148                 : nsWindowWatcher::~nsWindowWatcher()
     149                 : {
     150                 :   /* destructor code */
     151                 : }
     152                 : 
     153                 : /* nsIDOMWindow openWindow (in nsIDOMWindow aParent, in string aUrl, in string aName, in string aFeatures, in nsISupports aArguments); */
     154                 : NS_IMETHODIMP nsWindowWatcher::OpenWindow(nsIDOMWindow *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, nsIDOMWindow * *_retval NS_OUTPARAM)
     155                 : {
     156                 :     return NS_ERROR_NOT_IMPLEMENTED;
     157                 : }
     158                 : 
     159                 : /* void registerNotification (in nsIObserver aObserver); */
     160                 : NS_IMETHODIMP nsWindowWatcher::RegisterNotification(nsIObserver *aObserver)
     161                 : {
     162                 :     return NS_ERROR_NOT_IMPLEMENTED;
     163                 : }
     164                 : 
     165                 : /* void unregisterNotification (in nsIObserver aObserver); */
     166                 : NS_IMETHODIMP nsWindowWatcher::UnregisterNotification(nsIObserver *aObserver)
     167                 : {
     168                 :     return NS_ERROR_NOT_IMPLEMENTED;
     169                 : }
     170                 : 
     171                 : /* nsISimpleEnumerator getWindowEnumerator (); */
     172                 : NS_IMETHODIMP nsWindowWatcher::GetWindowEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM)
     173                 : {
     174                 :     return NS_ERROR_NOT_IMPLEMENTED;
     175                 : }
     176                 : 
     177                 : /* nsIPrompt getNewPrompter (in nsIDOMWindow aParent); */
     178                 : NS_IMETHODIMP nsWindowWatcher::GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt * *_retval NS_OUTPARAM)
     179                 : {
     180                 :     return NS_ERROR_NOT_IMPLEMENTED;
     181                 : }
     182                 : 
     183                 : /* nsIAuthPrompt getNewAuthPrompter (in nsIDOMWindow aParent); */
     184                 : NS_IMETHODIMP nsWindowWatcher::GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt * *_retval NS_OUTPARAM)
     185                 : {
     186                 :     return NS_ERROR_NOT_IMPLEMENTED;
     187                 : }
     188                 : 
     189                 : /* void setWindowCreator (in nsIWindowCreator creator); */
     190                 : NS_IMETHODIMP nsWindowWatcher::SetWindowCreator(nsIWindowCreator *creator)
     191                 : {
     192                 :     return NS_ERROR_NOT_IMPLEMENTED;
     193                 : }
     194                 : 
     195                 : /* nsIWebBrowserChrome getChromeForWindow (in nsIDOMWindow aWindow); */
     196                 : NS_IMETHODIMP nsWindowWatcher::GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome * *_retval NS_OUTPARAM)
     197                 : {
     198                 :     return NS_ERROR_NOT_IMPLEMENTED;
     199                 : }
     200                 : 
     201                 : /* nsIDOMWindow getWindowByName (in wstring aTargetName, in nsIDOMWindow aCurrentWindow); */
     202                 : NS_IMETHODIMP nsWindowWatcher::GetWindowByName(const PRUnichar * aTargetName, nsIDOMWindow *aCurrentWindow, nsIDOMWindow * *_retval NS_OUTPARAM)
     203                 : {
     204                 :     return NS_ERROR_NOT_IMPLEMENTED;
     205                 : }
     206                 : 
     207                 : /* attribute nsIDOMWindow activeWindow; */
     208                 : NS_IMETHODIMP nsWindowWatcher::GetActiveWindow(nsIDOMWindow * *aActiveWindow)
     209                 : {
     210                 :     return NS_ERROR_NOT_IMPLEMENTED;
     211                 : }
     212                 : NS_IMETHODIMP nsWindowWatcher::SetActiveWindow(nsIDOMWindow *aActiveWindow)
     213                 : {
     214                 :     return NS_ERROR_NOT_IMPLEMENTED;
     215                 : }
     216                 : 
     217                 : /* End of implementation class template. */
     218                 : #endif
     219                 : 
     220                 : // {002286a8-494b-43b3-8ddd-49e3fc50622b}
     221                 : #define NS_WINDOWWATCHER_IID \
     222                 :  {0x002286a8, 0x494b, 0x43b3, {0x8d, 0xdd, 0x49, 0xe3, 0xfc, 0x50, 0x62, 0x2b}}
     223                 : #define NS_WINDOWWATCHER_CONTRACTID "@mozilla.org/embedcomp/window-watcher;1"
     224                 : 
     225                 : #endif /* __gen_nsIWindowWatcher_h__ */

Generated by: LCOV version 1.7