DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/intl/l10n/mozIDOMLocalization.idl
 */

#ifndef __gen_mozIDOMLocalization_h__
#define __gen_mozIDOMLocalization_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsTArray_h__
#include "nsTArray.h"
#endif

#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
class nsIDocument; /* webidl Document */

namespace mozilla {
namespace dom {
class Element; /* webidl Element */
} // namespace dom
} // namespace mozilla


/* starting interface:    mozIDOMLocalization */
#define MOZIDOMLOCALIZATION_IID_STR "7c468500-541f-4fe0-98c9-92a53b63ec8d"

#define MOZIDOMLOCALIZATION_IID \
  {0x7c468500, 0x541f, 0x4fe0, \
    { 0x98, 0xc9, 0x92, 0xa5, 0x3b, 0x63, 0xec, 0x8d }}

class NS_NO_VTABLE mozIDOMLocalization : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(MOZIDOMLOCALIZATION_IID)

  /* unsigned long addResourceIds (in Array<AString> resourceIds); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddResourceIds(const nsTArray<nsString >& resourceIds, uint32_t *_retval) = 0;

  /* unsigned long removeResourceIds (in Array<AString> resourceIds); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveResourceIds(const nsTArray<nsString >& resourceIds, uint32_t *_retval) = 0;

  /* Promise formatMessages (in Array<jsval> aKeys); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatMessages(const nsTArray<JS::Value >& aKeys, ::mozilla::dom::Promise * * _retval) = 0;

  /* Promise formatValues (in Array<jsval> aKeys); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatValues(const nsTArray<JS::Value >& aKeys, ::mozilla::dom::Promise * * _retval) = 0;

  /* Promise formatValue (in DOMString aId, [optional] in jsval aArgs); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatValue(const nsAString& aId, JS::HandleValue aArgs, ::mozilla::dom::Promise * * _retval) = 0;

  /* Promise translateFragment (in Element aElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TranslateFragment(mozilla::dom::Element *aElement, ::mozilla::dom::Promise * * _retval) = 0;

  /* Promise translateElements (in Array<Element> aElements); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TranslateElements(const nsTArray<RefPtr<mozilla::dom::Element>>& aElements, ::mozilla::dom::Promise * * _retval) = 0;

  /* void connectRoot (in Element aElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ConnectRoot(mozilla::dom::Element *aElement) = 0;

  /* Promise translateRoots (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TranslateRoots(::mozilla::dom::Promise * * _retval) = 0;

  /* readonly attribute Promise ready; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetReady(::mozilla::dom::Promise * * aReady) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(mozIDOMLocalization, MOZIDOMLOCALIZATION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZIDOMLOCALIZATION \
  NS_IMETHOD AddResourceIds(const nsTArray<nsString >& resourceIds, uint32_t *_retval) override; \
  NS_IMETHOD RemoveResourceIds(const nsTArray<nsString >& resourceIds, uint32_t *_retval) override; \
  NS_IMETHOD FormatMessages(const nsTArray<JS::Value >& aKeys, ::mozilla::dom::Promise * * _retval) override; \
  NS_IMETHOD FormatValues(const nsTArray<JS::Value >& aKeys, ::mozilla::dom::Promise * * _retval) override; \
  NS_IMETHOD FormatValue(const nsAString& aId, JS::HandleValue aArgs, ::mozilla::dom::Promise * * _retval) override; \
  NS_IMETHOD TranslateFragment(mozilla::dom::Element *aElement, ::mozilla::dom::Promise * * _retval) override; \
  NS_IMETHOD TranslateElements(const nsTArray<RefPtr<mozilla::dom::Element>>& aElements, ::mozilla::dom::Promise * * _retval) override; \
  NS_IMETHOD ConnectRoot(mozilla::dom::Element *aElement) override; \
  NS_IMETHOD TranslateRoots(::mozilla::dom::Promise * * _retval) override; \
  NS_IMETHOD GetReady(::mozilla::dom::Promise * * aReady) 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_MOZIDOMLOCALIZATION \
  nsresult AddResourceIds(const nsTArray<nsString >& resourceIds, uint32_t *_retval); \
  nsresult RemoveResourceIds(const nsTArray<nsString >& resourceIds, uint32_t *_retval); \
  nsresult FormatMessages(const nsTArray<JS::Value >& aKeys, ::mozilla::dom::Promise * * _retval); \
  nsresult FormatValues(const nsTArray<JS::Value >& aKeys, ::mozilla::dom::Promise * * _retval); \
  nsresult FormatValue(const nsAString& aId, JS::HandleValue aArgs, ::mozilla::dom::Promise * * _retval); \
  nsresult TranslateFragment(mozilla::dom::Element *aElement, ::mozilla::dom::Promise * * _retval); \
  nsresult TranslateElements(const nsTArray<RefPtr<mozilla::dom::Element>>& aElements, ::mozilla::dom::Promise * * _retval); \
  nsresult ConnectRoot(mozilla::dom::Element *aElement); \
  nsresult TranslateRoots(::mozilla::dom::Promise * * _retval); \
  nsresult GetReady(::mozilla::dom::Promise * * aReady); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZIDOMLOCALIZATION(_to) \
  NS_IMETHOD AddResourceIds(const nsTArray<nsString >& resourceIds, uint32_t *_retval) override { return _to AddResourceIds(resourceIds, _retval); } \
  NS_IMETHOD RemoveResourceIds(const nsTArray<nsString >& resourceIds, uint32_t *_retval) override { return _to RemoveResourceIds(resourceIds, _retval); } \
  NS_IMETHOD FormatMessages(const nsTArray<JS::Value >& aKeys, ::mozilla::dom::Promise * * _retval) override { return _to FormatMessages(aKeys, _retval); } \
  NS_IMETHOD FormatValues(const nsTArray<JS::Value >& aKeys, ::mozilla::dom::Promise * * _retval) override { return _to FormatValues(aKeys, _retval); } \
  NS_IMETHOD FormatValue(const nsAString& aId, JS::HandleValue aArgs, ::mozilla::dom::Promise * * _retval) override { return _to FormatValue(aId, aArgs, _retval); } \
  NS_IMETHOD TranslateFragment(mozilla::dom::Element *aElement, ::mozilla::dom::Promise * * _retval) override { return _to TranslateFragment(aElement, _retval); } \
  NS_IMETHOD TranslateElements(const nsTArray<RefPtr<mozilla::dom::Element>>& aElements, ::mozilla::dom::Promise * * _retval) override { return _to TranslateElements(aElements, _retval); } \
  NS_IMETHOD ConnectRoot(mozilla::dom::Element *aElement) override { return _to ConnectRoot(aElement); } \
  NS_IMETHOD TranslateRoots(::mozilla::dom::Promise * * _retval) override { return _to TranslateRoots(_retval); } \
  NS_IMETHOD GetReady(::mozilla::dom::Promise * * aReady) override { return _to GetReady(aReady); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_MOZIDOMLOCALIZATION(_to) \
  NS_IMETHOD AddResourceIds(const nsTArray<nsString >& resourceIds, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddResourceIds(resourceIds, _retval); } \
  NS_IMETHOD RemoveResourceIds(const nsTArray<nsString >& resourceIds, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveResourceIds(resourceIds, _retval); } \
  NS_IMETHOD FormatMessages(const nsTArray<JS::Value >& aKeys, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatMessages(aKeys, _retval); } \
  NS_IMETHOD FormatValues(const nsTArray<JS::Value >& aKeys, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatValues(aKeys, _retval); } \
  NS_IMETHOD FormatValue(const nsAString& aId, JS::HandleValue aArgs, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatValue(aId, aArgs, _retval); } \
  NS_IMETHOD TranslateFragment(mozilla::dom::Element *aElement, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TranslateFragment(aElement, _retval); } \
  NS_IMETHOD TranslateElements(const nsTArray<RefPtr<mozilla::dom::Element>>& aElements, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TranslateElements(aElements, _retval); } \
  NS_IMETHOD ConnectRoot(mozilla::dom::Element *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConnectRoot(aElement); } \
  NS_IMETHOD TranslateRoots(::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TranslateRoots(_retval); } \
  NS_IMETHOD GetReady(::mozilla::dom::Promise * * aReady) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReady(aReady); } 


#endif /* __gen_mozIDOMLocalization_h__ */