1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/events/nsIDOMNotifyAudioAvailableEvent.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMNotifyAudioAvailableEvent_h__
6 : #define __gen_nsIDOMNotifyAudioAvailableEvent_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMEvent_h__
10 : #include "nsIDOMEvent.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIVariant_h__
14 : #include "nsIVariant.h"
15 : #endif
16 :
17 : #include "jspubtd.h"
18 :
19 : /* For IDL files that don't want to include root IDL files. */
20 : #ifndef NS_NO_VTABLE
21 : #define NS_NO_VTABLE
22 : #endif
23 :
24 : /* starting interface: nsIDOMNotifyAudioAvailableEvent */
25 : #define NS_IDOMNOTIFYAUDIOAVAILABLEEVENT_IID_STR "cd362d2f-a9a1-4127-940d-477ba0e82bd6"
26 :
27 : #define NS_IDOMNOTIFYAUDIOAVAILABLEEVENT_IID \
28 : {0xcd362d2f, 0xa9a1, 0x4127, \
29 : { 0x94, 0x0d, 0x47, 0x7b, 0xa0, 0xe8, 0x2b, 0xd6 }}
30 :
31 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMNotifyAudioAvailableEvent : public nsIDOMEvent {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMNOTIFYAUDIOAVAILABLEEVENT_IID)
35 :
36 : /* [implicit_jscontext] readonly attribute jsval frameBuffer; */
37 : NS_SCRIPTABLE NS_IMETHOD GetFrameBuffer(JSContext* cx, JS::Value *aFrameBuffer) = 0;
38 :
39 : /* readonly attribute float time; */
40 : NS_SCRIPTABLE NS_IMETHOD GetTime(float *aTime) = 0;
41 :
42 : /* void initAudioAvailableEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, [array, size_is (frameBufferLength)] in float frameBufferPtr, in unsigned long frameBufferLength, in float time, in boolean allowAudioData); */
43 : NS_SCRIPTABLE NS_IMETHOD InitAudioAvailableEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, float *frameBufferPtr, PRUint32 frameBufferLength, float time, bool allowAudioData) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMNotifyAudioAvailableEvent, NS_IDOMNOTIFYAUDIOAVAILABLEEVENT_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIDOMNOTIFYAUDIOAVAILABLEEVENT \
51 : NS_SCRIPTABLE NS_IMETHOD GetFrameBuffer(JSContext* cx, JS::Value *aFrameBuffer); \
52 : NS_SCRIPTABLE NS_IMETHOD GetTime(float *aTime); \
53 : NS_SCRIPTABLE NS_IMETHOD InitAudioAvailableEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, float *frameBufferPtr, PRUint32 frameBufferLength, float time, bool allowAudioData);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIDOMNOTIFYAUDIOAVAILABLEEVENT(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD GetFrameBuffer(JSContext* cx, JS::Value *aFrameBuffer) { return _to GetFrameBuffer(cx, aFrameBuffer); } \
58 : NS_SCRIPTABLE NS_IMETHOD GetTime(float *aTime) { return _to GetTime(aTime); } \
59 : NS_SCRIPTABLE NS_IMETHOD InitAudioAvailableEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, float *frameBufferPtr, PRUint32 frameBufferLength, float time, bool allowAudioData) { return _to InitAudioAvailableEvent(typeArg, canBubbleArg, cancelableArg, frameBufferPtr, frameBufferLength, time, allowAudioData); }
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
62 : #define NS_FORWARD_SAFE_NSIDOMNOTIFYAUDIOAVAILABLEEVENT(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD GetFrameBuffer(JSContext* cx, JS::Value *aFrameBuffer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameBuffer(cx, aFrameBuffer); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetTime(float *aTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTime(aTime); } \
65 : NS_SCRIPTABLE NS_IMETHOD InitAudioAvailableEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, float *frameBufferPtr, PRUint32 frameBufferLength, float time, bool allowAudioData) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitAudioAvailableEvent(typeArg, canBubbleArg, cancelableArg, frameBufferPtr, frameBufferLength, time, allowAudioData); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsDOMNotifyAudioAvailableEvent : public nsIDOMNotifyAudioAvailableEvent
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIDOMNOTIFYAUDIOAVAILABLEEVENT
76 :
77 : nsDOMNotifyAudioAvailableEvent();
78 :
79 : private:
80 : ~nsDOMNotifyAudioAvailableEvent();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsDOMNotifyAudioAvailableEvent, nsIDOMNotifyAudioAvailableEvent)
88 :
89 : nsDOMNotifyAudioAvailableEvent::nsDOMNotifyAudioAvailableEvent()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsDOMNotifyAudioAvailableEvent::~nsDOMNotifyAudioAvailableEvent()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* [implicit_jscontext] readonly attribute jsval frameBuffer; */
100 : NS_IMETHODIMP nsDOMNotifyAudioAvailableEvent::GetFrameBuffer(JSContext* cx, JS::Value *aFrameBuffer)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* readonly attribute float time; */
106 : NS_IMETHODIMP nsDOMNotifyAudioAvailableEvent::GetTime(float *aTime)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* void initAudioAvailableEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, [array, size_is (frameBufferLength)] in float frameBufferPtr, in unsigned long frameBufferLength, in float time, in boolean allowAudioData); */
112 : NS_IMETHODIMP nsDOMNotifyAudioAvailableEvent::InitAudioAvailableEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, float *frameBufferPtr, PRUint32 frameBufferLength, float time, bool allowAudioData)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* End of implementation class template. */
118 : #endif
119 :
120 :
121 : #endif /* __gen_nsIDOMNotifyAudioAvailableEvent_h__ */
|