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

nsIDOMFontFace

Macros

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 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMFontFace.idl
 */

#ifndef __gen_nsIDOMFontFace_h__
#define __gen_nsIDOMFontFace_h__


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

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIDOMCSSFontFaceRule; /* forward declaration */

class nsIDOMCSSStyleDeclaration; /* forward declaration */


/* starting interface:    nsIDOMFontFace */
#define NS_IDOMFONTFACE_IID_STR "9a3b1272-6585-4f41-b08f-fdc5da444cd0"

#define NS_IDOMFONTFACE_IID \
  {0x9a3b1272, 0x6585, 0x4f41, \
    { 0xb0, 0x8f, 0xfd, 0xc5, 0xda, 0x44, 0x4c, 0xd0 }}

class NS_NO_VTABLE nsIDOMFontFace : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMFONTFACE_IID)

  /* readonly attribute boolean fromFontGroup; */
  NS_IMETHOD GetFromFontGroup(bool *aFromFontGroup) = 0;

  /* readonly attribute boolean fromLanguagePrefs; */
  NS_IMETHOD GetFromLanguagePrefs(bool *aFromLanguagePrefs) = 0;

  /* readonly attribute boolean fromSystemFallback; */
  NS_IMETHOD GetFromSystemFallback(bool *aFromSystemFallback) = 0;

  /* readonly attribute DOMString name; */
  NS_IMETHOD GetName(nsAString & aName) = 0;

  /* readonly attribute DOMString CSSFamilyName; */
  NS_IMETHOD GetCSSFamilyName(nsAString & aCSSFamilyName) = 0;

  /* readonly attribute nsIDOMCSSFontFaceRule rule; */
  NS_IMETHOD GetRule(nsIDOMCSSFontFaceRule * *aRule) = 0;

  /* readonly attribute long srcIndex; */
  NS_IMETHOD GetSrcIndex(int32_t *aSrcIndex) = 0;

  /* readonly attribute DOMString URI; */
  NS_IMETHOD GetURI(nsAString & aURI) = 0;

  /* readonly attribute DOMString localName; */
  NS_IMETHOD GetLocalName(nsAString & aLocalName) = 0;

  /* readonly attribute DOMString format; */
  NS_IMETHOD GetFormat(nsAString & aFormat) = 0;

  /* readonly attribute DOMString metadata; */
  NS_IMETHOD GetMetadata(nsAString & aMetadata) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMFontFace, NS_IDOMFONTFACE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMFONTFACE \
  NS_IMETHOD GetFromFontGroup(bool *aFromFontGroup) override; \
  NS_IMETHOD GetFromLanguagePrefs(bool *aFromLanguagePrefs) override; \
  NS_IMETHOD GetFromSystemFallback(bool *aFromSystemFallback) override; \
  NS_IMETHOD GetName(nsAString & aName) override; \
  NS_IMETHOD GetCSSFamilyName(nsAString & aCSSFamilyName) override; \
  NS_IMETHOD GetRule(nsIDOMCSSFontFaceRule * *aRule) override; \
  NS_IMETHOD GetSrcIndex(int32_t *aSrcIndex) override; \
  NS_IMETHOD GetURI(nsAString & aURI) override; \
  NS_IMETHOD GetLocalName(nsAString & aLocalName) override; \
  NS_IMETHOD GetFormat(nsAString & aFormat) override; \
  NS_IMETHOD GetMetadata(nsAString & aMetadata) 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_NSIDOMFONTFACE \
  nsresult GetFromFontGroup(bool *aFromFontGroup); \
  nsresult GetFromLanguagePrefs(bool *aFromLanguagePrefs); \
  nsresult GetFromSystemFallback(bool *aFromSystemFallback); \
  nsresult GetName(nsAString & aName); \
  nsresult GetCSSFamilyName(nsAString & aCSSFamilyName); \
  nsresult GetRule(nsIDOMCSSFontFaceRule * *aRule); \
  nsresult GetSrcIndex(int32_t *aSrcIndex); \
  nsresult GetURI(nsAString & aURI); \
  nsresult GetLocalName(nsAString & aLocalName); \
  nsresult GetFormat(nsAString & aFormat); \
  nsresult GetMetadata(nsAString & aMetadata); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMFONTFACE(_to) \
  NS_IMETHOD GetFromFontGroup(bool *aFromFontGroup) override { return _to GetFromFontGroup(aFromFontGroup); } \
  NS_IMETHOD GetFromLanguagePrefs(bool *aFromLanguagePrefs) override { return _to GetFromLanguagePrefs(aFromLanguagePrefs); } \
  NS_IMETHOD GetFromSystemFallback(bool *aFromSystemFallback) override { return _to GetFromSystemFallback(aFromSystemFallback); } \
  NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetCSSFamilyName(nsAString & aCSSFamilyName) override { return _to GetCSSFamilyName(aCSSFamilyName); } \
  NS_IMETHOD GetRule(nsIDOMCSSFontFaceRule * *aRule) override { return _to GetRule(aRule); } \
  NS_IMETHOD GetSrcIndex(int32_t *aSrcIndex) override { return _to GetSrcIndex(aSrcIndex); } \
  NS_IMETHOD GetURI(nsAString & aURI) override { return _to GetURI(aURI); } \
  NS_IMETHOD GetLocalName(nsAString & aLocalName) override { return _to GetLocalName(aLocalName); } \
  NS_IMETHOD GetFormat(nsAString & aFormat) override { return _to GetFormat(aFormat); } \
  NS_IMETHOD GetMetadata(nsAString & aMetadata) override { return _to GetMetadata(aMetadata); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMFONTFACE(_to) \
  NS_IMETHOD GetFromFontGroup(bool *aFromFontGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFromFontGroup(aFromFontGroup); } \
  NS_IMETHOD GetFromLanguagePrefs(bool *aFromLanguagePrefs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFromLanguagePrefs(aFromLanguagePrefs); } \
  NS_IMETHOD GetFromSystemFallback(bool *aFromSystemFallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFromSystemFallback(aFromSystemFallback); } \
  NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetCSSFamilyName(nsAString & aCSSFamilyName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCSSFamilyName(aCSSFamilyName); } \
  NS_IMETHOD GetRule(nsIDOMCSSFontFaceRule * *aRule) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRule(aRule); } \
  NS_IMETHOD GetSrcIndex(int32_t *aSrcIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrcIndex(aSrcIndex); } \
  NS_IMETHOD GetURI(nsAString & aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
  NS_IMETHOD GetLocalName(nsAString & aLocalName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalName(aLocalName); } \
  NS_IMETHOD GetFormat(nsAString & aFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormat(aFormat); } \
  NS_IMETHOD GetMetadata(nsAString & aMetadata) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetadata(aMetadata); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsDOMFontFace : public nsIDOMFontFace
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMFONTFACE

  nsDOMFontFace();

private:
  ~nsDOMFontFace();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsDOMFontFace, nsIDOMFontFace)

