| 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 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 class ExceptionState; | 42 class ExceptionState; |
| 43 class ExecutionContext; | 43 class ExecutionContext; |
| 44 class SpeechRecognitionController; | 44 class SpeechRecognitionController; |
| 45 class SpeechRecognitionError; | 45 class SpeechRecognitionError; |
| 46 | 46 |
| 47 class SpeechRecognition FINAL : public RefCountedWillBeRefCountedGarbageCollecte
d<SpeechRecognition>, public ScriptWrappable, public ActiveDOMObject, public Eve
ntTargetWithInlineData { | 47 class SpeechRecognition FINAL : public RefCountedWillBeRefCountedGarbageCollecte
d<SpeechRecognition>, public ScriptWrappable, public ActiveDOMObject, public Eve
ntTargetWithInlineData { |
| 48 DECLARE_GC_INFO; | |
| 49 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<S
peechRecognition>); | 48 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<S
peechRecognition>); |
| 50 public: | 49 public: |
| 51 static PassRefPtrWillBeRawPtr<SpeechRecognition> create(ExecutionContext*); | 50 static PassRefPtrWillBeRawPtr<SpeechRecognition> create(ExecutionContext*); |
| 52 virtual ~SpeechRecognition(); | 51 virtual ~SpeechRecognition(); |
| 53 | 52 |
| 54 // Attributes. | 53 // Attributes. |
| 55 SpeechGrammarList* grammars() { return m_grammars.get(); } | 54 SpeechGrammarList* grammars() { return m_grammars.get(); } |
| 56 void setGrammars(PassRefPtrWillBeRawPtr<SpeechGrammarList> grammars) { m_gra
mmars = grammars; } | 55 void setGrammars(PassRefPtrWillBeRawPtr<SpeechGrammarList> grammars) { m_gra
mmars = grammars; } |
| 57 String lang() { return m_lang; } | 56 String lang() { return m_lang; } |
| 58 void setLang(const String& lang) { m_lang = lang; } | 57 void setLang(const String& lang) { m_lang = lang; } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 SpeechRecognitionController* m_controller; | 115 SpeechRecognitionController* m_controller; |
| 117 bool m_stoppedByActiveDOMObject; | 116 bool m_stoppedByActiveDOMObject; |
| 118 bool m_started; | 117 bool m_started; |
| 119 bool m_stopping; | 118 bool m_stopping; |
| 120 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult
s; | 119 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult
s; |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 } // namespace WebCore | 122 } // namespace WebCore |
| 124 | 123 |
| 125 #endif // SpeechRecognition_h | 124 #endif // SpeechRecognition_h |
| OLD | NEW |