LCOV - code coverage report
Current view: top level - dom/media/webaudio - DelayNode.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 8 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 9 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim:set ts=2 sw=2 sts=2 et cindent: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef DelayNode_h_
       8             : #define DelayNode_h_
       9             : 
      10             : #include "AudioNode.h"
      11             : #include "AudioParam.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16             : class AudioContext;
      17             : struct DelayOptions;
      18             : 
      19             : class DelayNode final : public AudioNode
      20             : {
      21             : public:
      22             :   static already_AddRefed<DelayNode>
      23             :   Create(AudioContext& aAudioContext, const DelayOptions& aOptions,
      24             :          ErrorResult& aRv);
      25             : 
      26             :   NS_DECL_ISUPPORTS_INHERITED
      27           0 :   NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(DelayNode, AudioNode)
      28             : 
      29             :   static already_AddRefed<DelayNode>
      30           0 :   Constructor(const GlobalObject& aGlobal, AudioContext& aAudioContext,
      31             :               const DelayOptions& aOptions, ErrorResult& aRv)
      32             :   {
      33           0 :     return Create(aAudioContext, aOptions, aRv);
      34             :   }
      35             : 
      36             :   JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
      37             : 
      38           0 :   AudioParam* DelayTime() const
      39             :   {
      40           0 :     return mDelay;
      41             :   }
      42             : 
      43           0 :   const char* NodeType() const override
      44             :   {
      45           0 :     return "DelayNode";
      46             :   }
      47             : 
      48             :   size_t SizeOfExcludingThis(MallocSizeOf aMallocSizeOf) const override;
      49             :   size_t SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const override;
      50             : 
      51             : private:
      52             :   DelayNode(AudioContext* aContext, double aMaxDelay);
      53           0 :   ~DelayNode() = default;
      54             : 
      55             :   friend class DelayNodeEngine;
      56             : 
      57             :   RefPtr<AudioParam> mDelay;
      58             : };
      59             : 
      60             : } // namespace dom
      61             : } // namespace mozilla
      62             : 
      63             : #endif

Generated by: LCOV version 1.13