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

Side by Side 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 also SpeechRecognitionSessionContext 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
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
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "content/common/content_export.h"
12
13 namespace content {
14
15 struct CONTENT_EXPORT SpeechRecognitionGrammar {
16 std::string url;
17 double weight;
18
19 SpeechRecognitionGrammar()
20 : weight(0.0f) {
21 }
22 SpeechRecognitionGrammar(std::string url_value)
hans 2012/04/26 16:23:25 explicit
Primiano Tucci (use gerrit) 2012/04/27 09:27:13 Done.
23 : url(url_value),
24 weight(0.0f) {
25 }
26 SpeechRecognitionGrammar(std::string url_value, double weight_value)
27 : url(url_value),
28 weight(weight_value) {
29 }
30 };
31
32 typedef std::vector<SpeechRecognitionGrammar> SpeechRecognitionGrammarArray;
33
34 } // namespace content
35
36 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698