LCOV - code coverage report
Current view: top level - dom/media/webspeech/recognition - SpeechRecognitionAlternative.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 21 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 13 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 "SpeechRecognitionAlternative.h"
       8             : 
       9             : #include "mozilla/dom/SpeechRecognitionAlternativeBinding.h"
      10             : 
      11             : #include "SpeechRecognition.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16           0 : NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(SpeechRecognitionAlternative, mParent)
      17           0 : NS_IMPL_CYCLE_COLLECTING_ADDREF(SpeechRecognitionAlternative)
      18           0 : NS_IMPL_CYCLE_COLLECTING_RELEASE(SpeechRecognitionAlternative)
      19           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(SpeechRecognitionAlternative)
      20           0 :   NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
      21           0 :   NS_INTERFACE_MAP_ENTRY(nsISupports)
      22           0 : NS_INTERFACE_MAP_END
      23             : 
      24           0 : SpeechRecognitionAlternative::SpeechRecognitionAlternative(SpeechRecognition* aParent)
      25             :   : mConfidence(0)
      26           0 :   , mParent(aParent)
      27             : {
      28           0 : }
      29             : 
      30           0 : SpeechRecognitionAlternative::~SpeechRecognitionAlternative()
      31             : {
      32           0 : }
      33             : 
      34             : JSObject*
      35           0 : SpeechRecognitionAlternative::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      36             : {
      37           0 :   return SpeechRecognitionAlternativeBinding::Wrap(aCx, this, aGivenProto);
      38             : }
      39             : 
      40             : nsISupports*
      41           0 : SpeechRecognitionAlternative::GetParentObject() const
      42             : {
      43           0 :   return static_cast<DOMEventTargetHelper*>(mParent.get());
      44             : }
      45             : 
      46             : void
      47           0 : SpeechRecognitionAlternative::GetTranscript(nsString& aRetVal) const
      48             : {
      49           0 :   aRetVal = mTranscript;
      50           0 : }
      51             : 
      52             : float
      53           0 : SpeechRecognitionAlternative::Confidence() const
      54             : {
      55           0 :   return mConfidence;
      56             : }
      57             : 
      58             : } // namespace dom
      59             : } // namespace mozilla

Generated by: LCOV version 1.13