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

Side by Side Diff: content/public/common/speech_recognition_error_list.h

Issue 615893003: Use the new java_cpp_enum rule in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix aosp Created 6 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2013 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 // This file intentionally does not have header guards, it's included
6 // inside a macro to generate enum values.
7
8 #ifndef DEFINE_SPEECH_RECOGNITION_ERROR
9 #error "DEFINE_SPEECH_RECOGNITION_ERROR must be defined before including this."
10 #endif
11
12 // There was no error.
13 DEFINE_SPEECH_RECOGNITION_ERROR(NONE, 0)
14
15 // The user or a script aborted speech input.
16 DEFINE_SPEECH_RECOGNITION_ERROR(ABORTED, 1)
17
18 // There was an error with recording audio.
19 DEFINE_SPEECH_RECOGNITION_ERROR(AUDIO, 2)
20
21 // There was a network error.
22 DEFINE_SPEECH_RECOGNITION_ERROR(NETWORK, 3)
23
24 // Not allowed for privacy or security reasons.
25 DEFINE_SPEECH_RECOGNITION_ERROR(NOT_ALLOWED, 4)
26
27 // No speech heard before timeout.
28 DEFINE_SPEECH_RECOGNITION_ERROR(NO_SPEECH, 5)
29
30 // Speech was heard, but could not be interpreted.
31 DEFINE_SPEECH_RECOGNITION_ERROR(NO_MATCH, 6)
32
33 // There was an error in the speech recognition grammar.
34 DEFINE_SPEECH_RECOGNITION_ERROR(BAD_GRAMMAR, 7)
35
36 // Reports the highest value. Update when adding a new error code.
37 DEFINE_SPEECH_RECOGNITION_ERROR(LAST, 7)
38
OLDNEW
« no previous file with comments | « content/public/common/speech_recognition_error.h ('k') | content/public/common/top_controls_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698