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

nsIFakePluginTag

nsIPluginTag

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 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPluginTag.idl
 */

#ifndef __gen_nsIPluginTag_h__
#define __gen_nsIPluginTag_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 nsIURI; /* forward declaration */


/* starting interface:    nsIPluginTag */
#define NS_IPLUGINTAG_IID_STR "5daa99d5-265a-4397-b429-c943803e2619"

#define NS_IPLUGINTAG_IID \
  {0x5daa99d5, 0x265a, 0x4397, \
    { 0xb4, 0x29, 0xc9, 0x43, 0x80, 0x3e, 0x26, 0x19 }}

class NS_NO_VTABLE nsIPluginTag : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPLUGINTAG_IID)

  enum {
    STATE_DISABLED = 0U,
    STATE_CLICKTOPLAY = 1U,
    STATE_ENABLED = 2U
  };

  /* readonly attribute AUTF8String description; */
  NS_IMETHOD GetDescription(nsACString & aDescription) = 0;

  /* readonly attribute AUTF8String filename; */
  NS_IMETHOD GetFilename(nsACString & aFilename) = 0;

  /* readonly attribute AUTF8String fullpath; */
  NS_IMETHOD GetFullpath(nsACString & aFullpath) = 0;

  /* readonly attribute AUTF8String version; */
  NS_IMETHOD GetVersion(nsACString & aVersion) = 0;

  /* readonly attribute AUTF8String name; */
  NS_IMETHOD GetName(nsACString & aName) = 0;

  /* readonly attribute AUTF8String niceName; */
  NS_IMETHOD GetNiceName(nsACString & aNiceName) = 0;

  /* readonly attribute boolean blocklisted; */
  NS_IMETHOD GetBlocklisted(bool *aBlocklisted) = 0;

  /* readonly attribute boolean isEnabledStateLocked; */
  NS_IMETHOD GetIsEnabledStateLocked(bool *aIsEnabledStateLocked) = 0;

  /* readonly attribute boolean active; */
  NS_IMETHOD GetActive(bool *aActive) = 0;

  /* readonly attribute unsigned long blocklistState; */
  NS_IMETHOD GetBlocklistState(uint32_t *aBlocklistState) = 0;

  /* readonly attribute boolean disabled; */
  NS_IMETHOD GetDisabled(bool *aDisabled) = 0;

  /* readonly attribute boolean clicktoplay; */
  NS_IMETHOD GetClicktoplay(bool *aClicktoplay) = 0;

  /* readonly attribute boolean loaded; */
  NS_IMETHOD GetLoaded(bool *aLoaded) = 0;

  /* attribute unsigned long enabledState; */
  NS_IMETHOD GetEnabledState(uint32_t *aEnabledState) = 0;
  NS_IMETHOD SetEnabledState(uint32_t aEnabledState) = 0;

  /* readonly attribute PRTime lastModifiedTime; */
  NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) = 0;

  /* void getMimeTypes ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aResults); */
  NS_IMETHOD GetMimeTypes(uint32_t *aCount, char16_t * **aResults) = 0;

  /* void getMimeDescriptions ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aResults); */
  NS_IMETHOD GetMimeDescriptions(uint32_t *aCount, char16_t * **aResults) = 0;

  /* void getExtensions ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aResults); */
  NS_IMETHOD GetExtensions(uint32_t *aCount, char16_t * **aResults) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPluginTag, NS_IPLUGINTAG_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPLUGINTAG \
  NS_IMETHOD GetDescription(nsACString & aDescription) override; \
  NS_IMETHOD GetFilename(nsACString & aFilename) override; \
  NS_IMETHOD GetFullpath(nsACString & aFullpath) override; \
  NS_IMETHOD GetVersion(nsACString & aVersion) override; \
  NS_IMETHOD GetName(nsACString & aName) override; \
  NS_IMETHOD GetNiceName(nsACString & aNiceName) override; \
  NS_IMETHOD GetBlocklisted(bool *aBlocklisted) override; \
  NS_IMETHOD GetIsEnabledStateLocked(bool *aIsEnabledStateLocked) override; \
  NS_IMETHOD GetActive(bool *aActive) override; \
  NS_IMETHOD GetBlocklistState(uint32_t *aBlocklistState) override; \
  NS_IMETHOD GetDisabled(bool *aDisabled) override; \
  NS_IMETHOD GetClicktoplay(bool *aClicktoplay) override; \
  NS_IMETHOD GetLoaded(bool *aLoaded) override; \
  NS_IMETHOD GetEnabledState(uint32_t *aEnabledState) override; \
  NS_IMETHOD SetEnabledState(uint32_t aEnabledState) override; \
  NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override; \
  NS_IMETHOD GetMimeTypes(uint32_t *aCount, char16_t * **aResults) override; \
  NS_IMETHOD GetMimeDescriptions(uint32_t *aCount, char16_t * **aResults) override; \
  NS_IMETHOD GetExtensions(uint32_t *aCount, char16_t * **aResults) 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_NSIPLUGINTAG \
  nsresult GetDescription(nsACString & aDescription); \
  nsresult GetFilename(nsACString & aFilename); \
  nsresult GetFullpath(nsACString & aFullpath); \
  nsresult GetVersion(nsACString & aVersion); \
  nsresult GetName(nsACString & aName); \
  nsresult GetNiceName(nsACString & aNiceName); \
  nsresult GetBlocklisted(bool *aBlocklisted); \
  nsresult GetIsEnabledStateLocked(bool *aIsEnabledStateLocked); \
  nsresult GetActive(bool *aActive); \
  nsresult GetBlocklistState(uint32_t *aBlocklistState); \
  nsresult GetDisabled(bool *aDisabled); \
  nsresult GetClicktoplay(bool *aClicktoplay); \
  nsresult GetLoaded(bool *aLoaded); \
  nsresult GetEnabledState(uint32_t *aEnabledState); \
  nsresult SetEnabledState(uint32_t aEnabledState); \
  nsresult GetLastModifiedTime(PRTime *aLastModifiedTime); \
  nsresult GetMimeTypes(uint32_t *aCount, char16_t * **aResults); \
  nsresult GetMimeDescriptions(uint32_t *aCount, char16_t * **aResults); \
  nsresult GetExtensions(uint32_t *aCount, char16_t * **aResults); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPLUGINTAG(_to) \
  NS_IMETHOD GetDescription(nsACString & aDescription) override { return _to GetDescription(aDescription); } \
  NS_IMETHOD GetFilename(nsACString & aFilename) override { return _to GetFilename(aFilename); } \
  NS_IMETHOD GetFullpath(nsACString & aFullpath) override { return _to GetFullpath(aFullpath); } \
  NS_IMETHOD GetVersion(nsACString & aVersion) override { return _to GetVersion(aVersion); } \
  NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetNiceName(nsACString & aNiceName) override { return _to GetNiceName(aNiceName); } \
  NS_IMETHOD GetBlocklisted(bool *aBlocklisted) override { return _to GetBlocklisted(aBlocklisted); } \
  NS_IMETHOD GetIsEnabledStateLocked(bool *aIsEnabledStateLocked) override { return _to GetIsEnabledStateLocked(aIsEnabledStateLocked); } \
  NS_IMETHOD GetActive(bool *aActive) override { return _to GetActive(aActive); } \
  NS_IMETHOD GetBlocklistState(uint32_t *aBlocklistState) override { return _to GetBlocklistState(aBlocklistState); } \
  NS_IMETHOD GetDisabled(bool *aDisabled) override { return _to GetDisabled(aDisabled); } \
  NS_IMETHOD GetClicktoplay(bool *aClicktoplay) override { return _to GetClicktoplay(aClicktoplay); } \
  NS_IMETHOD GetLoaded(bool *aLoaded) override { return _to GetLoaded(aLoaded); } \
  NS_IMETHOD GetEnabledState(uint32_t *aEnabledState) override { return _to GetEnabledState(aEnabledState); } \
  NS_IMETHOD SetEnabledState(uint32_t aEnabledState) override { return _to SetEnabledState(aEnabledState); } \
  NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override { return _to GetLastModifiedTime(aLastModifiedTime); } \
  NS_IMETHOD GetMimeTypes(uint32_t *aCount, char16_t * **aResults) override { return _to GetMimeTypes(aCount, aResults); } \
  NS_IMETHOD GetMimeDescriptions(uint32_t *aCount, char16_t * **aResults) override { return _to GetMimeDescriptions(aCount, aResults); } \
  NS_IMETHOD GetExtensions(uint32_t *aCount, char16_t * **aResults) override { return _to GetExtensions(aCount, aResults); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPLUGINTAG(_to) \
  NS_IMETHOD GetDescription(nsACString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
  NS_IMETHOD GetFilename(nsACString & aFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilename(aFilename); } \
  NS_IMETHOD GetFullpath(nsACString & aFullpath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFullpath(aFullpath); } \
  NS_IMETHOD GetVersion(nsACString & aVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersion(aVersion); } \
  NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetNiceName(nsACString & aNiceName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNiceName(aNiceName); } \
  NS_IMETHOD GetBlocklisted(bool *aBlocklisted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlocklisted(aBlocklisted); } \
  NS_IMETHOD GetIsEnabledStateLocked(bool *aIsEnabledStateLocked) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsEnabledStateLocked(aIsEnabledStateLocked); } \
  NS_IMETHOD GetActive(bool *aActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActive(aActive); } \
  NS_IMETHOD GetBlocklistState(uint32_t *aBlocklistState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlocklistState(aBlocklistState); } \
  NS_IMETHOD GetDisabled(bool *aDisabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  NS_IMETHOD GetClicktoplay(bool *aClicktoplay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClicktoplay(aClicktoplay); } \
  NS_IMETHOD GetLoaded(bool *aLoaded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoaded(aLoaded); } \
  NS_IMETHOD GetEnabledState(uint32_t *aEnabledState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnabledState(aEnabledState); } \
  NS_IMETHOD SetEnabledState(uint32_t aEnabledState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnabledState(aEnabledState); } \
  NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModifiedTime(aLastModifiedTime); } \
  NS_IMETHOD GetMimeTypes(uint32_t *aCount, char16_t * **aResults) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeTypes(aCount, aResults); } \
  NS_IMETHOD GetMimeDescriptions(uint32_t *aCount, char16_t * **aResults) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeDescriptions(aCount, aResults); } \
  NS_IMETHOD GetExtensions(uint32_t *aCount, char16_t * **aResults) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExtensions(aCount, aResults); } 

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