nsDOMFontFace::nsDOMFontFace()
{
  /* member initializers and constructor code */
}

nsDOMFontFace::~nsDOMFontFace()
{
  /* destructor code */
}

/* readonly attribute boolean fromFontGroup; */
NS_IMETHODIMP nsDOMFontFace::GetFromFontGroup(bool *aFromFontGroup)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean fromLanguagePrefs; */
NS_IMETHODIMP nsDOMFontFace::GetFromLanguagePrefs(bool *aFromLanguagePrefs)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean fromSystemFallback; */
NS_IMETHODIMP nsDOMFontFace::GetFromSystemFallback(bool *aFromSystemFallback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString name; */
NS_IMETHODIMP nsDOMFontFace::GetName(nsAString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString CSSFamilyName; */
NS_IMETHODIMP nsDOMFontFace::GetCSSFamilyName(nsAString & aCSSFamilyName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIDOMCSSFontFaceRule rule; */
NS_IMETHODIMP nsDOMFontFace::GetRule(nsIDOMCSSFontFaceRule * *aRule)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long srcIndex; */
NS_IMETHODIMP nsDOMFontFace::GetSrcIndex(int32_t *aSrcIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString URI; */
NS_IMETHODIMP nsDOMFontFace::GetURI(nsAString & aURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString localName; */
NS_IMETHODIMP nsDOMFontFace::GetLocalName(nsAString & aLocalName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString format; */
NS_IMETHODIMP nsDOMFontFace::GetFormat(nsAString & aFormat)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString metadata; */
NS_IMETHODIMP nsDOMFontFace::GetMetadata(nsAString & aMetadata)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIDOMFontFace_h__ */