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..391f69032e0eeb27d764846d718d68581f817358 |
--- /dev/null |
+++ b/content/public/common/speech_recognition_grammar.h |
@@ -0,0 +1,36 @@ |
+// 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_ |
hans
2012/04/26 16:23:25
#pragma once
Primiano Tucci (use gerrit)
2012/04/27 09:27:13
Uh, for some strange reason I am missing #pragma o
|
+ |
+#include <vector> |
+ |
+#include "base/basictypes.h" |
+#include "content/common/content_export.h" |
+ |
+namespace content { |
+ |
+struct CONTENT_EXPORT SpeechRecognitionGrammar { |
+ std::string url; |
+ double weight; |
+ |
+ SpeechRecognitionGrammar() |
+ : weight(0.0f) { |
+ } |
+ SpeechRecognitionGrammar(std::string url_value) |
hans
2012/04/26 16:23:25
explicit
Primiano Tucci (use gerrit)
2012/04/27 09:27:13
Done.
|
+ : url(url_value), |
+ weight(0.0f) { |
+ } |
+ SpeechRecognitionGrammar(std::string url_value, double weight_value) |
+ : url(url_value), |
+ weight(weight_value) { |
+ } |
+}; |
+ |
+typedef std::vector<SpeechRecognitionGrammar> SpeechRecognitionGrammarArray; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_ |