This file is indexed.

/usr/include/thunderbird/nsISpeechService.h is in thunderbird-dev 1:38.6.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
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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsISpeechService.idl
 */

#ifndef __gen_nsISpeechService_h__
#define __gen_nsISpeechService_h__


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

#include "js/Value.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
typedef uint16_t  SpeechServiceType;


/* starting interface:    nsISpeechTaskCallback */
#define NS_ISPEECHTASKCALLBACK_IID_STR "408251b0-1d7b-4876-888f-718859ce8c9d"

#define NS_ISPEECHTASKCALLBACK_IID \
  {0x408251b0, 0x1d7b, 0x4876, \
    { 0x88, 0x8f, 0x71, 0x88, 0x59, 0xce, 0x8c, 0x9d }}

class NS_NO_VTABLE nsISpeechTaskCallback : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPEECHTASKCALLBACK_IID)

  /* void onPause (); */
  NS_IMETHOD OnPause(void) = 0;

  /* void onResume (); */
  NS_IMETHOD OnResume(void) = 0;

  /* void onCancel (); */
  NS_IMETHOD OnCancel(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeechTaskCallback, NS_ISPEECHTASKCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISPEECHTASKCALLBACK \
  NS_IMETHOD OnPause(void) override; \
  NS_IMETHOD OnResume(void) override; \
  NS_IMETHOD OnCancel(void) override; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISPEECHTASKCALLBACK(_to) \
  NS_IMETHOD OnPause(void) override { return _to OnPause(); } \
  NS_IMETHOD OnResume(void) override { return _to OnResume(); } \
  NS_IMETHOD OnCancel(void) override { return _to OnCancel(); } 

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

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

/* Header file */
class nsSpeechTaskCallback : public nsISpeechTaskCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISPEECHTASKCALLBACK

  nsSpeechTaskCallback();

private:
  ~nsSpeechTaskCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsSpeechTaskCallback, nsISpeechTaskCallback)

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

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

/* void onPause (); */
NS_IMETHODIMP nsSpeechTaskCallback::OnPause()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onResume (); */
NS_IMETHODIMP nsSpeechTaskCallback::OnResume()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onCancel (); */
NS_IMETHODIMP nsSpeechTaskCallback::OnCancel()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsISpeechTask */
#define NS_ISPEECHTASK_IID_STR "ad59949c-2437-4b35-8eeb-d760caab75c5"

#define NS_ISPEECHTASK_IID \
  {0xad59949c, 0x2437, 0x4b35, \
    { 0x8e, 0xeb, 0xd7, 0x60, 0xca, 0xab, 0x75, 0xc5 }}

