OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_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 */ |
| 34 class NS_NO_VTABLE nsIDOMUIEvent : public nsIDOMEvent { |
| 35 public: |
| 36 |
| 37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMUIEVENT_IID) |
| 38 |
| 39 /* readonly attribute nsIDOMAbstractView view; */ |
| 40 NS_IMETHOD GetView(nsIDOMAbstractView * *aView) = 0; |
| 41 |
| 42 /* readonly attribute long detail; */ |
| 43 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_IMETHOD InitUIEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool
cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg) = 0; |
| 47 |
| 48 }; |
| 49 |
| 50 /* Use this macro when declaring classes that implement this interface. */ |
| 51 #define NS_DECL_NSIDOMUIEVENT \ |
| 52 NS_IMETHOD GetView(nsIDOMAbstractView * *aView); \ |
| 53 NS_IMETHOD GetDetail(PRInt32 *aDetail); \ |
| 54 NS_IMETHOD InitUIEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool
cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg); |
| 55 |
| 56 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 57 #define NS_FORWARD_NSIDOMUIEVENT(_to) \ |
| 58 NS_IMETHOD GetView(nsIDOMAbstractView * *aView) { return _to GetView(aView); }
\ |
| 59 NS_IMETHOD GetDetail(PRInt32 *aDetail) { return _to GetDetail(aDetail); } \ |
| 60 NS_IMETHOD InitUIEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool
cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg) { return _to Init
UIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg); } |
| 61 |
| 62 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 63 #define NS_FORWARD_SAFE_NSIDOMUIEVENT(_to) \ |
| 64 NS_IMETHOD GetView(nsIDOMAbstractView * *aView) { return !_to ? NS_ERROR_NULL_
POINTER : _to->GetView(aView); } \ |
| 65 NS_IMETHOD GetDetail(PRInt32 *aDetail) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetDetail(aDetail); } \ |
| 66 NS_IMETHOD InitUIEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool
cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg) { return !_to ? N
S_ERROR_NULL_POINTER : _to->InitUIEvent(typeArg, canBubbleArg, cancelableArg, vi
ewArg, detailArg); } |
| 67 |
| 68 #if 0 |
| 69 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 70 |
| 71 /* Header file */ |
| 72 class nsDOMUIEvent : public nsIDOMUIEvent |
| 73 { |
| 74 public: |
| 75 NS_DECL_ISUPPORTS |
| 76 NS_DECL_NSIDOMUIEVENT |
| 77 |
| 78 nsDOMUIEvent(); |
| 79 |
| 80 private: |
| 81 ~nsDOMUIEvent(); |
| 82 |
| 83 protected: |
| 84 /* additional members */ |
| 85 }; |
| 86 |
| 87 /* Implementation file */ |
| 88 NS_IMPL_ISUPPORTS1(nsDOMUIEvent, nsIDOMUIEvent) |
| 89 |
| 90 nsDOMUIEvent::nsDOMUIEvent() |
| 91 { |
| 92 /* member initializers and constructor code */ |
| 93 } |
| 94 |
| 95 nsDOMUIEvent::~nsDOMUIEvent() |
| 96 { |
| 97 /* destructor code */ |
| 98 } |
| 99 |
| 100 /* readonly attribute nsIDOMAbstractView view; */ |
| 101 NS_IMETHODIMP nsDOMUIEvent::GetView(nsIDOMAbstractView * *aView) |
| 102 { |
| 103 return NS_ERROR_NOT_IMPLEMENTED; |
| 104 } |
| 105 |
| 106 /* readonly attribute long detail; */ |
| 107 NS_IMETHODIMP nsDOMUIEvent::GetDetail(PRInt32 *aDetail) |
| 108 { |
| 109 return NS_ERROR_NOT_IMPLEMENTED; |
| 110 } |
| 111 |
| 112 /* void initUIEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean c
ancelableArg, in nsIDOMAbstractView viewArg, in long detailArg); */ |
| 113 NS_IMETHODIMP nsDOMUIEvent::InitUIEvent(const nsAString & typeArg, PRBool canBub
bleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg) |
| 114 { |
| 115 return NS_ERROR_NOT_IMPLEMENTED; |
| 116 } |
| 117 |
| 118 /* End of implementation class template. */ |
| 119 #endif |
| 120 |
| 121 |
| 122 #endif /* __gen_nsIDOMUIEvent_h__ */ |
OLD | NEW |