PageRenderTime 32ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMStorageEvent.h

http://firefox-mac-pdf.googlecode.com/
C Header | 136 lines | 67 code | 31 blank | 38 comment | 0 complexity | d886d4ff345fc317297e3ecf9ab98204 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/storage/nsIDOMStorageEvent.idl
  3. */
  4. #ifndef __gen_nsIDOMStorageEvent_h__
  5. #define __gen_nsIDOMStorageEvent_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.h"
  8. #endif
  9. #ifndef __gen_nsIDOMEvent_h__
  10. #include "nsIDOMEvent.h"
  11. #endif
  12. /* For IDL files that don't want to include root IDL files. */
  13. #ifndef NS_NO_VTABLE
  14. #define NS_NO_VTABLE
  15. #endif
  16. /* starting interface: nsIDOMStorageEvent */
  17. #define NS_IDOMSTORAGEEVENT_IID_STR "fc540c28-8edd-4b7a-9c30-8638289b7a7d"
  18. #define NS_IDOMSTORAGEEVENT_IID \
  19. {0xfc540c28, 0x8edd, 0x4b7a, \
  20. { 0x9c, 0x30, 0x86, 0x38, 0x28, 0x9b, 0x7a, 0x7d }}
  21. /**
  22. * Interface for a client side storage. See
  23. * http://www.whatwg.org/specs/web-apps/current-work/#scs-client-side
  24. * for more information.
  25. *
  26. * Event sent to a window when a storage area changes.
  27. */
  28. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStorageEvent : public nsIDOMEvent {
  29. public:
  30. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGEEVENT_IID)
  31. /**
  32. * Domain of the storage area which changed, or #session for
  33. * session storage.
  34. */
  35. /* readonly attribute DOMString domain; */
  36. NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain) = 0;
  37. /**
  38. * Initialize a storage event.
  39. */
  40. /* void initStorageEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString domainArg); */
  41. NS_SCRIPTABLE NS_IMETHOD InitStorageEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, const nsAString & domainArg) = 0;
  42. /**
  43. * Initialize a storage event.
  44. */
  45. /* void initStorageEventNS (in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString domainArg); */
  46. NS_SCRIPTABLE NS_IMETHOD InitStorageEventNS(const nsAString & namespaceURIArg, const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, const nsAString & domainArg) = 0;
  47. };
  48. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageEvent, NS_IDOMSTORAGEEVENT_IID)
  49. /* Use this macro when declaring classes that implement this interface. */
  50. #define NS_DECL_NSIDOMSTORAGEEVENT \
  51. NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain); \
  52. NS_SCRIPTABLE NS_IMETHOD InitStorageEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, const nsAString & domainArg); \
  53. NS_SCRIPTABLE NS_IMETHOD InitStorageEventNS(const nsAString & namespaceURIArg, const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, const nsAString & domainArg);
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  55. #define NS_FORWARD_NSIDOMSTORAGEEVENT(_to) \
  56. NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain) { return _to GetDomain(aDomain); } \
  57. NS_SCRIPTABLE NS_IMETHOD InitStorageEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, const nsAString & domainArg) { return _to InitStorageEvent(typeArg, canBubbleArg, cancelableArg, domainArg); } \
  58. NS_SCRIPTABLE NS_IMETHOD InitStorageEventNS(const nsAString & namespaceURIArg, const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, const nsAString & domainArg) { return _to InitStorageEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg, domainArg); }
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  60. #define NS_FORWARD_SAFE_NSIDOMSTORAGEEVENT(_to) \
  61. NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
  62. NS_SCRIPTABLE NS_IMETHOD InitStorageEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, const nsAString & domainArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitStorageEvent(typeArg, canBubbleArg, cancelableArg, domainArg); } \
  63. NS_SCRIPTABLE NS_IMETHOD InitStorageEventNS(const nsAString & namespaceURIArg, const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, const nsAString & domainArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitStorageEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg, domainArg); }
  64. #if 0
  65. /* Use the code below as a template for the implementation class for this interface. */
  66. /* Header file */
  67. class nsDOMStorageEvent : public nsIDOMStorageEvent
  68. {
  69. public:
  70. NS_DECL_ISUPPORTS
  71. NS_DECL_NSIDOMSTORAGEEVENT
  72. nsDOMStorageEvent();
  73. private:
  74. ~nsDOMStorageEvent();
  75. protected:
  76. /* additional members */
  77. };
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsDOMStorageEvent, nsIDOMStorageEvent)
  80. nsDOMStorageEvent::nsDOMStorageEvent()
  81. {
  82. /* member initializers and constructor code */
  83. }
  84. nsDOMStorageEvent::~nsDOMStorageEvent()
  85. {
  86. /* destructor code */
  87. }
  88. /* readonly attribute DOMString domain; */
  89. NS_IMETHODIMP nsDOMStorageEvent::GetDomain(nsAString & aDomain)
  90. {
  91. return NS_ERROR_NOT_IMPLEMENTED;
  92. }
  93. /* void initStorageEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString domainArg); */
  94. NS_IMETHODIMP nsDOMStorageEvent::InitStorageEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, const nsAString & domainArg)
  95. {
  96. return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98. /* void initStorageEventNS (in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString domainArg); */
  99. NS_IMETHODIMP nsDOMStorageEvent::InitStorageEventNS(const nsAString & namespaceURIArg, const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, const nsAString & domainArg)
  100. {
  101. return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103. /* End of implementation class template. */
  104. #endif
  105. #endif /* __gen_nsIDOMStorageEvent_h__ */