| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class SpeechRecognitionResultList; | 44 class SpeechRecognitionResultList; |
| 45 | 45 |
| 46 class SpeechRecognition : public RefCountedGarbageCollected<SpeechRecognition>,
public ActiveDOMObject, public EventTarget { | 46 class SpeechRecognition : public RefCountedGarbageCollected<SpeechRecognition>,
public ActiveDOMObject, public EventTarget { |
| 47 DECLARE_GC_INFO | 47 DECLARE_GC_INFO |
| 48 public: | 48 public: |
| 49 static PassRefPtr<SpeechRecognition> create(ScriptExecutionContext*); | 49 static PassRefPtr<SpeechRecognition> create(ScriptExecutionContext*); |
| 50 ~SpeechRecognition(); | 50 ~SpeechRecognition(); |
| 51 | 51 |
| 52 virtual void trace(Visitor*) { } | 52 virtual void trace(Visitor*) { } |
| 53 | 53 |
| 54 virtual void visitWith(Visitor* visitor) const OVERRIDE | 54 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
| 55 { | 55 { |
| 56 visitor->visit(this); | 56 visitor->mark(this); |
| 57 } | 57 } |
| 58 | 58 |
| 59 // Attributes. | 59 // Attributes. |
| 60 PassRefPtr<SpeechGrammarList> grammars() { return m_grammars; } | 60 PassRefPtr<SpeechGrammarList> grammars() { return m_grammars; } |
| 61 void setGrammars(PassRefPtr<SpeechGrammarList> grammars) { m_grammars = gram
mars; } | 61 void setGrammars(PassRefPtr<SpeechGrammarList> grammars) { m_grammars = gram
mars; } |
| 62 String lang() { return m_lang; } | 62 String lang() { return m_lang; } |
| 63 void setLang(const String& lang) { m_lang = lang; } | 63 void setLang(const String& lang) { m_lang = lang; } |
| 64 bool continuous() { return m_continuous; } | 64 bool continuous() { return m_continuous; } |
| 65 void setContinuous(bool continuous) { m_continuous = continuous; } | 65 void setContinuous(bool continuous) { m_continuous = continuous; } |
| 66 bool interimResults() { return m_interimResults; } | 66 bool interimResults() { return m_interimResults; } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 SpeechRecognitionController* m_controller; | 129 SpeechRecognitionController* m_controller; |
| 130 bool m_stoppedByActiveDOMObject; | 130 bool m_stoppedByActiveDOMObject; |
| 131 bool m_started; | 131 bool m_started; |
| 132 bool m_stopping; | 132 bool m_stopping; |
| 133 Vector<RefPtr<SpeechRecognitionResult> > m_finalResults; | 133 Vector<RefPtr<SpeechRecognitionResult> > m_finalResults; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace WebCore | 136 } // namespace WebCore |
| 137 | 137 |
| 138 #endif // SpeechRecognition_h | 138 #endif // SpeechRecognition_h |
| OLD | NEW |