/* Header file */
class nsPluginTag : public nsIPluginTag
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPLUGINTAG

  nsPluginTag();

private:
  ~nsPluginTag();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPluginTag, nsIPluginTag)

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

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

/* readonly attribute AUTF8String description; */
NS_IMETHODIMP nsPluginTag::GetDescription(nsACString & aDescription)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String filename; */
NS_IMETHODIMP nsPluginTag::GetFilename(nsACString & aFilename)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String fullpath; */
NS_IMETHODIMP nsPluginTag::GetFullpath(nsACString & aFullpath)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String version; */
NS_IMETHODIMP nsPluginTag::GetVersion(nsACString & aVersion)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String name; */
NS_IMETHODIMP nsPluginTag::GetName(nsACString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String niceName; */
NS_IMETHODIMP nsPluginTag::GetNiceName(nsACString & aNiceName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean blocklisted; */
NS_IMETHODIMP nsPluginTag::GetBlocklisted(bool *aBlocklisted)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isEnabledStateLocked; */
NS_IMETHODIMP nsPluginTag::GetIsEnabledStateLocked(bool *aIsEnabledStateLocked)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean active; */
NS_IMETHODIMP nsPluginTag::GetActive(bool *aActive)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long blocklistState; */
NS_IMETHODIMP nsPluginTag::GetBlocklistState(uint32_t *aBlocklistState)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean disabled; */
NS_IMETHODIMP nsPluginTag::GetDisabled(bool *aDisabled)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean clicktoplay; */
NS_IMETHODIMP nsPluginTag::GetClicktoplay(bool *aClicktoplay)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean loaded; */
NS_IMETHODIMP nsPluginTag::GetLoaded(bool *aLoaded)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long enabledState; */
NS_IMETHODIMP nsPluginTag::GetEnabledState(uint32_t *aEnabledState)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPluginTag::SetEnabledState(uint32_t aEnabledState)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute PRTime lastModifiedTime; */
NS_IMETHODIMP nsPluginTag::GetLastModifiedTime(PRTime *aLastModifiedTime)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getMimeTypes ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aResults); */
NS_IMETHODIMP nsPluginTag::GetMimeTypes(uint32_t *aCount, char16_t * **aResults)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getMimeDescriptions ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aResults); */
NS_IMETHODIMP nsPluginTag::GetMimeDescriptions(uint32_t *aCount, char16_t * **aResults)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getExtensions ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aResults); */
NS_IMETHODIMP nsPluginTag::GetExtensions(uint32_t *aCount, char16_t * **aResults)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIFakePluginTag */
#define NS_IFAKEPLUGINTAG_IID_STR "6d22c968-226d-4156-b230-da6ad6bbf6e8"

