PageRenderTime 435ms CodeModel.GetById 149ms RepoModel.GetById 5ms 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. #ifndef __gen_nsIDOMWindow2_h__
  5. #define __gen_nsIDOMWindow2_h__
  6. #ifndef __gen_nsIDOMWindow_h__
  7. #include "nsIDOMWindow.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. class nsIDOMOfflineResourceList; /* forward declaration */
  14. /* starting interface: nsIDOMWindow2 */
  15. #define NS_IDOMWINDOW2_IID_STR "73c5fa35-3add-4c87-a303-a850ccf4d65a"
  16. #define NS_IDOMWINDOW2_IID \
  17. {0x73c5fa35, 0x3add, 0x4c87, \
  18. { 0xa3, 0x03, 0xa8, 0x50, 0xcc, 0xf4, 0xd6, 0x5a }}
  19. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMWindow2 : public nsIDOMWindow {
  20. public:
  21. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMWINDOW2_IID)
  22. /**
  23. * Get the window root for this window. This is useful for hooking
  24. * up event listeners to this window and every other window nested
  25. * in the window root.
  26. */
  27. /* [noscript] readonly attribute nsIDOMEventTarget windowRoot; */
  28. NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) = 0;
  29. /**
  30. * Get the application cache object for this window.
  31. */
  32. /* readonly attribute nsIDOMOfflineResourceList applicationCache; */
  33. NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache) = 0;
  34. };
  35. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMWindow2, NS_IDOMWINDOW2_IID)
  36. /* Use this macro when declaring classes that implement this interface. */
  37. #define NS_DECL_NSIDOMWINDOW2 \
  38. NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot); \
  39. NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache);
  40. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  41. #define NS_FORWARD_NSIDOMWINDOW2(_to) \
  42. NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) { return _to GetWindowRoot(aWindowRoot); } \
  43. NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache) { return _to GetApplicationCache(aApplicationCache); }
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  45. #define NS_FORWARD_SAFE_NSIDOMWINDOW2(_to) \
  46. NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowRoot(aWindowRoot); } \
  47. NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplicationCache(aApplicationCache); }
  48. #if 0
  49. /* Use the code below as a template for the implementation class for this interface. */
  50. /* Header file */
  51. class nsDOMWindow2 : public nsIDOMWindow2
  52. {
  53. public:
  54. NS_DECL_ISUPPORTS
  55. NS_DECL_NSIDOMWINDOW2
  56. nsDOMWindow2();
  57. private:
  58. ~nsDOMWindow2();
  59. protected:
  60. /* additional members */
  61. };
  62. /* Implementation file */
  63. NS_IMPL_ISUPPORTS1(nsDOMWindow2, nsIDOMWindow2)
  64. nsDOMWindow2::nsDOMWindow2()
  65. {
  66. /* member initializers and constructor code */
  67. }
  68. nsDOMWindow2::~nsDOMWindow2()
  69. {
  70. /* destructor code */
  71. }
  72. /* [noscript] readonly attribute nsIDOMEventTarget windowRoot; */
  73. NS_IMETHODIMP nsDOMWindow2::GetWindowRoot(nsIDOMEventTarget * *aWindowRoot)
  74. {
  75. return NS_ERROR_NOT_IMPLEMENTED;
  76. }
  77. /* readonly attribute nsIDOMOfflineResourceList applicationCache; */
  78. NS_IMETHODIMP nsDOMWindow2::GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache)
  79. {
  80. return NS_ERROR_NOT_IMPLEMENTED;
  81. }
  82. /* End of implementation class template. */
  83. #endif
  84. #endif /* __gen_nsIDOMWindow2_h__ */