PageRenderTime 85ms CodeModel.GetById 22ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMWindow2.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 113 lines | 57 code | 29 blank | 27 comment | 0 complexity | 8052d690aff51121c9e3ef8178d56e5e MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/base/nsIDOMWindow2.idl
  3 */
  4
  5#ifndef __gen_nsIDOMWindow2_h__
  6#define __gen_nsIDOMWindow2_h__
  7
  8
  9#ifndef __gen_nsIDOMWindow_h__
 10#include "nsIDOMWindow.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
 17class nsIDOMOfflineResourceList; /* forward declaration */
 18
 19
 20/* starting interface:    nsIDOMWindow2 */
 21#define NS_IDOMWINDOW2_IID_STR "73c5fa35-3add-4c87-a303-a850ccf4d65a"
 22
 23#define NS_IDOMWINDOW2_IID \
 24  {0x73c5fa35, 0x3add, 0x4c87, \
 25    { 0xa3, 0x03, 0xa8, 0x50, 0xcc, 0xf4, 0xd6, 0x5a }}
 26
 27class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMWindow2 : public nsIDOMWindow {
 28 public: 
 29
 30  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMWINDOW2_IID)
 31
 32  /**
 33   * Get the window root for this window. This is useful for hooking
 34   * up event listeners to this window and every other window nested
 35   * in the window root.
 36   */
 37  /* [noscript] readonly attribute nsIDOMEventTarget windowRoot; */
 38  NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) = 0;
 39
 40  /**
 41   * Get the application cache object for this window.
 42   */
 43  /* readonly attribute nsIDOMOfflineResourceList applicationCache; */
 44  NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache) = 0;
 45
 46};
 47
 48  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMWindow2, NS_IDOMWINDOW2_IID)
 49
 50/* Use this macro when declaring classes that implement this interface. */
 51#define NS_DECL_NSIDOMWINDOW2 \
 52  NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot); \
 53  NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache); 
 54
 55/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 56#define NS_FORWARD_NSIDOMWINDOW2(_to) \
 57  NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) { return _to GetWindowRoot(aWindowRoot); } \
 58  NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache) { return _to GetApplicationCache(aApplicationCache); } 
 59
 60/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 61#define NS_FORWARD_SAFE_NSIDOMWINDOW2(_to) \
 62  NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowRoot(aWindowRoot); } \
 63  NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplicationCache(aApplicationCache); } 
 64
 65#if 0
 66/* Use the code below as a template for the implementation class for this interface. */
 67
 68/* Header file */
 69class nsDOMWindow2 : public nsIDOMWindow2
 70{
 71public:
 72  NS_DECL_ISUPPORTS
 73  NS_DECL_NSIDOMWINDOW2
 74
 75  nsDOMWindow2();
 76
 77private:
 78  ~nsDOMWindow2();
 79
 80protected:
 81  /* additional members */
 82};
 83
 84/* Implementation file */
 85NS_IMPL_ISUPPORTS1(nsDOMWindow2, nsIDOMWindow2)
 86
 87nsDOMWindow2::nsDOMWindow2()
 88{
 89  /* member initializers and constructor code */
 90}
 91
 92nsDOMWindow2::~nsDOMWindow2()
 93{
 94  /* destructor code */
 95}
 96
 97/* [noscript] readonly attribute nsIDOMEventTarget windowRoot; */
 98NS_IMETHODIMP nsDOMWindow2::GetWindowRoot(nsIDOMEventTarget * *aWindowRoot)
 99{
100    return NS_ERROR_NOT_IMPLEMENTED;
101}
102
103/* readonly attribute nsIDOMOfflineResourceList applicationCache; */
104NS_IMETHODIMP nsDOMWindow2::GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache)
105{
106    return NS_ERROR_NOT_IMPLEMENTED;
107}
108
109/* End of implementation class template. */
110#endif
111
112
113#endif /* __gen_nsIDOMWindow2_h__ */