/usr/include/thunderbird/nsIDOMSpeechRecognitionError.h is in thunderbird-dev 1:24.4.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-24.4.0+build1/mozilla/content/media/webspeech/recognition/nsIDOMSpeechRecognitionError.idl
*/
#ifndef __gen_nsIDOMSpeechRecognitionError_h__
#define __gen_nsIDOMSpeechRecognitionError_h__
#ifndef __gen_nsIDOMEvent_h__
#include "nsIDOMEvent.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIDOMSpeechRecognitionError */
#define NS_IDOMSPEECHRECOGNITIONERROR_IID_STR "5ddc5a46-e7db-4c5c-8ed4-80cf5d88fca3"
#define NS_IDOMSPEECHRECOGNITIONERROR_IID \
{0x5ddc5a46, 0xe7db, 0x4c5c, \
{ 0x8e, 0xd4, 0x80, 0xcf, 0x5d, 0x88, 0xfc, 0xa3 }}
class NS_NO_VTABLE nsIDOMSpeechRecognitionError : public nsIDOMEvent {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSPEECHRECOGNITIONERROR_IID)
enum {
NO_SPEECH = 0U,
ABORTED = 1U,
AUDIO_CAPTURE = 2U,
NETWORK = 3U,
NOT_ALLOWED = 4U,
SERVICE_NOT_ALLOWED = 5U,
BAD_GRAMMAR = 6U,
LANGUAGE_NOT_SUPPORTED = 7U
};
/* [noscript] void initSpeechRecognitionError (in DOMString eventTypeArg, in boolean canBubbleArg, in boolean cancelableArg, in unsigned long error, in DOMString message); */
NS_IMETHOD InitSpeechRecognitionError(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, uint32_t error, const nsAString & message) = 0;
/* readonly attribute unsigned long error; */
NS_IMETHOD GetError(uint32_t *aError) = 0;
/* readonly attribute DOMString message; */
NS_IMETHOD GetMessage(nsAString & aMessage) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMSpeechRecognitionError, NS_IDOMSPEECHRECOGNITIONERROR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMSPEECHRECOGNITIONERROR \
NS_IMETHOD InitSpeechRecognitionError(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, uint32_t error, const nsAString & message); \
NS_IMETHOD GetError(uint32_t *aError); \
NS_IMETHOD GetMessage(nsAString & aMessage);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMSPEECHRECOGNITIONERROR(_to) \
NS_IMETHOD InitSpeechRecognitionError(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, uint32_t error, const nsAString & message) { return _to InitSpeechRecognitionError(eventTypeArg, canBubbleArg, cancelableArg, error, message); } \
NS_IMETHOD GetError(uint32_t *aError) { return _to GetError(aError); } \
NS_IMETHOD GetMessage(nsAString & aMessage) { return _to GetMessage(aMessage); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMSPEECHRECOGNITIONERROR(_to) \
NS_IMETHOD InitSpeechRecognitionError(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, uint32_t error, const nsAString & message) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitSpeechRecognitionError(eventTypeArg, canBubbleArg, cancelableArg, error, message); } \
NS_IMETHOD GetError(uint32_t *aError) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetError(aError); } \
NS_IMETHOD GetMessage(nsAString & aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMSpeechRecognitionError : public nsIDOMSpeechRecognitionError
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMSPEECHRECOGNITIONERROR
nsDOMSpeechRecognitionError();
private:
~nsDOMSpeechRecognitionError();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMSpeechRecognitionError, nsIDOMSpeechRecognitionError)
nsDOMSpeechRecognitionError::nsDOMSpeechRecognitionError()
{
/* member initializers and constructor code */
}
nsDOMSpeechRecognitionError::~nsDOMSpeechRecognitionError()
{
/* destructor code */
}
/* [noscript] void initSpeechRecognitionError (in DOMString eventTypeArg, in boolean canBubbleArg, in boolean cancelableArg, in unsigned long error, in DOMString message); */
NS_IMETHODIMP nsDOMSpeechRecognitionError::InitSpeechRecognitionError(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, uint32_t error, const nsAString & message)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long error; */
NS_IMETHODIMP nsDOMSpeechRecognitionError::GetError(uint32_t *aError)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute DOMString message; */
NS_IMETHODIMP nsDOMSpeechRecognitionError::GetMessage(nsAString & aMessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDOMSpeechRecognitionError_h__ */
|