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 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
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 RefCountedWillBeGarbageCollectedFinalized
<SpeechRecognition>, public ScriptWrappable, public ActiveDOMObject, public Even
tTargetWithInlineData { |
48 REFCOUNTED_EVENT_TARGET(SpeechRecognition); | 48 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<SpeechRecognition
>); |
49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); | 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); |
50 public: | 50 public: |
51 static PassRefPtrWillBeRawPtr<SpeechRecognition> create(ExecutionContext*); | 51 static PassRefPtrWillBeRawPtr<SpeechRecognition> create(ExecutionContext*); |
52 virtual ~SpeechRecognition(); | 52 virtual ~SpeechRecognition(); |
53 | 53 |
54 // Attributes. | 54 // Attributes. |
55 SpeechGrammarList* grammars() { return m_grammars.get(); } | 55 SpeechGrammarList* grammars() { return m_grammars.get(); } |
56 void setGrammars(PassRefPtrWillBeRawPtr<SpeechGrammarList> grammars) { m_gra
mmars = grammars; } | 56 void setGrammars(PassRefPtrWillBeRawPtr<SpeechGrammarList> grammars) { m_gra
mmars = grammars; } |
57 String lang() { return m_lang; } | 57 String lang() { return m_lang; } |
58 void setLang(const String& lang) { m_lang = lang; } | 58 void setLang(const String& lang) { m_lang = lang; } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 SpeechRecognitionController* m_controller; | 117 SpeechRecognitionController* m_controller; |
118 bool m_stoppedByActiveDOMObject; | 118 bool m_stoppedByActiveDOMObject; |
119 bool m_started; | 119 bool m_started; |
120 bool m_stopping; | 120 bool m_stopping; |
121 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult
s; | 121 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult
s; |
122 }; | 122 }; |
123 | 123 |
124 } // namespace WebCore | 124 } // namespace WebCore |
125 | 125 |
126 #endif // SpeechRecognition_h | 126 #endif // SpeechRecognition_h |
OLD | NEW |