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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 ErrorCodeAborted = 2, | 44 ErrorCodeAborted = 2, |
45 ErrorCodeAudioCapture = 3, | 45 ErrorCodeAudioCapture = 3, |
46 ErrorCodeNetwork = 4, | 46 ErrorCodeNetwork = 4, |
47 ErrorCodeNotAllowed = 5, | 47 ErrorCodeNotAllowed = 5, |
48 ErrorCodeServiceNotAllowed = 6, | 48 ErrorCodeServiceNotAllowed = 6, |
49 ErrorCodeBadGrammar = 7, | 49 ErrorCodeBadGrammar = 7, |
50 ErrorCodeLanguageNotSupported = 8 | 50 ErrorCodeLanguageNotSupported = 8 |
51 }; | 51 }; |
52 | 52 |
53 static SpeechRecognitionError* create(ErrorCode, const String&); | 53 static SpeechRecognitionError* create(ErrorCode, const String&); |
54 static SpeechRecognitionError* create(); | |
55 static SpeechRecognitionError* create(const AtomicString&, const SpeechRecog
nitionErrorInit&); | 54 static SpeechRecognitionError* create(const AtomicString&, const SpeechRecog
nitionErrorInit&); |
56 | 55 |
57 const String& error() { return m_error; } | 56 const String& error() { return m_error; } |
58 const String& message() { return m_message; } | 57 const String& message() { return m_message; } |
59 | 58 |
60 const AtomicString& interfaceName() const override; | 59 const AtomicString& interfaceName() const override; |
61 | 60 |
62 DEFINE_INLINE_VIRTUAL_TRACE() | 61 DEFINE_INLINE_VIRTUAL_TRACE() |
63 { | 62 { |
64 Event::trace(visitor); | 63 Event::trace(visitor); |
65 } | 64 } |
66 | 65 |
67 private: | 66 private: |
68 SpeechRecognitionError(const String&, const String&); | 67 SpeechRecognitionError(const String&, const String&); |
69 SpeechRecognitionError(const AtomicString&, const SpeechRecognitionErrorInit
&); | 68 SpeechRecognitionError(const AtomicString&, const SpeechRecognitionErrorInit
&); |
70 | 69 |
71 String m_error; | 70 String m_error; |
72 String m_message; | 71 String m_message; |
73 }; | 72 }; |
74 | 73 |
75 } // namespace blink | 74 } // namespace blink |
76 | 75 |
77 #endif // SpeechRecognitionError_h | 76 #endif // SpeechRecognitionError_h |
OLD | NEW |