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

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

Issue 135653002: Update modules classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove change to web/ Created 6 years, 11 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 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 struct SpeechRecognitionErrorInit : public EventInit { 35 struct SpeechRecognitionErrorInit : public EventInit {
36 SpeechRecognitionErrorInit(); 36 SpeechRecognitionErrorInit();
37 37
38 String error; 38 String error;
39 String message; 39 String message;
40 }; 40 };
41 41
42 class SpeechRecognitionError : public Event { 42 class SpeechRecognitionError FINAL : public Event {
43 public: 43 public:
44 enum ErrorCode { 44 enum ErrorCode {
45 // 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 .
46 ErrorCodeOther = 0, 46 ErrorCodeOther = 0,
47 47
48 ErrorCodeNoSpeech = 1, 48 ErrorCodeNoSpeech = 1,
49 ErrorCodeAborted = 2, 49 ErrorCodeAborted = 2,
50 ErrorCodeAudioCapture = 3, 50 ErrorCodeAudioCapture = 3,
51 ErrorCodeNetwork = 4, 51 ErrorCodeNetwork = 4,
52 ErrorCodeNotAllowed = 5, 52 ErrorCodeNotAllowed = 5,
(...skipping 15 matching lines...) Expand all
68 SpeechRecognitionError(const String&, const String&); 68 SpeechRecognitionError(const String&, const String&);
69 SpeechRecognitionError(const AtomicString&, const SpeechRecognitionErrorInit &); 69 SpeechRecognitionError(const AtomicString&, const SpeechRecognitionErrorInit &);
70 70
71 String m_error; 71 String m_error;
72 String m_message; 72 String m_message;
73 }; 73 };
74 74
75 } // namespace WebCore 75 } // namespace WebCore
76 76
77 #endif // SpeechRecognitionError_h 77 #endif // SpeechRecognitionError_h
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechRecognitionController.h ('k') | Source/modules/speech/SpeechRecognitionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698