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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class ExceptionState; | 39 class ExceptionState; |
40 class ExecutionContext; | 40 class ExecutionContext; |
41 class SpeechRecognitionController; | 41 class SpeechRecognitionController; |
42 class SpeechRecognitionError; | 42 class SpeechRecognitionError; |
43 | 43 |
44 class SpeechRecognition FINAL : public RefCountedGarbageCollectedWillBeGarbageCo
llectedFinalized<SpeechRecognition>, public ActiveDOMObject, public EventTargetW
ithInlineData { | 44 class SpeechRecognition FINAL : public RefCountedGarbageCollectedWillBeGarbageCo
llectedFinalized<SpeechRecognition>, public ActiveDOMObject, public EventTargetW
ithInlineData { |
45 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S
peechRecognition>); | 45 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S
peechRecognition>); |
| 46 DEFINE_WRAPPERTYPEINFO(); |
46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); | 47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); |
47 public: | 48 public: |
48 static SpeechRecognition* create(ExecutionContext*); | 49 static SpeechRecognition* create(ExecutionContext*); |
49 virtual ~SpeechRecognition(); | 50 virtual ~SpeechRecognition(); |
50 | 51 |
51 // Attributes. | 52 // Attributes. |
52 SpeechGrammarList* grammars() { return m_grammars; } | 53 SpeechGrammarList* grammars() { return m_grammars; } |
53 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; } | 54 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; } |
54 String lang() { return m_lang; } | 55 String lang() { return m_lang; } |
55 void setLang(const String& lang) { m_lang = lang; } | 56 void setLang(const String& lang) { m_lang = lang; } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 RawPtrWillBeMember<SpeechRecognitionController> m_controller; | 113 RawPtrWillBeMember<SpeechRecognitionController> m_controller; |
113 bool m_stoppedByActiveDOMObject; | 114 bool m_stoppedByActiveDOMObject; |
114 bool m_started; | 115 bool m_started; |
115 bool m_stopping; | 116 bool m_stopping; |
116 HeapVector<Member<SpeechRecognitionResult> > m_finalResults; | 117 HeapVector<Member<SpeechRecognitionResult> > m_finalResults; |
117 }; | 118 }; |
118 | 119 |
119 } // namespace blink | 120 } // namespace blink |
120 | 121 |
121 #endif // SpeechRecognition_h | 122 #endif // SpeechRecognition_h |
OLD | NEW |