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 26 matching lines...) Expand all Loading... |
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 Loading... |
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 |
OLD | NEW |