PageRenderTime 103ms CodeModel.GetById 41ms app.highlight 2ms RepoModel.GetById 57ms app.codeStats 0ms

/gecko_api/include/nsIDOMDocumentEvent.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 100 lines | 48 code | 26 blank | 26 comment | 0 complexity | b9bd588808bf31c2e9c5e77d4a5b4935 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/events/nsIDOMDocumentEvent.idl
  3 */
  4
  5#ifndef __gen_nsIDOMDocumentEvent_h__
  6#define __gen_nsIDOMDocumentEvent_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.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
 18/* starting interface:    nsIDOMDocumentEvent */
 19#define NS_IDOMDOCUMENTEVENT_IID_STR "46b91d66-28e2-11d4-ab1e-0010830123b4"
 20
 21#define NS_IDOMDOCUMENTEVENT_IID \
 22  {0x46b91d66, 0x28e2, 0x11d4, \
 23    { 0xab, 0x1e, 0x00, 0x10, 0x83, 0x01, 0x23, 0xb4 }}
 24
 25/**
 26 * The nsIDOMDocumentEvent interface is the interface to the event
 27 * factory method on a DOM document object.
 28 *
 29 * For more information on this interface please see 
 30 * http://www.w3.org/TR/DOM-Level-2-Events/
 31 *
 32 * @status FROZEN
 33 */
 34class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDocumentEvent : public nsISupports {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTEVENT_IID)
 38
 39  /* nsIDOMEvent createEvent (in DOMString eventType)  raises (DOMException); */
 40  NS_SCRIPTABLE NS_IMETHOD CreateEvent(const nsAString & eventType, nsIDOMEvent **_retval) = 0;
 41
 42};
 43
 44  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDocumentEvent, NS_IDOMDOCUMENTEVENT_IID)
 45
 46/* Use this macro when declaring classes that implement this interface. */
 47#define NS_DECL_NSIDOMDOCUMENTEVENT \
 48  NS_SCRIPTABLE NS_IMETHOD CreateEvent(const nsAString & eventType, nsIDOMEvent **_retval); 
 49
 50/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 51#define NS_FORWARD_NSIDOMDOCUMENTEVENT(_to) \
 52  NS_SCRIPTABLE NS_IMETHOD CreateEvent(const nsAString & eventType, nsIDOMEvent **_retval) { return _to CreateEvent(eventType, _retval); } 
 53
 54/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 55#define NS_FORWARD_SAFE_NSIDOMDOCUMENTEVENT(_to) \
 56  NS_SCRIPTABLE NS_IMETHOD CreateEvent(const nsAString & eventType, nsIDOMEvent **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateEvent(eventType, _retval); } 
 57
 58#if 0
 59/* Use the code below as a template for the implementation class for this interface. */
 60
 61/* Header file */
 62class nsDOMDocumentEvent : public nsIDOMDocumentEvent
 63{
 64public:
 65  NS_DECL_ISUPPORTS
 66  NS_DECL_NSIDOMDOCUMENTEVENT
 67
 68  nsDOMDocumentEvent();
 69
 70private:
 71  ~nsDOMDocumentEvent();
 72
 73protected:
 74  /* additional members */
 75};
 76
 77/* Implementation file */
 78NS_IMPL_ISUPPORTS1(nsDOMDocumentEvent, nsIDOMDocumentEvent)
 79
 80nsDOMDocumentEvent::nsDOMDocumentEvent()
 81{
 82  /* member initializers and constructor code */
 83}
 84
 85nsDOMDocumentEvent::~nsDOMDocumentEvent()
 86{
 87  /* destructor code */
 88}
 89
 90/* nsIDOMEvent createEvent (in DOMString eventType)  raises (DOMException); */
 91NS_IMETHODIMP nsDOMDocumentEvent::CreateEvent(const nsAString & eventType, nsIDOMEvent **_retval)
 92{
 93    return NS_ERROR_NOT_IMPLEMENTED;
 94}
 95
 96/* End of implementation class template. */
 97#endif
 98
 99
100#endif /* __gen_nsIDOMDocumentEvent_h__ */