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