| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class ExceptionState; | 42 class ExceptionState; |
| 43 class ExecutionContext; | 43 class ExecutionContext; |
| 44 class MediaStreamTrack; | 44 class MediaStreamTrack; |
| 45 class SpeechRecognitionController; | 45 class SpeechRecognitionController; |
| 46 class SpeechRecognitionError; | 46 class SpeechRecognitionError; |
| 47 | 47 |
| 48 class MODULES_EXPORT SpeechRecognition final : public RefCountedGarbageCollected
EventTargetWithInlineData<SpeechRecognition>, public PageLifecycleObserver, publ
ic ActiveDOMObject { | 48 class MODULES_EXPORT SpeechRecognition final : public RefCountedGarbageCollected
EventTargetWithInlineData<SpeechRecognition>, public PageLifecycleObserver, publ
ic ActiveDOMObject { |
| 49 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S
peechRecognition>); | 49 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SpeechRecognition); |
| 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); | 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); |
| 51 DEFINE_WRAPPERTYPEINFO(); | 51 DEFINE_WRAPPERTYPEINFO(); |
| 52 public: | 52 public: |
| 53 static SpeechRecognition* create(ExecutionContext*); | 53 static SpeechRecognition* create(ExecutionContext*); |
| 54 virtual ~SpeechRecognition(); | 54 virtual ~SpeechRecognition(); |
| 55 | 55 |
| 56 // SpeechRecognition.idl implemementation. | 56 // SpeechRecognition.idl implemementation. |
| 57 // Attributes. | 57 // Attributes. |
| 58 SpeechGrammarList* grammars() { return m_grammars; } | 58 SpeechGrammarList* grammars() { return m_grammars; } |
| 59 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; } | 59 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 RawPtrWillBeMember<SpeechRecognitionController> m_controller; | 127 RawPtrWillBeMember<SpeechRecognitionController> m_controller; |
| 128 bool m_stoppedByActiveDOMObject; | 128 bool m_stoppedByActiveDOMObject; |
| 129 bool m_started; | 129 bool m_started; |
| 130 bool m_stopping; | 130 bool m_stopping; |
| 131 HeapVector<Member<SpeechRecognitionResult>> m_finalResults; | 131 HeapVector<Member<SpeechRecognitionResult>> m_finalResults; |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace blink | 134 } // namespace blink |
| 135 | 135 |
| 136 #endif // SpeechRecognition_h | 136 #endif // SpeechRecognition_h |
| OLD | NEW |