Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/mozintl/mozIMozIntl.idl
*/
#ifndef __gen_mozIMozIntl_h__
#define __gen_mozIMozIntl_h__
#include "nsISupports.h"
#include "js/Value.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
/* starting interface: mozIMozIntl */
#define MOZIMOZINTL_IID_STR "7f63279a-1a29-4ae6-9e7a-dc9684a23530"
#define MOZIMOZINTL_IID \
{0x7f63279a, 0x1a29, 0x4ae6, \
{ 0x9e, 0x7a, 0xdc, 0x96, 0x84, 0xa2, 0x35, 0x30 }}
class NS_NO_VTABLE mozIMozIntl : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(MOZIMOZINTL_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = mozIMozIntl;
/* jsval getCalendarInfo ([optional] in jsval locales); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCalendarInfo(JS::Handle<JS::Value> locales, JS::MutableHandle<JS::Value> _retval) = 0;
/* jsval getDisplayNamesDeprecated ([optional] in jsval locales, [optional] in jsval options); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisplayNamesDeprecated(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> options, JS::MutableHandle<JS::Value> _retval) = 0;
/* jsval getAvailableLocaleDisplayNames (in jsval type); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAvailableLocaleDisplayNames(JS::Handle<JS::Value> type, JS::MutableHandle<JS::Value> _retval) = 0;
/* jsval getLanguageDisplayNames (in jsval locales, in jsval langCodes); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLanguageDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> langCodes, JS::MutableHandle<JS::Value> _retval) = 0;
/* jsval getRegionDisplayNames (in jsval locales, in jsval regionCodes); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRegionDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> regionCodes, JS::MutableHandle<JS::Value> _retval) = 0;
/* jsval getLocaleDisplayNames (in jsval locales, in jsval localeCodes, [optional] in jsval options); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLocaleDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> localeCodes, JS::Handle<JS::Value> options, JS::MutableHandle<JS::Value> _retval) = 0;
/* jsval getScriptDirection (in jsval locale); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetScriptDirection(JS::Handle<JS::Value> locale, JS::MutableHandle<JS::Value> _retval) = 0;
/* boolean stringHasRTLChars (in jsval str); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StringHasRTLChars(JS::Handle<JS::Value> str, bool *_retval) = 0;
/* readonly attribute jsval Collator; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCollator(JS::MutableHandle<JS::Value> aCollator) = 0;
/* readonly attribute jsval DateTimeFormat; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDateTimeFormat(JS::MutableHandle<JS::Value> aDateTimeFormat) = 0;
/* readonly attribute jsval DisplayNames; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisplayNames(JS::MutableHandle<JS::Value> aDisplayNames) = 0;
/* readonly attribute jsval ListFormat; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetListFormat(JS::MutableHandle<JS::Value> aListFormat) = 0;
/* readonly attribute jsval Locale; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLocale(JS::MutableHandle<JS::Value> aLocale) = 0;
/* readonly attribute jsval NumberFormat; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumberFormat(JS::MutableHandle<JS::Value> aNumberFormat) = 0;
/* readonly attribute jsval PluralRules; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPluralRules(JS::MutableHandle<JS::Value> aPluralRules) = 0;
/* readonly attribute jsval RelativeTimeFormat; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRelativeTimeFormat(JS::MutableHandle<JS::Value> aRelativeTimeFormat) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(mozIMozIntl, MOZIMOZINTL_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZIMOZINTL \
NS_IMETHOD GetCalendarInfo(JS::Handle<JS::Value> locales, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetDisplayNamesDeprecated(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> options, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetAvailableLocaleDisplayNames(JS::Handle<JS::Value> type, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetLanguageDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> langCodes, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetRegionDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> regionCodes, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetLocaleDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> localeCodes, JS::Handle<JS::Value> options, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetScriptDirection(JS::Handle<JS::Value> locale, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD StringHasRTLChars(JS::Handle<JS::Value> str, bool *_retval) override; \
NS_IMETHOD GetCollator(JS::MutableHandle<JS::Value> aCollator) override; \
NS_IMETHOD GetDateTimeFormat(JS::MutableHandle<JS::Value> aDateTimeFormat) override; \
NS_IMETHOD GetDisplayNames(JS::MutableHandle<JS::Value> aDisplayNames) override; \
NS_IMETHOD GetListFormat(JS::MutableHandle<JS::Value> aListFormat) override; \
NS_IMETHOD GetLocale(JS::MutableHandle<JS::Value> aLocale) override; \
NS_IMETHOD GetNumberFormat(JS::MutableHandle<JS::Value> aNumberFormat) override; \
NS_IMETHOD GetPluralRules(JS::MutableHandle<JS::Value> aPluralRules) override; \
NS_IMETHOD GetRelativeTimeFormat(JS::MutableHandle<JS::Value> aRelativeTimeFormat) 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_MOZIMOZINTL \
nsresult GetCalendarInfo(JS::Handle<JS::Value> locales, JS::MutableHandle<JS::Value> _retval); \
nsresult GetDisplayNamesDeprecated(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> options, JS::MutableHandle<JS::Value> _retval); \
nsresult GetAvailableLocaleDisplayNames(JS::Handle<JS::Value> type, JS::MutableHandle<JS::Value> _retval); \
nsresult GetLanguageDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> langCodes, JS::MutableHandle<JS::Value> _retval); \
nsresult GetRegionDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> regionCodes, JS::MutableHandle<JS::Value> _retval); \
nsresult GetLocaleDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> localeCodes, JS::Handle<JS::Value> options, JS::MutableHandle<JS::Value> _retval); \
nsresult GetScriptDirection(JS::Handle<JS::Value> locale, JS::MutableHandle<JS::Value> _retval); \
nsresult StringHasRTLChars(JS::Handle<JS::Value> str, bool *_retval); \
nsresult GetCollator(JS::MutableHandle<JS::Value> aCollator); \
nsresult GetDateTimeFormat(JS::MutableHandle<JS::Value> aDateTimeFormat); \
nsresult GetDisplayNames(JS::MutableHandle<JS::Value> aDisplayNames); \
nsresult GetListFormat(JS::MutableHandle<JS::Value> aListFormat); \
nsresult GetLocale(JS::MutableHandle<JS::Value> aLocale); \
nsresult GetNumberFormat(JS::MutableHandle<JS::Value> aNumberFormat); \
nsresult GetPluralRules(JS::MutableHandle<JS::Value> aPluralRules); \
nsresult GetRelativeTimeFormat(JS::MutableHandle<JS::Value> aRelativeTimeFormat);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZIMOZINTL(_to) \
NS_IMETHOD GetCalendarInfo(JS::Handle<JS::Value> locales, JS::MutableHandle<JS::Value> _retval) override { return _to GetCalendarInfo(locales, _retval); } \
NS_IMETHOD GetDisplayNamesDeprecated(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> options, JS::MutableHandle<JS::Value> _retval) override { return _to GetDisplayNamesDeprecated(locales, options, _retval); } \
NS_IMETHOD GetAvailableLocaleDisplayNames(JS::Handle<JS::Value> type, JS::MutableHandle<JS::Value> _retval) override { return _to GetAvailableLocaleDisplayNames(type, _retval); } \
NS_IMETHOD GetLanguageDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> langCodes, JS::MutableHandle<JS::Value> _retval) override { return _to GetLanguageDisplayNames(locales, langCodes, _retval); } \
NS_IMETHOD GetRegionDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> regionCodes, JS::MutableHandle<JS::Value> _retval) override { return _to GetRegionDisplayNames(locales, regionCodes, _retval); } \
NS_IMETHOD GetLocaleDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> localeCodes, JS::Handle<JS::Value> options, JS::MutableHandle<JS::Value> _retval) override { return _to GetLocaleDisplayNames(locales, localeCodes, options, _retval); } \
NS_IMETHOD GetScriptDirection(JS::Handle<JS::Value> locale, JS::MutableHandle<JS::Value> _retval) override { return _to GetScriptDirection(locale, _retval); } \
NS_IMETHOD StringHasRTLChars(JS::Handle<JS::Value> str, bool *_retval) override { return _to StringHasRTLChars(str, _retval); } \
NS_IMETHOD GetCollator(JS::MutableHandle<JS::Value> aCollator) override { return _to GetCollator(aCollator); } \
NS_IMETHOD GetDateTimeFormat(JS::MutableHandle<JS::Value> aDateTimeFormat) override { return _to GetDateTimeFormat(aDateTimeFormat); } \
NS_IMETHOD GetDisplayNames(JS::MutableHandle<JS::Value> aDisplayNames) override { return _to GetDisplayNames(aDisplayNames); } \
NS_IMETHOD GetListFormat(JS::MutableHandle<JS::Value> aListFormat) override { return _to GetListFormat(aListFormat); } \
NS_IMETHOD GetLocale(JS::MutableHandle<JS::Value> aLocale) override { return _to GetLocale(aLocale); } \
NS_IMETHOD GetNumberFormat(JS::MutableHandle<JS::Value> aNumberFormat) override { return _to GetNumberFormat(aNumberFormat); } \
NS_IMETHOD GetPluralRules(JS::MutableHandle<JS::Value> aPluralRules) override { return _to GetPluralRules(aPluralRules); } \
NS_IMETHOD GetRelativeTimeFormat(JS::MutableHandle<JS::Value> aRelativeTimeFormat) override { return _to GetRelativeTimeFormat(aRelativeTimeFormat); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_MOZIMOZINTL(_to) \
NS_IMETHOD GetCalendarInfo(JS::Handle<JS::Value> locales, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCalendarInfo(locales, _retval); } \
NS_IMETHOD GetDisplayNamesDeprecated(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> options, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayNamesDeprecated(locales, options, _retval); } \
NS_IMETHOD GetAvailableLocaleDisplayNames(JS::Handle<JS::Value> type, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailableLocaleDisplayNames(type, _retval); } \
NS_IMETHOD GetLanguageDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> langCodes, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguageDisplayNames(locales, langCodes, _retval); } \
NS_IMETHOD GetRegionDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> regionCodes, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRegionDisplayNames(locales, regionCodes, _retval); } \
NS_IMETHOD GetLocaleDisplayNames(JS::Handle<JS::Value> locales, JS::Handle<JS::Value> localeCodes, JS::Handle<JS::Value> options, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocaleDisplayNames(locales, localeCodes, options, _retval); } \
NS_IMETHOD GetScriptDirection(JS::Handle<JS::Value> locale, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScriptDirection(locale, _retval); } \
NS_IMETHOD StringHasRTLChars(JS::Handle<JS::Value> str, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StringHasRTLChars(str, _retval); } \
NS_IMETHOD GetCollator(JS::MutableHandle<JS::Value> aCollator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCollator(aCollator); } \
NS_IMETHOD GetDateTimeFormat(JS::MutableHandle<JS::Value> aDateTimeFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDateTimeFormat(aDateTimeFormat); } \
NS_IMETHOD GetDisplayNames(JS::MutableHandle<JS::Value> aDisplayNames) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayNames(aDisplayNames); } \
NS_IMETHOD GetListFormat(JS::MutableHandle<JS::Value> aListFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListFormat(aListFormat); } \
NS_IMETHOD GetLocale(JS::MutableHandle<JS::Value> aLocale) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocale(aLocale); } \
NS_IMETHOD GetNumberFormat(JS::MutableHandle<JS::Value> aNumberFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberFormat(aNumberFormat); } \
NS_IMETHOD GetPluralRules(JS::MutableHandle<JS::Value> aPluralRules) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPluralRules(aPluralRules); } \
NS_IMETHOD GetRelativeTimeFormat(JS::MutableHandle<JS::Value> aRelativeTimeFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelativeTimeFormat(aRelativeTimeFormat); }
#endif /* __gen_mozIMozIntl_h__ */