PageRenderTime 366ms CodeModel.GetById 41ms RepoModel.GetById 42ms app.codeStats 0ms

/gecko_api/include/nsIDOMMouseEvent.h

http://firefox-mac-pdf.googlecode.com/
C Header | 220 lines | 128 code | 46 blank | 46 comment | 0 complexity | d79b5b3e5f8e876c009ef75a3050d3e0 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/nsIDOMMouseEvent.idl
  3. */
  4. #ifndef __gen_nsIDOMMouseEvent_h__
  5. #define __gen_nsIDOMMouseEvent_h__
  6. #ifndef __gen_nsIDOMUIEvent_h__
  7. #include "nsIDOMUIEvent.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIDOMMouseEvent */
  14. #define NS_IDOMMOUSEEVENT_IID_STR "ff751edc-8b02-aae7-0010-8301838a3123"
  15. #define NS_IDOMMOUSEEVENT_IID \
  16. {0xff751edc, 0x8b02, 0xaae7, \
  17. { 0x00, 0x10, 0x83, 0x01, 0x83, 0x8a, 0x31, 0x23 }}
  18. /**
  19. * The nsIDOMMouseEvent interface is the datatype for all mouse events
  20. * in the Document Object Model.
  21. *
  22. * For more information on this interface please see
  23. * http://www.w3.org/TR/DOM-Level-2-Events/
  24. *
  25. * @status FROZEN
  26. */
  27. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMouseEvent : public nsIDOMUIEvent {
  28. public:
  29. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMOUSEEVENT_IID)
  30. /* readonly attribute long screenX; */
  31. NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) = 0;
  32. /* readonly attribute long screenY; */
  33. NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) = 0;
  34. /* readonly attribute long clientX; */
  35. NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) = 0;
  36. /* readonly attribute long clientY; */
  37. NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) = 0;
  38. /* readonly attribute boolean ctrlKey; */
  39. NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey) = 0;
  40. /* readonly attribute boolean shiftKey; */
  41. NS_SCRIPTABLE NS_IMETHOD GetShiftKey(PRBool *aShiftKey) = 0;
  42. /* readonly attribute boolean altKey; */
  43. NS_SCRIPTABLE NS_IMETHOD GetAltKey(PRBool *aAltKey) = 0;
  44. /* readonly attribute boolean metaKey; */
  45. NS_SCRIPTABLE NS_IMETHOD GetMetaKey(PRBool *aMetaKey) = 0;
  46. /* readonly attribute unsigned short button; */
  47. NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton) = 0;
  48. /* readonly attribute nsIDOMEventTarget relatedTarget; */
  49. NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) = 0;
  50. /* void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMAbstractView viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in nsIDOMEventTarget relatedTargetArg); */
  51. NS_SCRIPTABLE NS_IMETHOD InitMouseEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg) = 0;
  52. };
  53. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMouseEvent, NS_IDOMMOUSEEVENT_IID)
  54. /* Use this macro when declaring classes that implement this interface. */
  55. #define NS_DECL_NSIDOMMOUSEEVENT \
  56. NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX); \
  57. NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY); \
  58. NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX); \
  59. NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY); \
  60. NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey); \
  61. NS_SCRIPTABLE NS_IMETHOD GetShiftKey(PRBool *aShiftKey); \
  62. NS_SCRIPTABLE NS_IMETHOD GetAltKey(PRBool *aAltKey); \
  63. NS_SCRIPTABLE NS_IMETHOD GetMetaKey(PRBool *aMetaKey); \
  64. NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton); \
  65. NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget); \
  66. NS_SCRIPTABLE NS_IMETHOD InitMouseEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg);
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  68. #define NS_FORWARD_NSIDOMMOUSEEVENT(_to) \
  69. NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return _to GetScreenX(aScreenX); } \
  70. NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return _to GetScreenY(aScreenY); } \
  71. NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) { return _to GetClientX(aClientX); } \
  72. NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) { return _to GetClientY(aClientY); } \
  73. NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey) { return _to GetCtrlKey(aCtrlKey); } \
  74. NS_SCRIPTABLE NS_IMETHOD GetShiftKey(PRBool *aShiftKey) { return _to GetShiftKey(aShiftKey); } \
  75. NS_SCRIPTABLE NS_IMETHOD GetAltKey(PRBool *aAltKey) { return _to GetAltKey(aAltKey); } \
  76. NS_SCRIPTABLE NS_IMETHOD GetMetaKey(PRBool *aMetaKey) { return _to GetMetaKey(aMetaKey); } \
  77. NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton) { return _to GetButton(aButton); } \
  78. NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) { return _to GetRelatedTarget(aRelatedTarget); } \
  79. NS_SCRIPTABLE NS_IMETHOD InitMouseEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg) { return _to InitMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg); }
  80. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  81. #define NS_FORWARD_SAFE_NSIDOMMOUSEEVENT(_to) \
  82. NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
  83. NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
  84. NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientX(aClientX); } \
  85. NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientY(aClientY); } \
  86. NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCtrlKey(aCtrlKey); } \
  87. NS_SCRIPTABLE NS_IMETHOD GetShiftKey(PRBool *aShiftKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShiftKey(aShiftKey); } \
  88. NS_SCRIPTABLE NS_IMETHOD GetAltKey(PRBool *aAltKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAltKey(aAltKey); } \
  89. NS_SCRIPTABLE NS_IMETHOD GetMetaKey(PRBool *aMetaKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetaKey(aMetaKey); } \
  90. NS_SCRIPTABLE NS_IMETHOD GetButton(PRUint16 *aButton) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetButton(aButton); } \
  91. NS_SCRIPTABLE NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelatedTarget(aRelatedTarget); } \
  92. NS_SCRIPTABLE NS_IMETHOD InitMouseEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg); }
  93. #if 0
  94. /* Use the code below as a template for the implementation class for this interface. */
  95. /* Header file */
  96. class nsDOMMouseEvent : public nsIDOMMouseEvent
  97. {
  98. public:
  99. NS_DECL_ISUPPORTS
  100. NS_DECL_NSIDOMMOUSEEVENT
  101. nsDOMMouseEvent();
  102. private:
  103. ~nsDOMMouseEvent();
  104. protected:
  105. /* additional members */
  106. };
  107. /* Implementation file */
  108. NS_IMPL_ISUPPORTS1(nsDOMMouseEvent, nsIDOMMouseEvent)
  109. nsDOMMouseEvent::nsDOMMouseEvent()
  110. {
  111. /* member initializers and constructor code */
  112. }
  113. nsDOMMouseEvent::~nsDOMMouseEvent()
  114. {
  115. /* destructor code */
  116. }
  117. /* readonly attribute long screenX; */
  118. NS_IMETHODIMP nsDOMMouseEvent::GetScreenX(PRInt32 *aScreenX)
  119. {
  120. return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122. /* readonly attribute long screenY; */
  123. NS_IMETHODIMP nsDOMMouseEvent::GetScreenY(PRInt32 *aScreenY)
  124. {
  125. return NS_ERROR_NOT_IMPLEMENTED;
  126. }
  127. /* readonly attribute long clientX; */
  128. NS_IMETHODIMP nsDOMMouseEvent::GetClientX(PRInt32 *aClientX)
  129. {
  130. return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132. /* readonly attribute long clientY; */
  133. NS_IMETHODIMP nsDOMMouseEvent::GetClientY(PRInt32 *aClientY)
  134. {
  135. return NS_ERROR_NOT_IMPLEMENTED;
  136. }
  137. /* readonly attribute boolean ctrlKey; */
  138. NS_IMETHODIMP nsDOMMouseEvent::GetCtrlKey(PRBool *aCtrlKey)
  139. {
  140. return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142. /* readonly attribute boolean shiftKey; */
  143. NS_IMETHODIMP nsDOMMouseEvent::GetShiftKey(PRBool *aShiftKey)
  144. {
  145. return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147. /* readonly attribute boolean altKey; */
  148. NS_IMETHODIMP nsDOMMouseEvent::GetAltKey(PRBool *aAltKey)
  149. {
  150. return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152. /* readonly attribute boolean metaKey; */
  153. NS_IMETHODIMP nsDOMMouseEvent::GetMetaKey(PRBool *aMetaKey)
  154. {
  155. return NS_ERROR_NOT_IMPLEMENTED;
  156. }
  157. /* readonly attribute unsigned short button; */
  158. NS_IMETHODIMP nsDOMMouseEvent::GetButton(PRUint16 *aButton)
  159. {
  160. return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162. /* readonly attribute nsIDOMEventTarget relatedTarget; */
  163. NS_IMETHODIMP nsDOMMouseEvent::GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget)
  164. {
  165. return NS_ERROR_NOT_IMPLEMENTED;
  166. }
  167. /* void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMAbstractView viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in nsIDOMEventTarget relatedTargetArg); */
  168. NS_IMETHODIMP nsDOMMouseEvent::InitMouseEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg)
  169. {
  170. return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172. /* End of implementation class template. */
  173. #endif
  174. #endif /* __gen_nsIDOMMouseEvent_h__ */