LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - WaveShaperNodeBinding.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 WaveShaperNode.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_WaveShaperNodeBinding_h
       4             : #define mozilla_dom_WaveShaperNodeBinding_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             : struct NativePropertyHooks;
      17             : class ProtoAndIfaceCache;
      18             : class WaveShaperNode;
      19             : struct WaveShaperNodeAtoms;
      20             : struct WaveShaperOptionsAtoms;
      21             : 
      22             : } // namespace dom
      23             : } // namespace mozilla
      24             : 
      25             : namespace mozilla {
      26             : namespace dom {
      27             : 
      28             : enum class OverSampleType : uint8_t {
      29             :   None,
      30             :   _2x,
      31             :   _4x,
      32             :   EndGuard_
      33             : };
      34             : 
      35             : namespace OverSampleTypeValues {
      36             : extern const EnumEntry strings[4];
      37             : } // namespace OverSampleTypeValues
      38             : 
      39             : bool
      40             : ToJSValue(JSContext* aCx, OverSampleType aArgument, JS::MutableHandle<JS::Value> aValue);
      41             : 
      42             : 
      43           0 : struct WaveShaperOptions : public AudioNodeOptions
      44             : {
      45             :   MOZ_INIT_OUTSIDE_CTOR Optional<Sequence<float>> mCurve;
      46             :   MOZ_INIT_OUTSIDE_CTOR OverSampleType mOversample;
      47             : 
      48             :   WaveShaperOptions();
      49             : 
      50           0 :   explicit inline WaveShaperOptions(const FastDictionaryInitializer& )
      51           0 :     : AudioNodeOptions(FastDictionaryInitializer())
      52             :   {
      53             :     // Do nothing here; this is used by our "Fast" subclass
      54           0 :   }
      55             : 
      56             :   explicit inline WaveShaperOptions(const WaveShaperOptions& aOther)
      57             :   {
      58             :     *this = aOther;
      59             :   }
      60             : 
      61             :   bool
      62             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      63             : 
      64             :   bool
      65             :   Init(const nsAString& aJSON);
      66             : 
      67             :   bool
      68             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      69             : 
      70             :   bool
      71             :   ToJSON(nsAString& aJSON) const;
      72             : 
      73             :   void
      74             :   TraceDictionary(JSTracer* trc);
      75             : 
      76             :   WaveShaperOptions&
      77             :   operator=(const WaveShaperOptions& aOther);
      78             : 
      79             : private:
      80             :   static bool
      81             :   InitIds(JSContext* cx, WaveShaperOptionsAtoms* atomsCache);
      82             : };
      83             : 
      84             : namespace binding_detail {
      85           0 : struct FastWaveShaperOptions : public WaveShaperOptions
      86             : {
      87           0 :   inline FastWaveShaperOptions()
      88           0 :     : WaveShaperOptions(FastDictionaryInitializer())
      89             :   {
      90             :     // Doesn't matter what int we pass to the parent constructor
      91           0 :   }
      92             : };
      93             : } // namespace binding_detail
      94             : 
      95             : 
      96             : namespace WaveShaperNodeBinding {
      97             : 
      98             :   typedef mozilla::dom::WaveShaperNode NativeType;
      99             : 
     100             :   bool
     101             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
     102             : 
     103             :   JSObject*
     104             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
     105             : 
     106             :   const JSClass*
     107             :   GetJSClass();
     108             : 
     109             :   bool
     110             :   Wrap(JSContext* aCx, mozilla::dom::WaveShaperNode* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
     111             : 
     112             :   template <class T>
     113           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
     114             :   {
     115           0 :     JS::Rooted<JSObject*> reflector(aCx);
     116           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
     117             :   }
     118             : 
     119             :   // We declare this as an array so that retrieving a pointer to this
     120             :   // binding's property hooks only requires compile/link-time resolvable
     121             :   // address arithmetic.  Declaring it as a pointer instead would require
     122             :   // doing a run-time load to fetch a pointer to this binding's property
     123             :   // hooks.  And then structures which embedded a pointer to this structure
     124             :   // would require a run-time load for proper initialization, which would
     125             :   // then induce static constructors.  Lots of static constructors.
     126             :   extern const NativePropertyHooks sNativePropertyHooks[];
     127             : 
     128             :   void
     129             :   ClearCachedCurveValue(mozilla::dom::WaveShaperNode* aObject);
     130             : 
     131             :   void
     132             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     133             : 
     134             :   JS::Handle<JSObject*>
     135             :   GetProtoObjectHandle(JSContext* aCx);
     136             : 
     137             :   JS::Handle<JSObject*>
     138             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     139             : 
     140             :   JSObject*
     141             :   GetConstructorObject(JSContext* aCx);
     142             : 
     143             : } // namespace WaveShaperNodeBinding
     144             : 
     145             : 
     146             : 
     147             : } // namespace dom
     148             : } // namespace mozilla
     149             : 
     150             : #endif // mozilla_dom_WaveShaperNodeBinding_h

Generated by: LCOV version 1.13