Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIMockDragServiceController.idl
*/
#ifndef __gen_nsIMockDragServiceController_h__
#define __gen_nsIMockDragServiceController_h__
#include "nsISupports.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
namespace mozilla {
namespace dom {
class BrowsingContext; /* webidl BrowsingContext */
} // namespace dom
} // namespace mozilla
class nsIDragService; /* forward declaration */
/* starting interface: nsIMockDragServiceController */
#define NS_IMOCKDRAGSERVICECONTROLLER_IID_STR "32037ab0-bfc7-11ee-9f4b-09901bed55fa"
#define NS_IMOCKDRAGSERVICECONTROLLER_IID \
{0x32037ab0, 0xbfc7, 0x11ee, \
{ 0x9f, 0x4b, 0x09, 0x90, 0x1b, 0xed, 0x55, 0xfa }}
class NS_NO_VTABLE nsIMockDragServiceController : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOCKDRAGSERVICECONTROLLER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMockDragServiceController;
enum EventType : uint8_t {
eDragEnter = 0,
eDragOver = 1,
eDragExit = 2,
eDrop = 3,
eMouseDown = 4,
eMouseMove = 5,
eMouseUp = 6,
};
/* readonly attribute nsIDragService mockDragService; */
NS_IMETHOD GetMockDragService(nsIDragService **aMockDragService) = 0;
/* [can_run_script] void sendEvent (in BrowsingContext aBC, in nsIMockDragServiceController_EventType aEventType, in long aScreenX, in long aScreenY, [optional] in uint32_t aKeyModifiers); */
MOZ_CAN_RUN_SCRIPT NS_IMETHOD SendEvent(mozilla::dom::BrowsingContext *aBC, nsIMockDragServiceController::EventType aEventType, int32_t aScreenX, int32_t aScreenY, uint32_t aKeyModifiers) = 0;
/* [can_run_script] void cancelDrag ([optional] in uint32_t aKeyModifiers); */
MOZ_CAN_RUN_SCRIPT NS_IMETHOD CancelDrag(uint32_t aKeyModifiers) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMockDragServiceController, NS_IMOCKDRAGSERVICECONTROLLER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOCKDRAGSERVICECONTROLLER \
NS_IMETHOD GetMockDragService(nsIDragService **aMockDragService) override; \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD SendEvent(mozilla::dom::BrowsingContext *aBC, nsIMockDragServiceController::EventType aEventType, int32_t aScreenX, int32_t aScreenY, uint32_t aKeyModifiers) override; \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD CancelDrag(uint32_t aKeyModifiers) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMOCKDRAGSERVICECONTROLLER \
nsresult GetMockDragService(nsIDragService **aMockDragService); \
MOZ_CAN_RUN_SCRIPT nsresult SendEvent(mozilla::dom::BrowsingContext *aBC, nsIMockDragServiceController::EventType aEventType, int32_t aScreenX, int32_t aScreenY, uint32_t aKeyModifiers); \
MOZ_CAN_RUN_SCRIPT nsresult CancelDrag(uint32_t aKeyModifiers);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOCKDRAGSERVICECONTROLLER(_to) \
NS_IMETHOD GetMockDragService(nsIDragService **aMockDragService) override { return _to GetMockDragService(aMockDragService); } \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD SendEvent(mozilla::dom::BrowsingContext *aBC, nsIMockDragServiceController::EventType aEventType, int32_t aScreenX, int32_t aScreenY, uint32_t aKeyModifiers) override { return _to SendEvent(aBC, aEventType, aScreenX, aScreenY, aKeyModifiers); } \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD CancelDrag(uint32_t aKeyModifiers) override { return _to CancelDrag(aKeyModifiers); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMOCKDRAGSERVICECONTROLLER(_to) \
NS_IMETHOD GetMockDragService(nsIDragService **aMockDragService) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMockDragService(aMockDragService); } \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD SendEvent(mozilla::dom::BrowsingContext *aBC, nsIMockDragServiceController::EventType aEventType, int32_t aScreenX, int32_t aScreenY, uint32_t aKeyModifiers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendEvent(aBC, aEventType, aScreenX, aScreenY, aKeyModifiers); } \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD CancelDrag(uint32_t aKeyModifiers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelDrag(aKeyModifiers); }
#endif /* __gen_nsIMockDragServiceController_h__ */