PageRenderTime 103ms CodeModel.GetById 61ms app.highlight 3ms RepoModel.GetById 37ms app.codeStats 0ms

/gecko_api/include/nsIDOMUIEvent.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 124 lines | 64 code | 30 blank | 30 comment | 0 complexity | 8a8fac2a8a45ccf3f609e9665965509a 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/nsIDOMUIEvent.idl
  3 */
  4
  5#ifndef __gen_nsIDOMUIEvent_h__
  6#define __gen_nsIDOMUIEvent_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:    nsIDOMUIEvent */
 19#define NS_IDOMUIEVENT_IID_STR "a6cf90c3-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMUIEVENT_IID \
 22  {0xa6cf90c3, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25/**
 26 * The nsIDOMUIEvent interface is the datatype for all UI events in the
 27 * Document Object Model.
 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 nsIDOMUIEvent : public nsIDOMEvent {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMUIEVENT_IID)
 38
 39  /* readonly attribute nsIDOMAbstractView view; */
 40  NS_SCRIPTABLE NS_IMETHOD GetView(nsIDOMAbstractView * *aView) = 0;
 41
 42  /* readonly attribute long detail; */
 43  NS_SCRIPTABLE NS_IMETHOD GetDetail(PRInt32 *aDetail) = 0;
 44
 45  /* void initUIEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMAbstractView viewArg, in long detailArg); */
 46  NS_SCRIPTABLE NS_IMETHOD InitUIEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg) = 0;
 47
 48};
 49
 50  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMUIEvent, NS_IDOMUIEVENT_IID)
 51
 52/* Use this macro when declaring classes that implement this interface. */
 53#define NS_DECL_NSIDOMUIEVENT \
 54  NS_SCRIPTABLE NS_IMETHOD GetView(nsIDOMAbstractView * *aView); \
 55  NS_SCRIPTABLE NS_IMETHOD GetDetail(PRInt32 *aDetail); \
 56  NS_SCRIPTABLE NS_IMETHOD InitUIEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg); 
 57
 58/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 59#define NS_FORWARD_NSIDOMUIEVENT(_to) \
 60  NS_SCRIPTABLE NS_IMETHOD GetView(nsIDOMAbstractView * *aView) { return _to GetView(aView); } \
 61  NS_SCRIPTABLE NS_IMETHOD GetDetail(PRInt32 *aDetail) { return _to GetDetail(aDetail); } \
 62  NS_SCRIPTABLE NS_IMETHOD InitUIEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg) { return _to InitUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg); } 
 63
 64/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 65#define NS_FORWARD_SAFE_NSIDOMUIEVENT(_to) \
 66  NS_SCRIPTABLE NS_IMETHOD GetView(nsIDOMAbstractView * *aView) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetView(aView); } \
 67  NS_SCRIPTABLE NS_IMETHOD GetDetail(PRInt32 *aDetail) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetail(aDetail); } \
 68  NS_SCRIPTABLE NS_IMETHOD InitUIEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg); } 
 69
 70#if 0
 71/* Use the code below as a template for the implementation class for this interface. */
 72
 73/* Header file */
 74class nsDOMUIEvent : public nsIDOMUIEvent
 75{
 76public:
 77  NS_DECL_ISUPPORTS
 78  NS_DECL_NSIDOMUIEVENT
 79
 80  nsDOMUIEvent();
 81
 82private:
 83  ~nsDOMUIEvent();
 84
 85protected:
 86  /* additional members */
 87};
 88
 89/* Implementation file */
 90NS_IMPL_ISUPPORTS1(nsDOMUIEvent, nsIDOMUIEvent)
 91
 92nsDOMUIEvent::nsDOMUIEvent()
 93{
 94  /* member initializers and constructor code */
 95}
 96
 97nsDOMUIEvent::~nsDOMUIEvent()
 98{
 99  /* destructor code */
100}
101
102/* readonly attribute nsIDOMAbstractView view; */
103NS_IMETHODIMP nsDOMUIEvent::GetView(nsIDOMAbstractView * *aView)
104{
105    return NS_ERROR_NOT_IMPLEMENTED;
106}
107
108/* readonly attribute long detail; */
109NS_IMETHODIMP nsDOMUIEvent::GetDetail(PRInt32 *aDetail)
110{
111    return NS_ERROR_NOT_IMPLEMENTED;
112}
113
114/* void initUIEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMAbstractView viewArg, in long detailArg); */
115NS_IMETHODIMP nsDOMUIEvent::InitUIEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg)
116{
117    return NS_ERROR_NOT_IMPLEMENTED;
118}
119
120/* End of implementation class template. */
121#endif
122
123
124#endif /* __gen_nsIDOMUIEvent_h__ */