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

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

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
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 20 matching lines...) Expand all
31 31
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 DEFINE_WRAPPERTYPEINFO();
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,
53 ErrorCodeServiceNotAllowed = 6, 53 ErrorCodeServiceNotAllowed = 6,
54 ErrorCodeBadGrammar = 7, 54 ErrorCodeBadGrammar = 7,
55 ErrorCodeLanguageNotSupported = 8 55 ErrorCodeLanguageNotSupported = 8
56 }; 56 };
57 57
58 static PassRefPtrWillBeRawPtr<SpeechRecognitionError> create(ErrorCode, cons t String&); 58 static PassRefPtrWillBeRawPtr<SpeechRecognitionError> create(ErrorCode, cons t String&);
59 static PassRefPtrWillBeRawPtr<SpeechRecognitionError> create(); 59 static PassRefPtrWillBeRawPtr<SpeechRecognitionError> create();
60 static PassRefPtrWillBeRawPtr<SpeechRecognitionError> create(const AtomicStr ing&, const SpeechRecognitionErrorInit&); 60 static PassRefPtrWillBeRawPtr<SpeechRecognitionError> create(const AtomicStr ing&, const SpeechRecognitionErrorInit&);
61 61
62 const String& error() { return m_error; } 62 const String& error() { return m_error; }
63 const String& message() { return m_message; } 63 const String& message() { return m_message; }
64 64
65 virtual const AtomicString& interfaceName() const OVERRIDE; 65 virtual const AtomicString& interfaceName() const override;
66 66
67 virtual void trace(Visitor* visitor) OVERRIDE 67 virtual void trace(Visitor* visitor) override
68 { 68 {
69 Event::trace(visitor); 69 Event::trace(visitor);
70 } 70 }
71 71
72 private: 72 private:
73 SpeechRecognitionError(const String&, const String&); 73 SpeechRecognitionError(const String&, const String&);
74 SpeechRecognitionError(const AtomicString&, const SpeechRecognitionErrorInit &); 74 SpeechRecognitionError(const AtomicString&, const SpeechRecognitionErrorInit &);
75 75
76 String m_error; 76 String m_error;
77 String m_message; 77 String m_message;
78 }; 78 };
79 79
80 } // namespace blink 80 } // namespace blink
81 81
82 #endif // SpeechRecognitionError_h 82 #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