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

Side by Side Diff: Source/modules/speech/SpeechRecognitionError.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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
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
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
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
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechRecognitionAlternative.h ('k') | Source/modules/speech/SpeechRecognitionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698