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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWebVTTListener.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIWebVTTListener_h__
       6             : #define __gen_nsIWebVTTListener_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             : 
      20             : /* starting interface:    nsIWebVTTListener */
      21             : #define NS_IWEBVTTLISTENER_IID_STR "8a2d7780-2045-4a29-99f4-df15cae5fc49"
      22             : 
      23             : #define NS_IWEBVTTLISTENER_IID \
      24             :   {0x8a2d7780, 0x2045, 0x4a29, \
      25             :     { 0x99, 0xf4, 0xdf, 0x15, 0xca, 0xe5, 0xfc, 0x49 }}
      26             : 
      27           0 : class NS_NO_VTABLE nsIWebVTTListener : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBVTTLISTENER_IID)
      31             : 
      32             :   /* [implicit_jscontext] void onCue (in jsval cue); */
      33             :   NS_IMETHOD OnCue(JS::HandleValue cue, JSContext* cx) = 0;
      34             : 
      35             :   /* [implicit_jscontext] void onRegion (in jsval region); */
      36             :   NS_IMETHOD OnRegion(JS::HandleValue region, JSContext* cx) = 0;
      37             : 
      38             :   /* [implicit_jscontext] void onParsingError (in long errorCode); */
      39             :   NS_IMETHOD OnParsingError(int32_t errorCode, JSContext* cx) = 0;
      40             : 
      41             : };
      42             : 
      43             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebVTTListener, NS_IWEBVTTLISTENER_IID)
      44             : 
      45             : /* Use this macro when declaring classes that implement this interface. */
      46             : #define NS_DECL_NSIWEBVTTLISTENER \
      47             :   NS_IMETHOD OnCue(JS::HandleValue cue, JSContext* cx) override; \
      48             :   NS_IMETHOD OnRegion(JS::HandleValue region, JSContext* cx) override; \
      49             :   NS_IMETHOD OnParsingError(int32_t errorCode, JSContext* cx) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSIWEBVTTLISTENER \
      54             :   nsresult OnCue(JS::HandleValue cue, JSContext* cx); \
      55             :   nsresult OnRegion(JS::HandleValue region, JSContext* cx); \
      56             :   nsresult OnParsingError(int32_t errorCode, JSContext* cx); 
      57             : 
      58             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      59             : #define NS_FORWARD_NSIWEBVTTLISTENER(_to) \
      60             :   NS_IMETHOD OnCue(JS::HandleValue cue, JSContext* cx) override { return _to OnCue(cue, cx); } \
      61             :   NS_IMETHOD OnRegion(JS::HandleValue region, JSContext* cx) override { return _to OnRegion(region, cx); } \
      62             :   NS_IMETHOD OnParsingError(int32_t errorCode, JSContext* cx) override { return _to OnParsingError(errorCode, cx); } 
      63             : 
      64             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      65             : #define NS_FORWARD_SAFE_NSIWEBVTTLISTENER(_to) \
      66             :   NS_IMETHOD OnCue(JS::HandleValue cue, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCue(cue, cx); } \
      67             :   NS_IMETHOD OnRegion(JS::HandleValue region, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnRegion(region, cx); } \
      68             :   NS_IMETHOD OnParsingError(int32_t errorCode, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnParsingError(errorCode, cx); } 
      69             : 
      70             : #if 0
      71             : /* Use the code below as a template for the implementation class for this interface. */
      72             : 
      73             : /* Header file */
      74             : class nsWebVTTListener : public nsIWebVTTListener
      75             : {
      76             : public:
      77             :   NS_DECL_ISUPPORTS
      78             :   NS_DECL_NSIWEBVTTLISTENER
      79             : 
      80             :   nsWebVTTListener();
      81             : 
      82             : private:
      83             :   ~nsWebVTTListener();
      84             : 
      85             : protected:
      86             :   /* additional members */
      87             : };
      88             : 
      89             : /* Implementation file */
      90             : NS_IMPL_ISUPPORTS(nsWebVTTListener, nsIWebVTTListener)
      91             : 
      92             : nsWebVTTListener::nsWebVTTListener()
      93             : {
      94             :   /* member initializers and constructor code */
      95             : }
      96             : 
      97             : nsWebVTTListener::~nsWebVTTListener()
      98             : {
      99             :   /* destructor code */
     100             : }
     101             : 
     102             : /* [implicit_jscontext] void onCue (in jsval cue); */
     103             : NS_IMETHODIMP nsWebVTTListener::OnCue(JS::HandleValue cue, JSContext* cx)
     104             : {
     105             :     return NS_ERROR_NOT_IMPLEMENTED;
     106             : }
     107             : 
     108             : /* [implicit_jscontext] void onRegion (in jsval region); */
     109             : NS_IMETHODIMP nsWebVTTListener::OnRegion(JS::HandleValue region, JSContext* cx)
     110             : {
     111             :     return NS_ERROR_NOT_IMPLEMENTED;
     112             : }
     113             : 
     114             : /* [implicit_jscontext] void onParsingError (in long errorCode); */
     115             : NS_IMETHODIMP nsWebVTTListener::OnParsingError(int32_t errorCode, JSContext* cx)
     116             : {
     117             :     return NS_ERROR_NOT_IMPLEMENTED;
     118             : }
     119             : 
     120             : /* End of implementation class template. */
     121             : #endif
     122             : 
     123             : 
     124             : #endif /* __gen_nsIWebVTTListener_h__ */

Generated by: LCOV version 1.13