LCOV - code coverage report
Current view: top level - dom/media/webspeech/recognition - SpeechGrammar.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 31 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 16 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             : #include "SpeechGrammar.h"
       8             : 
       9             : #include "mozilla/dom/SpeechGrammarBinding.h"
      10             : 
      11             : namespace mozilla {
      12             : namespace dom {
      13             : 
      14           0 : NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(SpeechGrammar, mParent)
      15           0 : NS_IMPL_CYCLE_COLLECTING_ADDREF(SpeechGrammar)
      16           0 : NS_IMPL_CYCLE_COLLECTING_RELEASE(SpeechGrammar)
      17           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(SpeechGrammar)
      18           0 :   NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
      19           0 :   NS_INTERFACE_MAP_ENTRY(nsISupports)
      20           0 : NS_INTERFACE_MAP_END
      21             : 
      22           0 : SpeechGrammar::SpeechGrammar(nsISupports* aParent)
      23           0 :   : mParent(aParent)
      24             : {
      25           0 : }
      26             : 
      27           0 : SpeechGrammar::~SpeechGrammar()
      28             : {
      29           0 : }
      30             : 
      31             : already_AddRefed<SpeechGrammar>
      32           0 : SpeechGrammar::Constructor(const GlobalObject& aGlobal,
      33             :                            ErrorResult& aRv)
      34             : {
      35             :   RefPtr<SpeechGrammar> speechGrammar =
      36           0 :     new SpeechGrammar(aGlobal.GetAsSupports());
      37           0 :   return speechGrammar.forget();
      38             : }
      39             : 
      40             : nsISupports*
      41           0 : SpeechGrammar::GetParentObject() const
      42             : {
      43           0 :   return mParent;
      44             : }
      45             : 
      46             : JSObject*
      47           0 : SpeechGrammar::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      48             : {
      49           0 :   return SpeechGrammarBinding::Wrap(aCx, this, aGivenProto);
      50             : }
      51             : 
      52             : void
      53           0 : SpeechGrammar::GetSrc(nsString& aRetVal, ErrorResult& aRv) const
      54             : {
      55           0 :   aRetVal = mSrc;
      56           0 :   return;
      57             : }
      58             : 
      59             : void
      60           0 : SpeechGrammar::SetSrc(const nsAString& aArg, ErrorResult& aRv)
      61             : {
      62           0 :   mSrc = aArg;
      63           0 :   return;
      64             : }
      65             : 
      66             : float
      67           0 : SpeechGrammar::GetWeight(ErrorResult& aRv) const
      68             : {
      69           0 :   aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
      70           0 :   return 0;
      71             : }
      72             : 
      73             : void
      74           0 : SpeechGrammar::SetWeight(float aArg, ErrorResult& aRv)
      75             : {
      76           0 :   aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
      77           0 :   return;
      78             : }
      79             : 
      80             : } // namespace dom
      81             : } // namespace mozilla

Generated by: LCOV version 1.13