OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * * Redistributions in binary form must reproduce the above copyright | 9 * * Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 21 matching lines...) Expand all Loading... |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 struct SpeechRecognitionErrorInit : public EventInit { | 34 struct SpeechRecognitionErrorInit : public EventInit { |
35 SpeechRecognitionErrorInit(); | 35 SpeechRecognitionErrorInit(); |
36 | 36 |
37 String error; | 37 String error; |
38 String message; | 38 String message; |
39 }; | 39 }; |
40 | 40 |
41 class SpeechRecognitionError FINAL : public Event { | 41 class SpeechRecognitionError FINAL : public Event { |
| 42 DEFINE_WRAPPERTYPEINFO(); |
42 public: | 43 public: |
43 enum ErrorCode { | 44 enum ErrorCode { |
44 // FIXME: This is an unspecified error and Chromium should stop using it
. | 45 // FIXME: This is an unspecified error and Chromium should stop using it
. |
45 ErrorCodeOther = 0, | 46 ErrorCodeOther = 0, |
46 | 47 |
47 ErrorCodeNoSpeech = 1, | 48 ErrorCodeNoSpeech = 1, |
48 ErrorCodeAborted = 2, | 49 ErrorCodeAborted = 2, |
49 ErrorCodeAudioCapture = 3, | 50 ErrorCodeAudioCapture = 3, |
50 ErrorCodeNetwork = 4, | 51 ErrorCodeNetwork = 4, |
51 ErrorCodeNotAllowed = 5, | 52 ErrorCodeNotAllowed = 5, |
(...skipping 20 matching lines...) Expand all Loading... |
72 SpeechRecognitionError(const String&, const String&); | 73 SpeechRecognitionError(const String&, const String&); |
73 SpeechRecognitionError(const AtomicString&, const SpeechRecognitionErrorInit
&); | 74 SpeechRecognitionError(const AtomicString&, const SpeechRecognitionErrorInit
&); |
74 | 75 |
75 String m_error; | 76 String m_error; |
76 String m_message; | 77 String m_message; |
77 }; | 78 }; |
78 | 79 |
79 } // namespace blink | 80 } // namespace blink |
80 | 81 |
81 #endif // SpeechRecognitionError_h | 82 #endif // SpeechRecognitionError_h |
OLD | NEW |