class NS_NO_VTABLE nsISpeechTask : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPEECHTASK_IID)

  /* [optional_argc] void setup (in nsISpeechTaskCallback aCallback, [optional] in uint32_t aChannels, [optional] in uint32_t aRate); */
  NS_IMETHOD Setup(nsISpeechTaskCallback *aCallback, uint32_t aChannels, uint32_t aRate, uint8_t _argc) = 0;

  /* [implicit_jscontext] void sendAudio (in jsval aData, in jsval aLandmarks); */
  NS_IMETHOD SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx) = 0;

  /* [noscript] void sendAudioNative ([array, size_is (aDataLen)] in short aData, in unsigned long aDataLen); */
  NS_IMETHOD SendAudioNative(int16_t *aData, uint32_t aDataLen) = 0;

  /* void dispatchStart (); */
  NS_IMETHOD DispatchStart(void) = 0;

  /* void dispatchEnd (in float aElapsedTime, in unsigned long aCharIndex); */
  NS_IMETHOD DispatchEnd(float aElapsedTime, uint32_t aCharIndex) = 0;

  /* void dispatchPause (in float aElapsedTime, in unsigned long aCharIndex); */
  NS_IMETHOD DispatchPause(float aElapsedTime, uint32_t aCharIndex) = 0;

  /* void dispatchResume (in float aElapsedTime, in unsigned long aCharIndex); */
  NS_IMETHOD DispatchResume(float aElapsedTime, uint32_t aCharIndex) = 0;

  /* void dispatchError (in float aElapsedTime, in unsigned long aCharIndex); */
  NS_IMETHOD DispatchError(float aElapsedTime, uint32_t aCharIndex) = 0;

  /* void dispatchBoundary (in DOMString aName, in float aElapsedTime, in unsigned long aCharIndex); */
  NS_IMETHOD DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) = 0;

  /* void dispatchMark (in DOMString aName, in float aElapsedTime, in unsigned long aCharIndex); */
  NS_IMETHOD DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeechTask, NS_ISPEECHTASK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISPEECHTASK \
  NS_IMETHOD Setup(nsISpeechTaskCallback *aCallback, uint32_t aChannels, uint32_t aRate, uint8_t _argc) override; \
  NS_IMETHOD SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx) override; \
  NS_IMETHOD SendAudioNative(int16_t *aData, uint32_t aDataLen) override; \
  NS_IMETHOD DispatchStart(void) override; \
  NS_IMETHOD DispatchEnd(float aElapsedTime, uint32_t aCharIndex) override; \
  NS_IMETHOD DispatchPause(float aElapsedTime, uint32_t aCharIndex) override; \
  NS_IMETHOD DispatchResume(float aElapsedTime, uint32_t aCharIndex) override; \
  NS_IMETHOD DispatchError(float aElapsedTime, uint32_t aCharIndex) override; \
  NS_IMETHOD DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) override; \
  NS_IMETHOD DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) override; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISPEECHTASK(_to) \
  NS_IMETHOD Setup(nsISpeechTaskCallback *aCallback, uint32_t aChannels, uint32_t aRate, uint8_t _argc) override { return _to Setup(aCallback, aChannels, aRate, _argc); } \
  NS_IMETHOD SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx) override { return _to SendAudio(aData, aLandmarks, cx); } \
  NS_IMETHOD SendAudioNative(int16_t *aData, uint32_t aDataLen) override { return _to SendAudioNative(aData, aDataLen); } \
  NS_IMETHOD DispatchStart(void) override { return _to DispatchStart(); } \
  NS_IMETHOD DispatchEnd(float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchEnd(aElapsedTime, aCharIndex); } \
  NS_IMETHOD DispatchPause(float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchPause(aElapsedTime, aCharIndex); } \
  NS_IMETHOD DispatchResume(float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchResume(aElapsedTime, aCharIndex); } \
  NS_IMETHOD DispatchError(float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchError(aElapsedTime, aCharIndex); } \
  NS_IMETHOD DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchBoundary(aName, aElapsedTime, aCharIndex); } \
  NS_IMETHOD DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchMark(aName, aElapsedTime, aCharIndex); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISPEECHTASK(_to) \
  NS_IMETHOD Setup(nsISpeechTaskCallback *aCallback, uint32_t aChannels, uint32_t aRate, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Setup(aCallback, aChannels, aRate, _argc); } \
  NS_IMETHOD SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendAudio(aData, aLandmarks, cx); } \
  NS_IMETHOD SendAudioNative(int16_t *aData, uint32_t aDataLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendAudioNative(aData, aDataLen); } \
  NS_IMETHOD DispatchStart(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchStart(); } \
  NS_IMETHOD DispatchEnd(float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchEnd(aElapsedTime, aCharIndex); } \
  NS_IMETHOD DispatchPause(float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchPause(aElapsedTime, aCharIndex); } \
  NS_IMETHOD DispatchResume(float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchResume(aElapsedTime, aCharIndex); } \
  NS_IMETHOD DispatchError(float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchError(aElapsedTime, aCharIndex); } \
  NS_IMETHOD DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchBoundary(aName, aElapsedTime, aCharIndex); } \
  NS_IMETHOD DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchMark(aName, aElapsedTime, aCharIndex); } 

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

/* Header file */
class nsSpeechTask : public nsISpeechTask
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISPEECHTASK

  nsSpeechTask();

private:
  ~nsSpeechTask();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsSpeechTask, nsISpeechTask)

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

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

