summaryrefslogtreecommitdiffstats
path: root/dom/media/webspeech/recognition/SpeechRecognitionResult.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-06-01 21:58:35 +0000
committerMoonchild <moonchild@palemoon.org>2020-06-01 21:58:35 +0000
commitc6ca4380e9e5e95df9de02daf8bfb9a6ebc22810 (patch)
treec7672903a2030d37f861b12900165a015f49d10a /dom/media/webspeech/recognition/SpeechRecognitionResult.h
parent451509e2c0188a4164d4b3d1d9f5839ed1e95246 (diff)
parent744b044935f7d1d67fbe0df42d898efcbdd00536 (diff)
downloadUXP-c6ca4380e9e5e95df9de02daf8bfb9a6ebc22810.tar
UXP-c6ca4380e9e5e95df9de02daf8bfb9a6ebc22810.tar.gz
UXP-c6ca4380e9e5e95df9de02daf8bfb9a6ebc22810.tar.lz
UXP-c6ca4380e9e5e95df9de02daf8bfb9a6ebc22810.tar.xz
UXP-c6ca4380e9e5e95df9de02daf8bfb9a6ebc22810.zip
Merge remote-tracking branch 'origin/redwood' into release
Diffstat (limited to 'dom/media/webspeech/recognition/SpeechRecognitionResult.h')
-rw-r--r--dom/media/webspeech/recognition/SpeechRecognitionResult.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/dom/media/webspeech/recognition/SpeechRecognitionResult.h b/dom/media/webspeech/recognition/SpeechRecognitionResult.h
deleted file mode 100644
index 4000a934c..000000000
--- a/dom/media/webspeech/recognition/SpeechRecognitionResult.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* vim:set ts=2 sw=2 sts=2 et cindent: */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-#ifndef mozilla_dom_SpeechRecognitionResult_h
-#define mozilla_dom_SpeechRecognitionResult_h
-
-#include "nsCOMPtr.h"
-#include "nsCycleCollectionParticipant.h"
-#include "nsWrapperCache.h"
-#include "nsTArray.h"
-#include "js/TypeDecls.h"
-
-#include "mozilla/Attributes.h"
-
-#include "SpeechRecognitionAlternative.h"
-
-namespace mozilla {
-namespace dom {
-
-class SpeechRecognitionResult final : public nsISupports,
- public nsWrapperCache
-{
-public:
- explicit SpeechRecognitionResult(SpeechRecognition* aParent);
-
- NS_DECL_CYCLE_COLLECTING_ISUPPORTS
- NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(SpeechRecognitionResult)
-
- nsISupports* GetParentObject() const;
-
- JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
-
- uint32_t Length() const;
-
- already_AddRefed<SpeechRecognitionAlternative> Item(uint32_t aIndex);
-
- bool IsFinal() const;
-
- already_AddRefed<SpeechRecognitionAlternative> IndexedGetter(uint32_t aIndex, bool& aPresent);
-
- nsTArray<RefPtr<SpeechRecognitionAlternative>> mItems;
-
-private:
- ~SpeechRecognitionResult();
-
- RefPtr<SpeechRecognition> mParent;
-};
-
-} // namespace dom
-} // namespace mozilla
-
-#endif