Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1502)

Unified Diff: content/public/common/speech_recognition_grammar.h

Issue 10233010: Introducing new data types and IPC messages for scripted JS speech recognition APIs (Speech CL2.0) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added CONTENT_EXPORT to SpeechRecognitionEngine::Config Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/speech_recognition_error.h ('k') | content/public/common/speech_recognition_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/speech_recognition_grammar.h
diff --git a/content/public/common/speech_recognition_grammar.h b/content/public/common/speech_recognition_grammar.h
new file mode 100644
index 0000000000000000000000000000000000000000..c0e7842fa2e9e7beb6c0019ecf775f6b1c38eb48
--- /dev/null
+++ b/content/public/common/speech_recognition_grammar.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_
+#define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_
+#pragma once
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+struct CONTENT_EXPORT SpeechRecognitionGrammar {
+ SpeechRecognitionGrammar()
+ : weight(0.0f) {
+ }
+ explicit SpeechRecognitionGrammar(std::string url_value)
+ : url(url_value),
+ weight(0.0f) {
+ }
+ SpeechRecognitionGrammar(std::string url_value, double weight_value)
+ : url(url_value),
+ weight(weight_value) {
+ }
+
+ std::string url;
+ double weight;
+};
+
+typedef std::vector<SpeechRecognitionGrammar> SpeechRecognitionGrammarArray;
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_
« no previous file with comments | « content/public/common/speech_recognition_error.h ('k') | content/public/common/speech_recognition_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698