/* [optional_argc] void setup (in nsISpeechTaskCallback aCallback, [optional] in uint32_t aChannels, [optional] in uint32_t aRate); */
NS_IMETHODIMP nsSpeechTask::Setup(nsISpeechTaskCallback *aCallback, uint32_t aChannels, uint32_t aRate, uint8_t _argc)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] void sendAudio (in jsval aData, in jsval aLandmarks); */
NS_IMETHODIMP nsSpeechTask::SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void sendAudioNative ([array, size_is (aDataLen)] in short aData, in unsigned long aDataLen); */
NS_IMETHODIMP nsSpeechTask::SendAudioNative(int16_t *aData, uint32_t aDataLen)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void dispatchStart (); */
NS_IMETHODIMP nsSpeechTask::DispatchStart()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void dispatchEnd (in float aElapsedTime, in unsigned long aCharIndex); */
NS_IMETHODIMP nsSpeechTask::DispatchEnd(float aElapsedTime, uint32_t aCharIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void dispatchPause (in float aElapsedTime, in unsigned long aCharIndex); */
NS_IMETHODIMP nsSpeechTask::DispatchPause(float aElapsedTime, uint32_t aCharIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void dispatchResume (in float aElapsedTime, in unsigned long aCharIndex); */
NS_IMETHODIMP nsSpeechTask::DispatchResume(float aElapsedTime, uint32_t aCharIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void dispatchError (in float aElapsedTime, in unsigned long aCharIndex); */
NS_IMETHODIMP nsSpeechTask::DispatchError(float aElapsedTime, uint32_t aCharIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void dispatchBoundary (in DOMString aName, in float aElapsedTime, in unsigned long aCharIndex); */
NS_IMETHODIMP nsSpeechTask::DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void dispatchMark (in DOMString aName, in float aElapsedTime, in unsigned long aCharIndex); */
NS_IMETHODIMP nsSpeechTask::DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsISpeechService */
#define NS_ISPEECHSERVICE_IID_STR "3952d388-050c-47ba-a70f-5fc1cadf1db0"

#define NS_ISPEECHSERVICE_IID \
  {0x3952d388, 0x050c, 0x47ba, \
    { 0xa7, 0x0f, 0x5f, 0xc1, 0xca, 0xdf, 0x1d, 0xb0 }}

class NS_NO_VTABLE nsISpeechService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPEECHSERVICE_IID)

  /* void speak (in DOMString aText, in DOMString aUri, in float aRate, in float aPitch, in nsISpeechTask aTask); */
  NS_IMETHOD Speak(const nsAString & aText, const nsAString & aUri, float aRate, float aPitch, nsISpeechTask *aTask) = 0;

  enum {
    SERVICETYPE_DIRECT_AUDIO = 1U,
    SERVICETYPE_INDIRECT_AUDIO = 2U
  };

  /* readonly attribute SpeechServiceType serviceType; */
  NS_IMETHOD GetServiceType(SpeechServiceType *aServiceType) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeechService, NS_ISPEECHSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISPEECHSERVICE \
  NS_IMETHOD Speak(const nsAString & aText, const nsAString & aUri, float aRate, float aPitch, nsISpeechTask *aTask) override; \
  NS_IMETHOD GetServiceType(SpeechServiceType *aServiceType) override; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISPEECHSERVICE(_to) \
  NS_IMETHOD Speak(const nsAString & aText, const nsAString & aUri, float aRate, float aPitch, nsISpeechTask *aTask) override { return _to Speak(aText, aUri, aRate, aPitch, aTask); } \
  NS_IMETHOD GetServiceType(SpeechServiceType *aServiceType) override { return _to GetServiceType(aServiceType); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISPEECHSERVICE(_to) \
  NS_IMETHOD Speak(const nsAString & aText, const nsAString & aUri, float aRate, float aPitch, nsISpeechTask *aTask) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Speak(aText, aUri, aRate, aPitch, aTask); } \
  NS_IMETHOD GetServiceType(SpeechServiceType *aServiceType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceType(aServiceType); } 

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

/* Header file */
class nsSpeechService : public nsISpeechService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISPEECHSERVICE

  nsSpeechService();

private:
  ~nsSpeechService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsSpeechService, nsISpeechService)

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

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

/* void speak (in DOMString aText, in DOMString aUri, in float aRate, in float aPitch, in nsISpeechTask aTask); */
NS_IMETHODIMP nsSpeechService::Speak(const nsAString & aText, const nsAString & aUri, float aRate, float aPitch, nsISpeechTask *aTask)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute SpeechServiceType serviceType; */
NS_IMETHODIMP nsSpeechService::GetServiceType(SpeechServiceType *aServiceType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsISpeechService_h__ */