| 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 16 matching lines...) Expand all Loading... |
| 27 #define SpeechRecognition_h | 27 #define SpeechRecognition_h |
| 28 | 28 |
| 29 #include "core/dom/ActiveDOMObject.h" | 29 #include "core/dom/ActiveDOMObject.h" |
| 30 #include "modules/EventTargetModules.h" | 30 #include "modules/EventTargetModules.h" |
| 31 #include "modules/speech/SpeechGrammarList.h" | 31 #include "modules/speech/SpeechGrammarList.h" |
| 32 #include "modules/speech/SpeechRecognitionResult.h" | 32 #include "modules/speech/SpeechRecognitionResult.h" |
| 33 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
| 34 #include "wtf/Compiler.h" | 34 #include "wtf/Compiler.h" |
| 35 #include "wtf/text/WTFString.h" | 35 #include "wtf/text/WTFString.h" |
| 36 | 36 |
| 37 namespace WebCore { | 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 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); | 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); |
| 47 public: | 47 public: |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 bool m_interimResults; | 109 bool m_interimResults; |
| 110 unsigned long m_maxAlternatives; | 110 unsigned long m_maxAlternatives; |
| 111 | 111 |
| 112 RawPtrWillBeMember<SpeechRecognitionController> m_controller; | 112 RawPtrWillBeMember<SpeechRecognitionController> m_controller; |
| 113 bool m_stoppedByActiveDOMObject; | 113 bool m_stoppedByActiveDOMObject; |
| 114 bool m_started; | 114 bool m_started; |
| 115 bool m_stopping; | 115 bool m_stopping; |
| 116 HeapVector<Member<SpeechRecognitionResult> > m_finalResults; | 116 HeapVector<Member<SpeechRecognitionResult> > m_finalResults; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace WebCore | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // SpeechRecognition_h | 121 #endif // SpeechRecognition_h |
| OLD | NEW |