Generated file

Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/interfaces/base/nsITextInputProcessorCallback.idl
*/
#ifndef __gen_nsITextInputProcessorCallback_h__
#define __gen_nsITextInputProcessorCallback_h__
#include "nsISupports.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsITextInputProcessor; /* forward declaration */
/* starting interface: nsITextInputProcessorNotification */
#define NS_ITEXTINPUTPROCESSORNOTIFICATION_IID_STR "c0ce1add-82bb-45ab-b99a-42cfba7fd5d7"
#define NS_ITEXTINPUTPROCESSORNOTIFICATION_IID \
{0xc0ce1add, 0x82bb, 0x45ab, \
{ 0xb9, 0x9a, 0x42, 0xcf, 0xba, 0x7f, 0xd5, 0xd7 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsITextInputProcessorNotification) nsITextInputProcessorNotification : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ITEXTINPUTPROCESSORNOTIFICATION_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITextInputProcessorNotification;
/* readonly attribute ACString type; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_type)
NS_IMETHOD GetType(nsACString& aType) = 0;
/* readonly attribute boolean hasRange; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_hasRange)
NS_IMETHOD GetHasRange(bool *aHasRange) = 0;
/* readonly attribute unsigned long offset; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_offset)
NS_IMETHOD GetOffset(uint32_t *aOffset) = 0;
/* readonly attribute AString text; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_text)
NS_IMETHOD GetText(nsAString& aText) = 0;
/* readonly attribute boolean collapsed; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_collapsed)
NS_IMETHOD GetCollapsed(bool *aCollapsed) = 0;
/* readonly attribute uint32_t length; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_length)
NS_IMETHOD GetLength(uint32_t *aLength) = 0;
/* readonly attribute boolean reversed; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_reversed)
NS_IMETHOD GetReversed(bool *aReversed) = 0;
/* readonly attribute ACString writingMode; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_writingMode)
NS_IMETHOD GetWritingMode(nsACString& aWritingMode) = 0;
/* readonly attribute boolean causedByComposition; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_causedByComposition)
NS_IMETHOD GetCausedByComposition(bool *aCausedByComposition) = 0;
/* readonly attribute boolean causedBySelectionEvent; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_causedBySelectionEvent)
NS_IMETHOD GetCausedBySelectionEvent(bool *aCausedBySelectionEvent) = 0;
/* readonly attribute boolean occurredDuringComposition; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_occurredDuringComposition)
NS_IMETHOD GetOccurredDuringComposition(bool *aOccurredDuringComposition) = 0;
/* readonly attribute unsigned long removedLength; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_removedLength)
NS_IMETHOD GetRemovedLength(uint32_t *aRemovedLength) = 0;
/* readonly attribute unsigned long addedLength; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_addedLength)
NS_IMETHOD GetAddedLength(uint32_t *aAddedLength) = 0;
/* readonly attribute boolean causedOnlyByComposition; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_causedOnlyByComposition)
NS_IMETHOD GetCausedOnlyByComposition(bool *aCausedOnlyByComposition) = 0;
/* readonly attribute boolean includingChangesDuringComposition; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_includingChangesDuringComposition)
NS_IMETHOD GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition) = 0;
/* readonly attribute boolean includingChangesWithoutComposition; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_includingChangesWithoutComposition)
NS_IMETHOD GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITEXTINPUTPROCESSORNOTIFICATION \
NS_IMETHOD GetType(nsACString& aType) override; \
NS_IMETHOD GetHasRange(bool *aHasRange) override; \
NS_IMETHOD GetOffset(uint32_t *aOffset) override; \
NS_IMETHOD GetText(nsAString& aText) override; \
NS_IMETHOD GetCollapsed(bool *aCollapsed) override; \
NS_IMETHOD GetLength(uint32_t *aLength) override; \
NS_IMETHOD GetReversed(bool *aReversed) override; \
NS_IMETHOD GetWritingMode(nsACString& aWritingMode) override; \
NS_IMETHOD GetCausedByComposition(bool *aCausedByComposition) override; \
NS_IMETHOD GetCausedBySelectionEvent(bool *aCausedBySelectionEvent) override; \
NS_IMETHOD GetOccurredDuringComposition(bool *aOccurredDuringComposition) override; \
NS_IMETHOD GetRemovedLength(uint32_t *aRemovedLength) override; \
NS_IMETHOD GetAddedLength(uint32_t *aAddedLength) override; \
NS_IMETHOD GetCausedOnlyByComposition(bool *aCausedOnlyByComposition) override; \
NS_IMETHOD GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition) override; \
NS_IMETHOD GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition) 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_NSITEXTINPUTPROCESSORNOTIFICATION \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_type)\
nsresult GetType(nsACString& aType); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_hasRange)\
nsresult GetHasRange(bool *aHasRange); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_offset)\
nsresult GetOffset(uint32_t *aOffset); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_text)\
nsresult GetText(nsAString& aText); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_collapsed)\
nsresult GetCollapsed(bool *aCollapsed); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_length)\
nsresult GetLength(uint32_t *aLength); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_reversed)\
nsresult GetReversed(bool *aReversed); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_writingMode)\
nsresult GetWritingMode(nsACString& aWritingMode); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_causedByComposition)\
nsresult GetCausedByComposition(bool *aCausedByComposition); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_causedBySelectionEvent)\
nsresult GetCausedBySelectionEvent(bool *aCausedBySelectionEvent); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_occurredDuringComposition)\
nsresult GetOccurredDuringComposition(bool *aOccurredDuringComposition); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_removedLength)\
nsresult GetRemovedLength(uint32_t *aRemovedLength); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_addedLength)\
nsresult GetAddedLength(uint32_t *aAddedLength); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_causedOnlyByComposition)\
nsresult GetCausedOnlyByComposition(bool *aCausedOnlyByComposition); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_includingChangesDuringComposition)\
nsresult GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITextInputProcessorNotification_includingChangesWithoutComposition)\
nsresult GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITEXTINPUTPROCESSORNOTIFICATION(_to) \
NS_IMETHOD GetType(nsACString& aType) override { return _to GetType(aType); } \
NS_IMETHOD GetHasRange(bool *aHasRange) override { return _to GetHasRange(aHasRange); } \
NS_IMETHOD GetOffset(uint32_t *aOffset) override { return _to GetOffset(aOffset); } \
NS_IMETHOD GetText(nsAString& aText) override { return _to GetText(aText); } \
NS_IMETHOD GetCollapsed(bool *aCollapsed) override { return _to GetCollapsed(aCollapsed); } \
NS_IMETHOD GetLength(uint32_t *aLength) override { return _to GetLength(aLength); } \
NS_IMETHOD GetReversed(bool *aReversed) override { return _to GetReversed(aReversed); } \
NS_IMETHOD GetWritingMode(nsACString& aWritingMode) override { return _to GetWritingMode(aWritingMode); } \
NS_IMETHOD GetCausedByComposition(bool *aCausedByComposition) override { return _to GetCausedByComposition(aCausedByComposition); } \
NS_IMETHOD GetCausedBySelectionEvent(bool *aCausedBySelectionEvent) override { return _to GetCausedBySelectionEvent(aCausedBySelectionEvent); } \
NS_IMETHOD GetOccurredDuringComposition(bool *aOccurredDuringComposition) override { return _to GetOccurredDuringComposition(aOccurredDuringComposition); } \
NS_IMETHOD GetRemovedLength(uint32_t *aRemovedLength) override { return _to GetRemovedLength(aRemovedLength); } \
NS_IMETHOD GetAddedLength(uint32_t *aAddedLength) override { return _to GetAddedLength(aAddedLength); } \
NS_IMETHOD GetCausedOnlyByComposition(bool *aCausedOnlyByComposition) override { return _to GetCausedOnlyByComposition(aCausedOnlyByComposition); } \
NS_IMETHOD GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition) override { return _to GetIncludingChangesDuringComposition(aIncludingChangesDuringComposition); } \
NS_IMETHOD GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition) override { return _to GetIncludingChangesWithoutComposition(aIncludingChangesWithoutComposition); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITEXTINPUTPROCESSORNOTIFICATION(_to) \
NS_IMETHOD GetType(nsACString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
NS_IMETHOD GetHasRange(bool *aHasRange) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasRange(aHasRange); } \
NS_IMETHOD GetOffset(uint32_t *aOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOffset(aOffset); } \
NS_IMETHOD GetText(nsAString& aText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(aText); } \
NS_IMETHOD GetCollapsed(bool *aCollapsed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCollapsed(aCollapsed); } \
NS_IMETHOD GetLength(uint32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
NS_IMETHOD GetReversed(bool *aReversed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReversed(aReversed); } \
NS_IMETHOD GetWritingMode(nsACString& aWritingMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWritingMode(aWritingMode); } \
NS_IMETHOD GetCausedByComposition(bool *aCausedByComposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCausedByComposition(aCausedByComposition); } \
NS_IMETHOD GetCausedBySelectionEvent(bool *aCausedBySelectionEvent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCausedBySelectionEvent(aCausedBySelectionEvent); } \
NS_IMETHOD GetOccurredDuringComposition(bool *aOccurredDuringComposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOccurredDuringComposition(aOccurredDuringComposition); } \
NS_IMETHOD GetRemovedLength(uint32_t *aRemovedLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRemovedLength(aRemovedLength); } \
NS_IMETHOD GetAddedLength(uint32_t *aAddedLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddedLength(aAddedLength); } \
NS_IMETHOD GetCausedOnlyByComposition(bool *aCausedOnlyByComposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCausedOnlyByComposition(aCausedOnlyByComposition); } \
NS_IMETHOD GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncludingChangesDuringComposition(aIncludingChangesDuringComposition); } \
NS_IMETHOD GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncludingChangesWithoutComposition(aIncludingChangesWithoutComposition); }
/* starting interface: nsITextInputProcessorCallback */
#define NS_ITEXTINPUTPROCESSORCALLBACK_IID_STR "23d5f242-adb5-46f1-8766-90d1bf0383df"
#define NS_ITEXTINPUTPROCESSORCALLBACK_IID \
{0x23d5f242, 0xadb5, 0x46f1, \
{ 0x87, 0x66, 0x90, 0xd1, 0xbf, 0x03, 0x83, 0xdf }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsITextInputProcessorCallback) nsITextInputProcessorCallback : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ITEXTINPUTPROCESSORCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITextInputProcessorCallback;
/* boolean onNotify (in nsITextInputProcessor aTextInputProcessor, in nsITextInputProcessorNotification aNotification); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITextInputProcessorCallback_onNotify)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITEXTINPUTPROCESSORCALLBACK \
NS_IMETHOD OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval) 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_NSITEXTINPUTPROCESSORCALLBACK \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITextInputProcessorCallback_onNotify)\
nsresult OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITEXTINPUTPROCESSORCALLBACK(_to) \
NS_IMETHOD OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval) override { return _to OnNotify(aTextInputProcessor, aNotification, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITEXTINPUTPROCESSORCALLBACK(_to) \
NS_IMETHOD OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnNotify(aTextInputProcessor, aNotification, _retval); }
/* starting interface: nsITextInputProcessorListenerCallback */
#define NS_ITEXTINPUTPROCESSORLISTENERCALLBACK_IID_STR "dc2170d9-a1fc-4d2c-a5c9-c1bfd35bf1da"
#define NS_ITEXTINPUTPROCESSORLISTENERCALLBACK_IID \
{0xdc2170d9, 0xa1fc, 0x4d2c, \
{ 0xa5, 0xc9, 0xc1, 0xbf, 0xd3, 0x5b, 0xf1, 0xda }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsITextInputProcessorListenerCallback) nsITextInputProcessorListenerCallback : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ITEXTINPUTPROCESSORLISTENERCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITextInputProcessorListenerCallback;
/* boolean onNotify (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITextInputProcessorListenerCallback_onNotify)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnNotify(bool *_retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITEXTINPUTPROCESSORLISTENERCALLBACK \
NS_IMETHOD OnNotify(bool *_retval) 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_NSITEXTINPUTPROCESSORLISTENERCALLBACK \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITextInputProcessorListenerCallback_onNotify)\
nsresult OnNotify(bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITEXTINPUTPROCESSORLISTENERCALLBACK(_to) \
NS_IMETHOD OnNotify(bool *_retval) override { return _to OnNotify(_retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITEXTINPUTPROCESSORLISTENERCALLBACK(_to) \
NS_IMETHOD OnNotify(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnNotify(_retval); }
/* starting interface: nsITextInputProcessorListener */
#define NS_ITEXTINPUTPROCESSORLISTENER_IID_STR "7c97c10f-9f17-440c-bae7-4120617b35c1"
#define NS_ITEXTINPUTPROCESSORLISTENER_IID \
{0x7c97c10f, 0x9f17, 0x440c, \
{ 0xba, 0xe7, 0x41, 0x20, 0x61, 0x7b, 0x35, 0xc1 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsITextInputProcessorListener) nsITextInputProcessorListener : public nsITextInputProcessorCallback {
public:
NS_INLINE_DECL_STATIC_IID(NS_ITEXTINPUTPROCESSORLISTENER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITextInputProcessorListener;
/* nsITextInputProcessorNotification getNotification (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITextInputProcessorListener_getNotification)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNotification(nsITextInputProcessorNotification **_retval) = 0;
/* void setCallback (in nsITextInputProcessorListenerCallback aCallback); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITextInputProcessorListener_setCallback)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCallback(nsITextInputProcessorListenerCallback *aCallback) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITEXTINPUTPROCESSORLISTENER \
NS_IMETHOD GetNotification(nsITextInputProcessorNotification **_retval) override; \
NS_IMETHOD SetCallback(nsITextInputProcessorListenerCallback *aCallback) 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_NSITEXTINPUTPROCESSORLISTENER \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITextInputProcessorListener_getNotification)\
nsresult GetNotification(nsITextInputProcessorNotification **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITextInputProcessorListener_setCallback)\
nsresult SetCallback(nsITextInputProcessorListenerCallback *aCallback);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITEXTINPUTPROCESSORLISTENER(_to) \
NS_IMETHOD GetNotification(nsITextInputProcessorNotification **_retval) override { return _to GetNotification(_retval); } \
NS_IMETHOD SetCallback(nsITextInputProcessorListenerCallback *aCallback) override { return _to SetCallback(aCallback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITEXTINPUTPROCESSORLISTENER(_to) \
NS_IMETHOD GetNotification(nsITextInputProcessorNotification **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotification(_retval); } \
NS_IMETHOD SetCallback(nsITextInputProcessorListenerCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); }
#endif /* __gen_nsITextInputProcessorCallback_h__ */