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

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: Fixed according to Satish review. 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_
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 std::string url;
jam 2012/04/27 16:03:04 nit: i dont usually see constructors going after p
Primiano Tucci (use gerrit) 2012/04/27 16:17:54 Done.
18 double weight;
19
20 SpeechRecognitionGrammar()
21 : weight(0.0f) {
22 }
23 explicit SpeechRecognitionGrammar(std::string url_value)
24 : url(url_value),
25 weight(0.0f) {
26 }
27 SpeechRecognitionGrammar(std::string url_value, double weight_value)
28 : url(url_value),
29 weight(weight_value) {
30 }
31 };
32
33 typedef std::vector<SpeechRecognitionGrammar> SpeechRecognitionGrammarArray;
34
35 } // namespace content
36
37 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_
OLDNEW
« 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