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

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

Generated by: LCOV version 1.13