#define NS_IFAKEPLUGINTAG_IID \
  {0x6d22c968, 0x226d, 0x4156, \
    { 0xb2, 0x30, 0xda, 0x6a, 0xd6, 0xbb, 0xf6, 0xe8 }}

class NS_NO_VTABLE nsIFakePluginTag : public nsIPluginTag {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFAKEPLUGINTAG_IID)

  /* readonly attribute nsIURI handlerURI; */
  NS_IMETHOD GetHandlerURI(nsIURI * *aHandlerURI) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIFakePluginTag, NS_IFAKEPLUGINTAG_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFAKEPLUGINTAG \
  NS_IMETHOD GetHandlerURI(nsIURI * *aHandlerURI) 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_NSIFAKEPLUGINTAG \
  nsresult GetHandlerURI(nsIURI * *aHandlerURI); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFAKEPLUGINTAG(_to) \
  NS_IMETHOD GetHandlerURI(nsIURI * *aHandlerURI) override { return _to GetHandlerURI(aHandlerURI); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFAKEPLUGINTAG(_to) \
  NS_IMETHOD GetHandlerURI(nsIURI * *aHandlerURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHandlerURI(aHandlerURI); } 

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

/* Header file */
class nsFakePluginTag : public nsIFakePluginTag
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIFAKEPLUGINTAG

  nsFakePluginTag();

private:
  ~nsFakePluginTag();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsFakePluginTag, nsIFakePluginTag)

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

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

/* readonly attribute nsIURI handlerURI; */
NS_IMETHODIMP nsFakePluginTag::GetHandlerURI(nsIURI * *aHandlerURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIPluginTag_h__ */