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

Side by Side Diff: Source/modules/speech/SpeechRecognition.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 26 matching lines...) Expand all
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class ExceptionState; 40 class ExceptionState;
41 class ExecutionContext; 41 class ExecutionContext;
42 class SpeechRecognitionController; 42 class SpeechRecognitionController;
43 class SpeechRecognitionError; 43 class SpeechRecognitionError;
44 class SpeechRecognitionResult; 44 class SpeechRecognitionResult;
45 class SpeechRecognitionResultList; 45 class SpeechRecognitionResultList;
46 46
47 class SpeechRecognition : public RefCounted<SpeechRecognition>, public ScriptWra ppable, public ActiveDOMObject, public EventTargetWithInlineData { 47 class SpeechRecognition FINAL : public RefCounted<SpeechRecognition>, public Scr iptWrappable, public ActiveDOMObject, public EventTargetWithInlineData {
48 REFCOUNTED_EVENT_TARGET(SpeechRecognition); 48 REFCOUNTED_EVENT_TARGET(SpeechRecognition);
49 public: 49 public:
50 static PassRefPtr<SpeechRecognition> create(ExecutionContext*); 50 static PassRefPtr<SpeechRecognition> create(ExecutionContext*);
51 ~SpeechRecognition(); 51 virtual ~SpeechRecognition();
52 52
53 // Attributes. 53 // Attributes.
54 PassRefPtr<SpeechGrammarList> grammars() { return m_grammars; } 54 PassRefPtr<SpeechGrammarList> grammars() { return m_grammars; }
55 void setGrammars(PassRefPtr<SpeechGrammarList> grammars) { m_grammars = gram mars; } 55 void setGrammars(PassRefPtr<SpeechGrammarList> grammars) { m_grammars = gram mars; }
56 String lang() { return m_lang; } 56 String lang() { return m_lang; }
57 void setLang(const String& lang) { m_lang = lang; } 57 void setLang(const String& lang) { m_lang = lang; }
58 bool continuous() { return m_continuous; } 58 bool continuous() { return m_continuous; }
59 void setContinuous(bool continuous) { m_continuous = continuous; } 59 void setContinuous(bool continuous) { m_continuous = continuous; }
60 bool interimResults() { return m_interimResults; } 60 bool interimResults() { return m_interimResults; }
61 void setInterimResults(bool interimResults) { m_interimResults = interimResu lts; } 61 void setInterimResults(bool interimResults) { m_interimResults = interimResu lts; }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 SpeechRecognitionController* m_controller; 113 SpeechRecognitionController* m_controller;
114 bool m_stoppedByActiveDOMObject; 114 bool m_stoppedByActiveDOMObject;
115 bool m_started; 115 bool m_started;
116 bool m_stopping; 116 bool m_stopping;
117 Vector<RefPtr<SpeechRecognitionResult> > m_finalResults; 117 Vector<RefPtr<SpeechRecognitionResult> > m_finalResults;
118 }; 118 };
119 119
120 } // namespace WebCore 120 } // namespace WebCore
121 121
122 #endif // SpeechRecognition_h 122 #endif // SpeechRecognition_h
OLDNEW
« no previous file with comments | « Source/modules/speech/DOMWindowSpeechSynthesis.h ('k') | Source/modules/speech/SpeechRecognitionController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698