PageRenderTime 307ms CodeModel.GetById 47ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 78ms

/gecko_api/include/nsIDOMCustomEvent.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 110 lines | 56 code | 28 blank | 26 comment | 0 complexity | a839d8707c1246641b18eff964812924 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/nsIDOMCustomEvent.idl
  3 */
  4
  5#ifndef __gen_nsIDOMCustomEvent_h__
  6#define __gen_nsIDOMCustomEvent_h__
  7
  8
  9#ifndef __gen_nsIDOMEvent_h__
 10#include "nsIDOMEvent.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:    nsIDOMCustomEvent */
 19#define NS_IDOMCUSTOMEVENT_IID_STR "55c7af7b-1a64-40bf-87eb-2c2cbee0491b"
 20
 21#define NS_IDOMCUSTOMEVENT_IID \
 22  {0x55c7af7b, 0x1a64, 0x40bf, \
 23    { 0x87, 0xeb, 0x2c, 0x2c, 0xbe, 0xe0, 0x49, 0x1b }}
 24
 25/**
 26 * The nsIDOMEventTarget interface is the interface implemented by all
 27 * event targets in the Document Object Model.
 28 *
 29 * For more information on this interface please see 
 30 * http://www.w3.org/TR/DOM-Level-3-Events/
 31 */
 32class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCustomEvent : public nsIDOMEvent {
 33 public: 
 34
 35  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCUSTOMEVENT_IID)
 36
 37  /* void setCurrentTarget (in nsIDOMNode target); */
 38  NS_SCRIPTABLE NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) = 0;
 39
 40  /* void setEventPhase (in unsigned short phase); */
 41  NS_SCRIPTABLE NS_IMETHOD SetEventPhase(PRUint16 phase) = 0;
 42
 43};
 44
 45  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCustomEvent, NS_IDOMCUSTOMEVENT_IID)
 46
 47/* Use this macro when declaring classes that implement this interface. */
 48#define NS_DECL_NSIDOMCUSTOMEVENT \
 49  NS_SCRIPTABLE NS_IMETHOD SetCurrentTarget(nsIDOMNode *target); \
 50  NS_SCRIPTABLE NS_IMETHOD SetEventPhase(PRUint16 phase); 
 51
 52/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 53#define NS_FORWARD_NSIDOMCUSTOMEVENT(_to) \
 54  NS_SCRIPTABLE NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) { return _to SetCurrentTarget(target); } \
 55  NS_SCRIPTABLE NS_IMETHOD SetEventPhase(PRUint16 phase) { return _to SetEventPhase(phase); } 
 56
 57/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 58#define NS_FORWARD_SAFE_NSIDOMCUSTOMEVENT(_to) \
 59  NS_SCRIPTABLE NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentTarget(target); } \
 60  NS_SCRIPTABLE NS_IMETHOD SetEventPhase(PRUint16 phase) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEventPhase(phase); } 
 61
 62#if 0
 63/* Use the code below as a template for the implementation class for this interface. */
 64
 65/* Header file */
 66class nsDOMCustomEvent : public nsIDOMCustomEvent
 67{
 68public:
 69  NS_DECL_ISUPPORTS
 70  NS_DECL_NSIDOMCUSTOMEVENT
 71
 72  nsDOMCustomEvent();
 73
 74private:
 75  ~nsDOMCustomEvent();
 76
 77protected:
 78  /* additional members */
 79};
 80
 81/* Implementation file */
 82NS_IMPL_ISUPPORTS1(nsDOMCustomEvent, nsIDOMCustomEvent)
 83
 84nsDOMCustomEvent::nsDOMCustomEvent()
 85{
 86  /* member initializers and constructor code */
 87}
 88
 89nsDOMCustomEvent::~nsDOMCustomEvent()
 90{
 91  /* destructor code */
 92}
 93
 94/* void setCurrentTarget (in nsIDOMNode target); */
 95NS_IMETHODIMP nsDOMCustomEvent::SetCurrentTarget(nsIDOMNode *target)
 96{
 97    return NS_ERROR_NOT_IMPLEMENTED;
 98}
 99
100/* void setEventPhase (in unsigned short phase); */
101NS_IMETHODIMP nsDOMCustomEvent::SetEventPhase(PRUint16 phase)
102{
103    return NS_ERROR_NOT_IMPLEMENTED;
104}
105
106/* End of implementation class template. */
107#endif
108
109
110#endif /* __gen_nsIDOMCustomEvent_h__ */