LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDOMMouseEvent.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMMouseEvent.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDOMMouseEvent_h__
       6             : #define __gen_nsIDOMMouseEvent_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIDOMUIEvent_h__
      10             : #include "nsIDOMUIEvent.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:    nsIDOMMouseEvent */
      19             : #define NS_IDOMMOUSEEVENT_IID_STR "5bdab8d8-7933-4c5c-b6d1-ab34481237f7"
      20             : 
      21             : #define NS_IDOMMOUSEEVENT_IID \
      22             :   {0x5bdab8d8, 0x7933, 0x4c5c, \
      23             :     { 0xb6, 0xd1, 0xab, 0x34, 0x48, 0x12, 0x37, 0xf7 }}
      24             : 
      25           5 : class NS_NO_VTABLE nsIDOMMouseEvent : public nsIDOMUIEvent {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMOUSEEVENT_IID)
      29             : 
      30             :   /* readonly attribute long screenX; */
      31             :   NS_IMETHOD GetScreenX(int32_t *aScreenX) = 0;
      32             : 
      33             :   /* readonly attribute long screenY; */
      34             :   NS_IMETHOD GetScreenY(int32_t *aScreenY) = 0;
      35             : 
      36             :   /* readonly attribute long mozMovementX; */
      37             :   NS_IMETHOD GetMozMovementX(int32_t *aMozMovementX) = 0;
      38             : 
      39             :   /* readonly attribute long mozMovementY; */
      40             :   NS_IMETHOD GetMozMovementY(int32_t *aMozMovementY) = 0;
      41             : 
      42             :   /* readonly attribute long clientX; */
      43             :   NS_IMETHOD GetClientX(int32_t *aClientX) = 0;
      44             : 
      45             :   /* readonly attribute long clientY; */
      46             :   NS_IMETHOD GetClientY(int32_t *aClientY) = 0;
      47             : 
      48             :   /* readonly attribute boolean ctrlKey; */
      49             :   NS_IMETHOD GetCtrlKey(bool *aCtrlKey) = 0;
      50             : 
      51             :   /* readonly attribute boolean shiftKey; */
      52             :   NS_IMETHOD GetShiftKey(bool *aShiftKey) = 0;
      53             : 
      54             :   /* readonly attribute boolean altKey; */
      55             :   NS_IMETHOD GetAltKey(bool *aAltKey) = 0;
      56             : 
      57             :   /* readonly attribute boolean metaKey; */
      58             :   NS_IMETHOD GetMetaKey(bool *aMetaKey) = 0;
      59             : 
      60             :   /* readonly attribute short button; */
      61             :   NS_IMETHOD GetButton(int16_t *aButton) = 0;
      62             : 
      63             :   /* readonly attribute unsigned short buttons; */
      64             :   NS_IMETHOD GetButtons(uint16_t *aButtons) = 0;
      65             : 
      66             :   /* readonly attribute nsIDOMEventTarget relatedTarget; */
      67             :   NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) = 0;
      68             : 
      69             :   /* void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in mozIDOMWindow 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); */
      70             :   NS_IMETHOD InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg, int32_t screenXArg, int32_t screenYArg, int32_t clientXArg, int32_t clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, uint16_t buttonArg, nsIDOMEventTarget *relatedTargetArg) = 0;
      71             : 
      72             :   /* readonly attribute float mozPressure; */
      73             :   NS_IMETHOD GetMozPressure(float *aMozPressure) = 0;
      74             : 
      75             :   enum {
      76             :     MOZ_SOURCE_UNKNOWN = 0U,
      77             :     MOZ_SOURCE_MOUSE = 1U,
      78             :     MOZ_SOURCE_PEN = 2U,
      79             :     MOZ_SOURCE_ERASER = 3U,
      80             :     MOZ_SOURCE_CURSOR = 4U,
      81             :     MOZ_SOURCE_TOUCH = 5U,
      82             :     MOZ_SOURCE_KEYBOARD = 6U
      83             :   };
      84             : 
      85             :   /* readonly attribute unsigned short mozInputSource; */
      86             :   NS_IMETHOD GetMozInputSource(uint16_t *aMozInputSource) = 0;
      87             : 
      88             :   /* bool getModifierState (in DOMString keyArg); */
      89             :   NS_IMETHOD GetModifierState(const nsAString & keyArg, bool *_retval) = 0;
      90             : 
      91             : };
      92             : 
      93             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMouseEvent, NS_IDOMMOUSEEVENT_IID)
      94             : 
      95             : /* Use this macro when declaring classes that implement this interface. */
      96             : #define NS_DECL_NSIDOMMOUSEEVENT \
      97             :   NS_IMETHOD GetScreenX(int32_t *aScreenX) override; \
      98             :   NS_IMETHOD GetScreenY(int32_t *aScreenY) override; \
      99             :   NS_IMETHOD GetMozMovementX(int32_t *aMozMovementX) override; \
     100             :   NS_IMETHOD GetMozMovementY(int32_t *aMozMovementY) override; \
     101             :   NS_IMETHOD GetClientX(int32_t *aClientX) override; \
     102             :   NS_IMETHOD GetClientY(int32_t *aClientY) override; \
     103             :   NS_IMETHOD GetCtrlKey(bool *aCtrlKey) override; \
     104             :   NS_IMETHOD GetShiftKey(bool *aShiftKey) override; \
     105             :   NS_IMETHOD GetAltKey(bool *aAltKey) override; \
     106             :   NS_IMETHOD GetMetaKey(bool *aMetaKey) override; \
     107             :   NS_IMETHOD GetButton(int16_t *aButton) override; \
     108             :   NS_IMETHOD GetButtons(uint16_t *aButtons) override; \
     109             :   NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) override; \
     110             :   NS_IMETHOD InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg, int32_t screenXArg, int32_t screenYArg, int32_t clientXArg, int32_t clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, uint16_t buttonArg, nsIDOMEventTarget *relatedTargetArg) override; \
     111             :   NS_IMETHOD GetMozPressure(float *aMozPressure) override; \
     112             :   NS_IMETHOD GetMozInputSource(uint16_t *aMozInputSource) override; \
     113             :   NS_IMETHOD GetModifierState(const nsAString & keyArg, bool *_retval) override; 
     114             : 
     115             : /* Use this macro when declaring the members of this interface when the
     116             :    class doesn't implement the interface. This is useful for forwarding. */
     117             : #define NS_DECL_NON_VIRTUAL_NSIDOMMOUSEEVENT \
     118             :   nsresult GetScreenX(int32_t *aScreenX); \
     119             :   nsresult GetScreenY(int32_t *aScreenY); \
     120             :   nsresult GetMozMovementX(int32_t *aMozMovementX); \
     121             :   nsresult GetMozMovementY(int32_t *aMozMovementY); \
     122             :   nsresult GetClientX(int32_t *aClientX); \
     123             :   nsresult GetClientY(int32_t *aClientY); \
     124             :   nsresult GetCtrlKey(bool *aCtrlKey); \
     125             :   nsresult GetShiftKey(bool *aShiftKey); \
     126             :   nsresult GetAltKey(bool *aAltKey); \
     127             :   nsresult GetMetaKey(bool *aMetaKey); \
     128             :   nsresult GetButton(int16_t *aButton); \
     129             :   nsresult GetButtons(uint16_t *aButtons); \
     130             :   nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget); \
     131             :   nsresult InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg, int32_t screenXArg, int32_t screenYArg, int32_t clientXArg, int32_t clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, uint16_t buttonArg, nsIDOMEventTarget *relatedTargetArg); \
     132             :   nsresult GetMozPressure(float *aMozPressure); \
     133             :   nsresult GetMozInputSource(uint16_t *aMozInputSource); \
     134             :   nsresult GetModifierState(const nsAString & keyArg, bool *_retval); 
     135             : 
     136             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     137             : #define NS_FORWARD_NSIDOMMOUSEEVENT(_to) \
     138             :   NS_IMETHOD GetScreenX(int32_t *aScreenX) override { return _to GetScreenX(aScreenX); } \
     139             :   NS_IMETHOD GetScreenY(int32_t *aScreenY) override { return _to GetScreenY(aScreenY); } \
     140             :   NS_IMETHOD GetMozMovementX(int32_t *aMozMovementX) override { return _to GetMozMovementX(aMozMovementX); } \
     141             :   NS_IMETHOD GetMozMovementY(int32_t *aMozMovementY) override { return _to GetMozMovementY(aMozMovementY); } \
     142             :   NS_IMETHOD GetClientX(int32_t *aClientX) override { return _to GetClientX(aClientX); } \
     143             :   NS_IMETHOD GetClientY(int32_t *aClientY) override { return _to GetClientY(aClientY); } \
     144             :   NS_IMETHOD GetCtrlKey(bool *aCtrlKey) override { return _to GetCtrlKey(aCtrlKey); } \
     145             :   NS_IMETHOD GetShiftKey(bool *aShiftKey) override { return _to GetShiftKey(aShiftKey); } \
     146             :   NS_IMETHOD GetAltKey(bool *aAltKey) override { return _to GetAltKey(aAltKey); } \
     147             :   NS_IMETHOD GetMetaKey(bool *aMetaKey) override { return _to GetMetaKey(aMetaKey); } \
     148             :   NS_IMETHOD GetButton(int16_t *aButton) override { return _to GetButton(aButton); } \
     149             :   NS_IMETHOD GetButtons(uint16_t *aButtons) override { return _to GetButtons(aButtons); } \
     150             :   NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) override { return _to GetRelatedTarget(aRelatedTarget); } \
     151             :   NS_IMETHOD InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg, int32_t screenXArg, int32_t screenYArg, int32_t clientXArg, int32_t clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, uint16_t buttonArg, nsIDOMEventTarget *relatedTargetArg) override { return _to InitMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg); } \
     152             :   NS_IMETHOD GetMozPressure(float *aMozPressure) override { return _to GetMozPressure(aMozPressure); } \
     153             :   NS_IMETHOD GetMozInputSource(uint16_t *aMozInputSource) override { return _to GetMozInputSource(aMozInputSource); } \
     154             :   NS_IMETHOD GetModifierState(const nsAString & keyArg, bool *_retval) override { return _to GetModifierState(keyArg, _retval); } 
     155             : 
     156             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     157             : #define NS_FORWARD_SAFE_NSIDOMMOUSEEVENT(_to) \
     158             :   NS_IMETHOD GetScreenX(int32_t *aScreenX) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
     159             :   NS_IMETHOD GetScreenY(int32_t *aScreenY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
     160             :   NS_IMETHOD GetMozMovementX(int32_t *aMozMovementX) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozMovementX(aMozMovementX); } \
     161             :   NS_IMETHOD GetMozMovementY(int32_t *aMozMovementY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozMovementY(aMozMovementY); } \
     162             :   NS_IMETHOD GetClientX(int32_t *aClientX) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientX(aClientX); } \
     163             :   NS_IMETHOD GetClientY(int32_t *aClientY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientY(aClientY); } \
     164             :   NS_IMETHOD GetCtrlKey(bool *aCtrlKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCtrlKey(aCtrlKey); } \
     165             :   NS_IMETHOD GetShiftKey(bool *aShiftKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShiftKey(aShiftKey); } \
     166             :   NS_IMETHOD GetAltKey(bool *aAltKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAltKey(aAltKey); } \
     167             :   NS_IMETHOD GetMetaKey(bool *aMetaKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetaKey(aMetaKey); } \
     168             :   NS_IMETHOD GetButton(int16_t *aButton) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetButton(aButton); } \
     169             :   NS_IMETHOD GetButtons(uint16_t *aButtons) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetButtons(aButtons); } \
     170             :   NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelatedTarget(aRelatedTarget); } \
     171             :   NS_IMETHOD InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg, int32_t screenXArg, int32_t screenYArg, int32_t clientXArg, int32_t clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, uint16_t buttonArg, nsIDOMEventTarget *relatedTargetArg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg); } \
     172             :   NS_IMETHOD GetMozPressure(float *aMozPressure) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPressure(aMozPressure); } \
     173             :   NS_IMETHOD GetMozInputSource(uint16_t *aMozInputSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozInputSource(aMozInputSource); } \
     174             :   NS_IMETHOD GetModifierState(const nsAString & keyArg, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetModifierState(keyArg, _retval); } 
     175             : 
     176             : #if 0
     177             : /* Use the code below as a template for the implementation class for this interface. */
     178             : 
     179             : /* Header file */
     180             : class nsDOMMouseEvent : public nsIDOMMouseEvent
     181             : {
     182             : public:
     183             :   NS_DECL_ISUPPORTS
     184             :   NS_DECL_NSIDOMMOUSEEVENT
     185             : 
     186             :   nsDOMMouseEvent();
     187             : 
     188             : private:
     189             :   ~nsDOMMouseEvent();
     190             : 
     191             : protected:
     192             :   /* additional members */
     193             : };
     194             : 
     195             : /* Implementation file */
     196             : NS_IMPL_ISUPPORTS(nsDOMMouseEvent, nsIDOMMouseEvent)
     197             : 
     198             : nsDOMMouseEvent::nsDOMMouseEvent()
     199             : {
     200             :   /* member initializers and constructor code */
     201             : }
     202             : 
     203             : nsDOMMouseEvent::~nsDOMMouseEvent()
     204             : {
     205             :   /* destructor code */
     206             : }
     207             : 
     208             : /* readonly attribute long screenX; */
     209             : NS_IMETHODIMP nsDOMMouseEvent::GetScreenX(int32_t *aScreenX)
     210             : {
     211             :     return NS_ERROR_NOT_IMPLEMENTED;
     212             : }
     213             : 
     214             : /* readonly attribute long screenY; */
     215             : NS_IMETHODIMP nsDOMMouseEvent::GetScreenY(int32_t *aScreenY)
     216             : {
     217             :     return NS_ERROR_NOT_IMPLEMENTED;
     218             : }
     219             : 
     220             : /* readonly attribute long mozMovementX; */
     221             : NS_IMETHODIMP nsDOMMouseEvent::GetMozMovementX(int32_t *aMozMovementX)
     222             : {
     223             :     return NS_ERROR_NOT_IMPLEMENTED;
     224             : }
     225             : 
     226             : /* readonly attribute long mozMovementY; */
     227             : NS_IMETHODIMP nsDOMMouseEvent::GetMozMovementY(int32_t *aMozMovementY)
     228             : {
     229             :     return NS_ERROR_NOT_IMPLEMENTED;
     230             : }
     231             : 
     232             : /* readonly attribute long clientX; */
     233             : NS_IMETHODIMP nsDOMMouseEvent::GetClientX(int32_t *aClientX)
     234             : {
     235             :     return NS_ERROR_NOT_IMPLEMENTED;
     236             : }
     237             : 
     238             : /* readonly attribute long clientY; */
     239             : NS_IMETHODIMP nsDOMMouseEvent::GetClientY(int32_t *aClientY)
     240             : {
     241             :     return NS_ERROR_NOT_IMPLEMENTED;
     242             : }
     243             : 
     244             : /* readonly attribute boolean ctrlKey; */
     245             : NS_IMETHODIMP nsDOMMouseEvent::GetCtrlKey(bool *aCtrlKey)
     246             : {
     247             :     return NS_ERROR_NOT_IMPLEMENTED;
     248             : }
     249             : 
     250             : /* readonly attribute boolean shiftKey; */
     251             : NS_IMETHODIMP nsDOMMouseEvent::GetShiftKey(bool *aShiftKey)
     252             : {
     253             :     return NS_ERROR_NOT_IMPLEMENTED;
     254             : }
     255             : 
     256             : /* readonly attribute boolean altKey; */
     257             : NS_IMETHODIMP nsDOMMouseEvent::GetAltKey(bool *aAltKey)
     258             : {
     259             :     return NS_ERROR_NOT_IMPLEMENTED;
     260             : }
     261             : 
     262             : /* readonly attribute boolean metaKey; */
     263             : NS_IMETHODIMP nsDOMMouseEvent::GetMetaKey(bool *aMetaKey)
     264             : {
     265             :     return NS_ERROR_NOT_IMPLEMENTED;
     266             : }
     267             : 
     268             : /* readonly attribute short button; */
     269             : NS_IMETHODIMP nsDOMMouseEvent::GetButton(int16_t *aButton)
     270             : {
     271             :     return NS_ERROR_NOT_IMPLEMENTED;
     272             : }
     273             : 
     274             : /* readonly attribute unsigned short buttons; */
     275             : NS_IMETHODIMP nsDOMMouseEvent::GetButtons(uint16_t *aButtons)
     276             : {
     277             :     return NS_ERROR_NOT_IMPLEMENTED;
     278             : }
     279             : 
     280             : /* readonly attribute nsIDOMEventTarget relatedTarget; */
     281             : NS_IMETHODIMP nsDOMMouseEvent::GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget)
     282             : {
     283             :     return NS_ERROR_NOT_IMPLEMENTED;
     284             : }
     285             : 
     286             : /* void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in mozIDOMWindow 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); */
     287             : NS_IMETHODIMP nsDOMMouseEvent::InitMouseEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, mozIDOMWindow *viewArg, int32_t detailArg, int32_t screenXArg, int32_t screenYArg, int32_t clientXArg, int32_t clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, uint16_t buttonArg, nsIDOMEventTarget *relatedTargetArg)
     288             : {
     289             :     return NS_ERROR_NOT_IMPLEMENTED;
     290             : }
     291             : 
     292             : /* readonly attribute float mozPressure; */
     293             : NS_IMETHODIMP nsDOMMouseEvent::GetMozPressure(float *aMozPressure)
     294             : {
     295             :     return NS_ERROR_NOT_IMPLEMENTED;
     296             : }
     297             : 
     298             : /* readonly attribute unsigned short mozInputSource; */
     299             : NS_IMETHODIMP nsDOMMouseEvent::GetMozInputSource(uint16_t *aMozInputSource)
     300             : {
     301             :     return NS_ERROR_NOT_IMPLEMENTED;
     302             : }
     303             : 
     304             : /* bool getModifierState (in DOMString keyArg); */
     305             : NS_IMETHODIMP nsDOMMouseEvent::GetModifierState(const nsAString & keyArg, bool *_retval)
     306             : {
     307             :     return NS_ERROR_NOT_IMPLEMENTED;
     308             : }
     309             : 
     310             : /* End of implementation class template. */
     311             : #endif
     312             : 
     313             : 
     314             : #endif /* __gen_nsIDOMMouseEvent_h__ */

Generated by: LCOV version 1.13