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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM AudioBuffer.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_AudioBufferBinding_h
       4             : #define mozilla_dom_AudioBufferBinding_h
       5             : 
       6             : #include "js/RootingAPI.h"
       7             : #include "jspubtd.h"
       8             : #include "mozilla/ErrorResult.h"
       9             : #include "mozilla/dom/BindingDeclarations.h"
      10             : #include "mozilla/dom/Nullable.h"
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15             : class AudioBuffer;
      16             : struct AudioBufferAtoms;
      17             : struct AudioBufferOptionsAtoms;
      18             : struct NativePropertyHooks;
      19             : class ProtoAndIfaceCache;
      20             : 
      21             : } // namespace dom
      22             : } // namespace mozilla
      23             : 
      24             : namespace mozilla {
      25             : namespace dom {
      26             : 
      27             : struct AudioBufferOptions : public DictionaryBase
      28             : {
      29             :   MOZ_INIT_OUTSIDE_CTOR uint32_t mLength;
      30             :   MOZ_INIT_OUTSIDE_CTOR uint32_t mNumberOfChannels;
      31             :   MOZ_INIT_OUTSIDE_CTOR float mSampleRate;
      32             : 
      33             :   AudioBufferOptions();
      34             : 
      35           0 :   explicit inline AudioBufferOptions(const FastDictionaryInitializer& )
      36           0 :   {
      37             :     // Do nothing here; this is used by our "Fast" subclass
      38           0 :   }
      39             : 
      40             :   explicit inline AudioBufferOptions(const AudioBufferOptions& aOther)
      41             :   {
      42             :     *this = aOther;
      43             :   }
      44             : 
      45             :   bool
      46             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      47             : 
      48             :   bool
      49             :   Init(const nsAString& aJSON);
      50             : 
      51             :   bool
      52             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      53             : 
      54             :   bool
      55             :   ToJSON(nsAString& aJSON) const;
      56             : 
      57             :   void
      58             :   TraceDictionary(JSTracer* trc);
      59             : 
      60             :   AudioBufferOptions&
      61             :   operator=(const AudioBufferOptions& aOther);
      62             : 
      63             : private:
      64             :   static bool
      65             :   InitIds(JSContext* cx, AudioBufferOptionsAtoms* atomsCache);
      66             : };
      67             : 
      68             : namespace binding_detail {
      69             : struct FastAudioBufferOptions : public AudioBufferOptions
      70             : {
      71           0 :   inline FastAudioBufferOptions()
      72           0 :     : AudioBufferOptions(FastDictionaryInitializer())
      73             :   {
      74             :     // Doesn't matter what int we pass to the parent constructor
      75           0 :   }
      76             : };
      77             : } // namespace binding_detail
      78             : 
      79             : 
      80             : namespace AudioBufferBinding {
      81             : 
      82             :   typedef mozilla::dom::AudioBuffer NativeType;
      83             : 
      84             :   bool
      85             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
      86             : 
      87             :   JSObject*
      88             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      89             : 
      90             :   const JSClass*
      91             :   GetJSClass();
      92             : 
      93             :   bool
      94             :   Wrap(JSContext* aCx, mozilla::dom::AudioBuffer* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      95             : 
      96             :   template <class T>
      97           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      98             :   {
      99           0 :     JS::Rooted<JSObject*> reflector(aCx);
     100           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
     101             :   }
     102             : 
     103             :   // We declare this as an array so that retrieving a pointer to this
     104             :   // binding's property hooks only requires compile/link-time resolvable
     105             :   // address arithmetic.  Declaring it as a pointer instead would require
     106             :   // doing a run-time load to fetch a pointer to this binding's property
     107             :   // hooks.  And then structures which embedded a pointer to this structure
     108             :   // would require a run-time load for proper initialization, which would
     109             :   // then induce static constructors.  Lots of static constructors.
     110             :   extern const NativePropertyHooks sNativePropertyHooks[];
     111             : 
     112             :   void
     113             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     114             : 
     115             :   JS::Handle<JSObject*>
     116             :   GetProtoObjectHandle(JSContext* aCx);
     117             : 
     118             :   JS::Handle<JSObject*>
     119             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     120             : 
     121             :   JSObject*
     122             :   GetConstructorObject(JSContext* aCx);
     123             : 
     124             : } // namespace AudioBufferBinding
     125             : 
     126             : 
     127             : 
     128             : } // namespace dom
     129             : } // namespace mozilla
     130             : 
     131             : #endif // mozilla_dom_AudioBufferBinding_h

Generated by: LCOV version 1.13