OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <vector> |
| 10 |
| 11 #include "base/basictypes.h" |
| 12 #include "content/common/content_export.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 struct CONTENT_EXPORT SpeechRecognitionGrammar { |
| 17 SpeechRecognitionGrammar() |
| 18 : weight(0.0f) { |
| 19 } |
| 20 explicit SpeechRecognitionGrammar(std::string url_value) |
| 21 : url(url_value), |
| 22 weight(0.0f) { |
| 23 } |
| 24 SpeechRecognitionGrammar(std::string url_value, double weight_value) |
| 25 : url(url_value), |
| 26 weight(weight_value) { |
| 27 } |
| 28 |
| 29 std::string url; |
| 30 double weight; |
| 31 }; |
| 32 |
| 33 typedef std::vector<SpeechRecognitionGrammar> SpeechRecognitionGrammarArray; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_ |
OLD | NEW |