LCOV - code coverage report
Current view: top level - dom/media/webspeech/recognition - SpeechRecognitionAlternative.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 7 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 mozilla_dom_SpeechRecognitionAlternative_h
       8             : #define mozilla_dom_SpeechRecognitionAlternative_h
       9             : 
      10             : #include "nsCycleCollectionParticipant.h"
      11             : #include "nsString.h"
      12             : #include "nsWrapperCache.h"
      13             : #include "js/TypeDecls.h"
      14             : 
      15             : #include "mozilla/Attributes.h"
      16             : 
      17             : namespace mozilla {
      18             : namespace dom {
      19             : 
      20             : class SpeechRecognition;
      21             : 
      22             : class SpeechRecognitionAlternative final : public nsISupports,
      23             :                                            public nsWrapperCache
      24             : {
      25             : public:
      26             :   explicit SpeechRecognitionAlternative(SpeechRecognition* aParent);
      27             : 
      28             :   NS_DECL_CYCLE_COLLECTING_ISUPPORTS
      29           0 :   NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(SpeechRecognitionAlternative)
      30             : 
      31             :   nsISupports* GetParentObject() const;
      32             : 
      33             :   JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
      34             : 
      35             :   void GetTranscript(nsString& aRetVal) const;
      36             : 
      37             :   float Confidence() const;
      38             : 
      39             :   nsString mTranscript;
      40             :   float mConfidence;
      41             : private:
      42             :   ~SpeechRecognitionAlternative();
      43             : 
      44             :   RefPtr<SpeechRecognition> mParent;
      45             : };
      46             : 
      47             : } // namespace dom
      48             : } // namespace mozilla
      49             : 
      50             : #endif

Generated by: LCOV version 1.13