OLD | NEW |
| (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 | |
OLD | NEW |