LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsISpeechService.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsISpeechService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsISpeechService_h__
       6             : #define __gen_nsISpeechService_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #include "js/Value.h"
      14             : 
      15             : /* For IDL files that don't want to include root IDL files. */
      16             : #ifndef NS_NO_VTABLE
      17             : #define NS_NO_VTABLE
      18             : #endif
      19             : typedef uint16_t  SpeechServiceType;
      20             : 
      21             : 
      22             : /* starting interface:    nsISpeechTaskCallback */
      23             : #define NS_ISPEECHTASKCALLBACK_IID_STR "c576de0c-8a3d-4570-be7e-9876d3e5bed2"
      24             : 
      25             : #define NS_ISPEECHTASKCALLBACK_IID \
      26             :   {0xc576de0c, 0x8a3d, 0x4570, \
      27             :     { 0xbe, 0x7e, 0x98, 0x76, 0xd3, 0xe5, 0xbe, 0xd2 }}
      28             : 
      29           0 : class NS_NO_VTABLE nsISpeechTaskCallback : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPEECHTASKCALLBACK_IID)
      33             : 
      34             :   /* void onPause (); */
      35             :   NS_IMETHOD OnPause(void) = 0;
      36             : 
      37             :   /* void onResume (); */
      38             :   NS_IMETHOD OnResume(void) = 0;
      39             : 
      40             :   /* void onCancel (); */
      41             :   NS_IMETHOD OnCancel(void) = 0;
      42             : 
      43             :   /* void onVolumeChanged (in float aVolume); */
      44             :   NS_IMETHOD OnVolumeChanged(float aVolume) = 0;
      45             : 
      46             : };
      47             : 
      48             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeechTaskCallback, NS_ISPEECHTASKCALLBACK_IID)
      49             : 
      50             : /* Use this macro when declaring classes that implement this interface. */
      51             : #define NS_DECL_NSISPEECHTASKCALLBACK \
      52             :   NS_IMETHOD OnPause(void) override; \
      53             :   NS_IMETHOD OnResume(void) override; \
      54             :   NS_IMETHOD OnCancel(void) override; \
      55             :   NS_IMETHOD OnVolumeChanged(float aVolume) override; 
      56             : 
      57             : /* Use this macro when declaring the members of this interface when the
      58             :    class doesn't implement the interface. This is useful for forwarding. */
      59             : #define NS_DECL_NON_VIRTUAL_NSISPEECHTASKCALLBACK \
      60             :   nsresult OnPause(void); \
      61             :   nsresult OnResume(void); \
      62             :   nsresult OnCancel(void); \
      63             :   nsresult OnVolumeChanged(float aVolume); 
      64             : 
      65             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      66             : #define NS_FORWARD_NSISPEECHTASKCALLBACK(_to) \
      67             :   NS_IMETHOD OnPause(void) override { return _to OnPause(); } \
      68             :   NS_IMETHOD OnResume(void) override { return _to OnResume(); } \
      69             :   NS_IMETHOD OnCancel(void) override { return _to OnCancel(); } \
      70             :   NS_IMETHOD OnVolumeChanged(float aVolume) override { return _to OnVolumeChanged(aVolume); } 
      71             : 
      72             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      73             : #define NS_FORWARD_SAFE_NSISPEECHTASKCALLBACK(_to) \
      74             :   NS_IMETHOD OnPause(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPause(); } \
      75             :   NS_IMETHOD OnResume(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResume(); } \
      76             :   NS_IMETHOD OnCancel(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCancel(); } \
      77             :   NS_IMETHOD OnVolumeChanged(float aVolume) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnVolumeChanged(aVolume); } 
      78             : 
      79             : #if 0
      80             : /* Use the code below as a template for the implementation class for this interface. */
      81             : 
      82             : /* Header file */
      83             : class nsSpeechTaskCallback : public nsISpeechTaskCallback
      84             : {
      85             : public:
      86             :   NS_DECL_ISUPPORTS
      87             :   NS_DECL_NSISPEECHTASKCALLBACK
      88             : 
      89             :   nsSpeechTaskCallback();
      90             : 
      91             : private:
      92             :   ~nsSpeechTaskCallback();
      93             : 
      94             : protected:
      95             :   /* additional members */
      96             : };
      97             : 
      98             : /* Implementation file */
      99             : NS_IMPL_ISUPPORTS(nsSpeechTaskCallback, nsISpeechTaskCallback)
     100             : 
     101             : nsSpeechTaskCallback::nsSpeechTaskCallback()
     102             : {
     103             :   /* member initializers and constructor code */
     104             : }
     105             : 
     106             : nsSpeechTaskCallback::~nsSpeechTaskCallback()
     107             : {
     108             :   /* destructor code */
     109             : }
     110             : 
     111             : /* void onPause (); */
     112             : NS_IMETHODIMP nsSpeechTaskCallback::OnPause()
     113             : {
     114             :     return NS_ERROR_NOT_IMPLEMENTED;
     115             : }
     116             : 
     117             : /* void onResume (); */
     118             : NS_IMETHODIMP nsSpeechTaskCallback::OnResume()
     119             : {
     120             :     return NS_ERROR_NOT_IMPLEMENTED;
     121             : }
     122             : 
     123             : /* void onCancel (); */
     124             : NS_IMETHODIMP nsSpeechTaskCallback::OnCancel()
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : 
     129             : /* void onVolumeChanged (in float aVolume); */
     130             : NS_IMETHODIMP nsSpeechTaskCallback::OnVolumeChanged(float aVolume)
     131             : {
     132             :     return NS_ERROR_NOT_IMPLEMENTED;
     133             : }
     134             : 
     135             : /* End of implementation class template. */
     136             : #endif
     137             : 
     138             : 
     139             : /* starting interface:    nsISpeechTask */
     140             : #define NS_ISPEECHTASK_IID_STR "ad59949c-2437-4b35-8eeb-d760caab75c5"
     141             : 
     142             : #define NS_ISPEECHTASK_IID \
     143             :   {0xad59949c, 0x2437, 0x4b35, \
     144             :     { 0x8e, 0xeb, 0xd7, 0x60, 0xca, 0xab, 0x75, 0xc5 }}
     145             : 
     146           0 : class NS_NO_VTABLE nsISpeechTask : public nsISupports {
     147             :  public:
     148             : 
     149             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPEECHTASK_IID)
     150             : 
     151             :   /* [optional_argc] void setup (in nsISpeechTaskCallback aCallback, [optional] in uint32_t aChannels, [optional] in uint32_t aRate); */
     152             :   NS_IMETHOD Setup(nsISpeechTaskCallback *aCallback, uint32_t aChannels, uint32_t aRate, uint8_t _argc) = 0;
     153             : 
     154             :   /* [implicit_jscontext] void sendAudio (in jsval aData, in jsval aLandmarks); */
     155             :   NS_IMETHOD SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx) = 0;
     156             : 
     157             :   /* [noscript] void sendAudioNative ([array, size_is (aDataLen)] in short aData, in unsigned long aDataLen); */
     158             :   NS_IMETHOD SendAudioNative(int16_t *aData, uint32_t aDataLen) = 0;
     159             : 
     160             :   /* void dispatchStart (); */
     161             :   NS_IMETHOD DispatchStart(void) = 0;
     162             : 
     163             :   /* void dispatchEnd (in float aElapsedTime, in unsigned long aCharIndex); */
     164             :   NS_IMETHOD DispatchEnd(float aElapsedTime, uint32_t aCharIndex) = 0;
     165             : 
     166             :   /* void dispatchPause (in float aElapsedTime, in unsigned long aCharIndex); */
     167             :   NS_IMETHOD DispatchPause(float aElapsedTime, uint32_t aCharIndex) = 0;
     168             : 
     169             :   /* void dispatchResume (in float aElapsedTime, in unsigned long aCharIndex); */
     170             :   NS_IMETHOD DispatchResume(float aElapsedTime, uint32_t aCharIndex) = 0;
     171             : 
     172             :   /* void dispatchError (in float aElapsedTime, in unsigned long aCharIndex); */
     173             :   NS_IMETHOD DispatchError(float aElapsedTime, uint32_t aCharIndex) = 0;
     174             : 
     175             :   /* [optional_argc] void dispatchBoundary (in DOMString aName, in float aElapsedTime, in unsigned long aCharIndex, [optional] in unsigned long aCharLength); */
     176             :   NS_IMETHOD DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex, uint32_t aCharLength, uint8_t _argc) = 0;
     177             : 
     178             :   /* void dispatchMark (in DOMString aName, in float aElapsedTime, in unsigned long aCharIndex); */
     179             :   NS_IMETHOD DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) = 0;
     180             : 
     181             : };
     182             : 
     183             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeechTask, NS_ISPEECHTASK_IID)
     184             : 
     185             : /* Use this macro when declaring classes that implement this interface. */
     186             : #define NS_DECL_NSISPEECHTASK \
     187             :   NS_IMETHOD Setup(nsISpeechTaskCallback *aCallback, uint32_t aChannels, uint32_t aRate, uint8_t _argc) override; \
     188             :   NS_IMETHOD SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx) override; \
     189             :   NS_IMETHOD SendAudioNative(int16_t *aData, uint32_t aDataLen) override; \
     190             :   NS_IMETHOD DispatchStart(void) override; \
     191             :   NS_IMETHOD DispatchEnd(float aElapsedTime, uint32_t aCharIndex) override; \
     192             :   NS_IMETHOD DispatchPause(float aElapsedTime, uint32_t aCharIndex) override; \
     193             :   NS_IMETHOD DispatchResume(float aElapsedTime, uint32_t aCharIndex) override; \
     194             :   NS_IMETHOD DispatchError(float aElapsedTime, uint32_t aCharIndex) override; \
     195             :   NS_IMETHOD DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex, uint32_t aCharLength, uint8_t _argc) override; \
     196             :   NS_IMETHOD DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) override; 
     197             : 
     198             : /* Use this macro when declaring the members of this interface when the
     199             :    class doesn't implement the interface. This is useful for forwarding. */
     200             : #define NS_DECL_NON_VIRTUAL_NSISPEECHTASK \
     201             :   nsresult Setup(nsISpeechTaskCallback *aCallback, uint32_t aChannels, uint32_t aRate, uint8_t _argc); \
     202             :   nsresult SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx); \
     203             :   nsresult SendAudioNative(int16_t *aData, uint32_t aDataLen); \
     204             :   nsresult DispatchStart(void); \
     205             :   nsresult DispatchEnd(float aElapsedTime, uint32_t aCharIndex); \
     206             :   nsresult DispatchPause(float aElapsedTime, uint32_t aCharIndex); \
     207             :   nsresult DispatchResume(float aElapsedTime, uint32_t aCharIndex); \
     208             :   nsresult DispatchError(float aElapsedTime, uint32_t aCharIndex); \
     209             :   nsresult DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex, uint32_t aCharLength, uint8_t _argc); \
     210             :   nsresult DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex); 
     211             : 
     212             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     213             : #define NS_FORWARD_NSISPEECHTASK(_to) \
     214             :   NS_IMETHOD Setup(nsISpeechTaskCallback *aCallback, uint32_t aChannels, uint32_t aRate, uint8_t _argc) override { return _to Setup(aCallback, aChannels, aRate, _argc); } \
     215             :   NS_IMETHOD SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx) override { return _to SendAudio(aData, aLandmarks, cx); } \
     216             :   NS_IMETHOD SendAudioNative(int16_t *aData, uint32_t aDataLen) override { return _to SendAudioNative(aData, aDataLen); } \
     217             :   NS_IMETHOD DispatchStart(void) override { return _to DispatchStart(); } \
     218             :   NS_IMETHOD DispatchEnd(float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchEnd(aElapsedTime, aCharIndex); } \
     219             :   NS_IMETHOD DispatchPause(float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchPause(aElapsedTime, aCharIndex); } \
     220             :   NS_IMETHOD DispatchResume(float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchResume(aElapsedTime, aCharIndex); } \
     221             :   NS_IMETHOD DispatchError(float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchError(aElapsedTime, aCharIndex); } \
     222             :   NS_IMETHOD DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex, uint32_t aCharLength, uint8_t _argc) override { return _to DispatchBoundary(aName, aElapsedTime, aCharIndex, aCharLength, _argc); } \
     223             :   NS_IMETHOD DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) override { return _to DispatchMark(aName, aElapsedTime, aCharIndex); } 
     224             : 
     225             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     226             : #define NS_FORWARD_SAFE_NSISPEECHTASK(_to) \
     227             :   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); } \
     228             :   NS_IMETHOD SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendAudio(aData, aLandmarks, cx); } \
     229             :   NS_IMETHOD SendAudioNative(int16_t *aData, uint32_t aDataLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendAudioNative(aData, aDataLen); } \
     230             :   NS_IMETHOD DispatchStart(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchStart(); } \
     231             :   NS_IMETHOD DispatchEnd(float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchEnd(aElapsedTime, aCharIndex); } \
     232             :   NS_IMETHOD DispatchPause(float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchPause(aElapsedTime, aCharIndex); } \
     233             :   NS_IMETHOD DispatchResume(float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchResume(aElapsedTime, aCharIndex); } \
     234             :   NS_IMETHOD DispatchError(float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchError(aElapsedTime, aCharIndex); } \
     235             :   NS_IMETHOD DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex, uint32_t aCharLength, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchBoundary(aName, aElapsedTime, aCharIndex, aCharLength, _argc); } \
     236             :   NS_IMETHOD DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchMark(aName, aElapsedTime, aCharIndex); } 
     237             : 
     238             : #if 0
     239             : /* Use the code below as a template for the implementation class for this interface. */
     240             : 
     241             : /* Header file */
     242             : class nsSpeechTask : public nsISpeechTask
     243             : {
     244             : public:
     245             :   NS_DECL_ISUPPORTS
     246             :   NS_DECL_NSISPEECHTASK
     247             : 
     248             :   nsSpeechTask();
     249             : 
     250             : private:
     251             :   ~nsSpeechTask();
     252             : 
     253             : protected:
     254             :   /* additional members */
     255             : };
     256             : 
     257             : /* Implementation file */
     258             : NS_IMPL_ISUPPORTS(nsSpeechTask, nsISpeechTask)
     259             : 
     260             : nsSpeechTask::nsSpeechTask()
     261             : {
     262             :   /* member initializers and constructor code */
     263             : }
     264             : 
     265             : nsSpeechTask::~nsSpeechTask()
     266             : {
     267             :   /* destructor code */
     268             : }
     269             : 
     270             : /* [optional_argc] void setup (in nsISpeechTaskCallback aCallback, [optional] in uint32_t aChannels, [optional] in uint32_t aRate); */
     271             : NS_IMETHODIMP nsSpeechTask::Setup(nsISpeechTaskCallback *aCallback, uint32_t aChannels, uint32_t aRate, uint8_t _argc)
     272             : {
     273             :     return NS_ERROR_NOT_IMPLEMENTED;
     274             : }
     275             : 
     276             : /* [implicit_jscontext] void sendAudio (in jsval aData, in jsval aLandmarks); */
     277             : NS_IMETHODIMP nsSpeechTask::SendAudio(JS::HandleValue aData, JS::HandleValue aLandmarks, JSContext* cx)
     278             : {
     279             :     return NS_ERROR_NOT_IMPLEMENTED;
     280             : }
     281             : 
     282             : /* [noscript] void sendAudioNative ([array, size_is (aDataLen)] in short aData, in unsigned long aDataLen); */
     283             : NS_IMETHODIMP nsSpeechTask::SendAudioNative(int16_t *aData, uint32_t aDataLen)
     284             : {
     285             :     return NS_ERROR_NOT_IMPLEMENTED;
     286             : }
     287             : 
     288             : /* void dispatchStart (); */
     289             : NS_IMETHODIMP nsSpeechTask::DispatchStart()
     290             : {
     291             :     return NS_ERROR_NOT_IMPLEMENTED;
     292             : }
     293             : 
     294             : /* void dispatchEnd (in float aElapsedTime, in unsigned long aCharIndex); */
     295             : NS_IMETHODIMP nsSpeechTask::DispatchEnd(float aElapsedTime, uint32_t aCharIndex)
     296             : {
     297             :     return NS_ERROR_NOT_IMPLEMENTED;
     298             : }
     299             : 
     300             : /* void dispatchPause (in float aElapsedTime, in unsigned long aCharIndex); */
     301             : NS_IMETHODIMP nsSpeechTask::DispatchPause(float aElapsedTime, uint32_t aCharIndex)
     302             : {
     303             :     return NS_ERROR_NOT_IMPLEMENTED;
     304             : }
     305             : 
     306             : /* void dispatchResume (in float aElapsedTime, in unsigned long aCharIndex); */
     307             : NS_IMETHODIMP nsSpeechTask::DispatchResume(float aElapsedTime, uint32_t aCharIndex)
     308             : {
     309             :     return NS_ERROR_NOT_IMPLEMENTED;
     310             : }
     311             : 
     312             : /* void dispatchError (in float aElapsedTime, in unsigned long aCharIndex); */
     313             : NS_IMETHODIMP nsSpeechTask::DispatchError(float aElapsedTime, uint32_t aCharIndex)
     314             : {
     315             :     return NS_ERROR_NOT_IMPLEMENTED;
     316             : }
     317             : 
     318             : /* [optional_argc] void dispatchBoundary (in DOMString aName, in float aElapsedTime, in unsigned long aCharIndex, [optional] in unsigned long aCharLength); */
     319             : NS_IMETHODIMP nsSpeechTask::DispatchBoundary(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex, uint32_t aCharLength, uint8_t _argc)
     320             : {
     321             :     return NS_ERROR_NOT_IMPLEMENTED;
     322             : }
     323             : 
     324             : /* void dispatchMark (in DOMString aName, in float aElapsedTime, in unsigned long aCharIndex); */
     325             : NS_IMETHODIMP nsSpeechTask::DispatchMark(const nsAString & aName, float aElapsedTime, uint32_t aCharIndex)
     326             : {
     327             :     return NS_ERROR_NOT_IMPLEMENTED;
     328             : }
     329             : 
     330             : /* End of implementation class template. */
     331             : #endif
     332             : 
     333             : 
     334             : /* starting interface:    nsISpeechService */
     335             : #define NS_ISPEECHSERVICE_IID_STR "9b7d59db-88ff-43d0-b6ee-9f63d042d08f"
     336             : 
     337             : #define NS_ISPEECHSERVICE_IID \
     338             :   {0x9b7d59db, 0x88ff, 0x43d0, \
     339             :     { 0xb6, 0xee, 0x9f, 0x63, 0xd0, 0x42, 0xd0, 0x8f }}
     340             : 
     341           0 : class NS_NO_VTABLE nsISpeechService : public nsISupports {
     342             :  public:
     343             : 
     344             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPEECHSERVICE_IID)
     345             : 
     346             :   /* void speak (in DOMString aText, in DOMString aUri, in float aVolume, in float aRate, in float aPitch, in nsISpeechTask aTask); */
     347             :   NS_IMETHOD Speak(const nsAString & aText, const nsAString & aUri, float aVolume, float aRate, float aPitch, nsISpeechTask *aTask) = 0;
     348             : 
     349             :   enum {
     350             :     SERVICETYPE_DIRECT_AUDIO = 1U,
     351             :     SERVICETYPE_INDIRECT_AUDIO = 2U
     352             :   };
     353             : 
     354             :   /* readonly attribute SpeechServiceType serviceType; */
     355             :   NS_IMETHOD GetServiceType(SpeechServiceType *aServiceType) = 0;
     356             : 
     357             : };
     358             : 
     359             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeechService, NS_ISPEECHSERVICE_IID)
     360             : 
     361             : /* Use this macro when declaring classes that implement this interface. */
     362             : #define NS_DECL_NSISPEECHSERVICE \
     363             :   NS_IMETHOD Speak(const nsAString & aText, const nsAString & aUri, float aVolume, float aRate, float aPitch, nsISpeechTask *aTask) override; \
     364             :   NS_IMETHOD GetServiceType(SpeechServiceType *aServiceType) override; 
     365             : 
     366             : /* Use this macro when declaring the members of this interface when the
     367             :    class doesn't implement the interface. This is useful for forwarding. */
     368             : #define NS_DECL_NON_VIRTUAL_NSISPEECHSERVICE \
     369             :   nsresult Speak(const nsAString & aText, const nsAString & aUri, float aVolume, float aRate, float aPitch, nsISpeechTask *aTask); \
     370             :   nsresult GetServiceType(SpeechServiceType *aServiceType); 
     371             : 
     372             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     373             : #define NS_FORWARD_NSISPEECHSERVICE(_to) \
     374             :   NS_IMETHOD Speak(const nsAString & aText, const nsAString & aUri, float aVolume, float aRate, float aPitch, nsISpeechTask *aTask) override { return _to Speak(aText, aUri, aVolume, aRate, aPitch, aTask); } \
     375             :   NS_IMETHOD GetServiceType(SpeechServiceType *aServiceType) override { return _to GetServiceType(aServiceType); } 
     376             : 
     377             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     378             : #define NS_FORWARD_SAFE_NSISPEECHSERVICE(_to) \
     379             :   NS_IMETHOD Speak(const nsAString & aText, const nsAString & aUri, float aVolume, float aRate, float aPitch, nsISpeechTask *aTask) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Speak(aText, aUri, aVolume, aRate, aPitch, aTask); } \
     380             :   NS_IMETHOD GetServiceType(SpeechServiceType *aServiceType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceType(aServiceType); } 
     381             : 
     382             : #if 0
     383             : /* Use the code below as a template for the implementation class for this interface. */
     384             : 
     385             : /* Header file */
     386             : class nsSpeechService : public nsISpeechService
     387             : {
     388             : public:
     389             :   NS_DECL_ISUPPORTS
     390             :   NS_DECL_NSISPEECHSERVICE
     391             : 
     392             :   nsSpeechService();
     393             : 
     394             : private:
     395             :   ~nsSpeechService();
     396             : 
     397             : protected:
     398             :   /* additional members */
     399             : };
     400             : 
     401             : /* Implementation file */
     402             : NS_IMPL_ISUPPORTS(nsSpeechService, nsISpeechService)
     403             : 
     404             : nsSpeechService::nsSpeechService()
     405             : {
     406             :   /* member initializers and constructor code */
     407             : }
     408             : 
     409             : nsSpeechService::~nsSpeechService()
     410             : {
     411             :   /* destructor code */
     412             : }
     413             : 
     414             : /* void speak (in DOMString aText, in DOMString aUri, in float aVolume, in float aRate, in float aPitch, in nsISpeechTask aTask); */
     415             : NS_IMETHODIMP nsSpeechService::Speak(const nsAString & aText, const nsAString & aUri, float aVolume, float aRate, float aPitch, nsISpeechTask *aTask)
     416             : {
     417             :     return NS_ERROR_NOT_IMPLEMENTED;
     418             : }
     419             : 
     420             : /* readonly attribute SpeechServiceType serviceType; */
     421             : NS_IMETHODIMP nsSpeechService::GetServiceType(SpeechServiceType *aServiceType)
     422             : {
     423             :     return NS_ERROR_NOT_IMPLEMENTED;
     424             : }
     425             : 
     426             : /* End of implementation class template. */
     427             : #endif
     428             : 
     429             : // This is the service category speech services could use to start up as
     430             : // a component.
     431             : #define NS_SPEECH_SYNTH_STARTED "speech-synth-started"
     432             : 
     433             : #endif /* __gen_nsISpeechService_h__ */

Generated by: LCOV version 1.13