| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 m_stopping = false; | 149 m_stopping = false; |
| 150 if (!m_stoppedByActiveDOMObject) | 150 if (!m_stoppedByActiveDOMObject) |
| 151 dispatchEvent(Event::create(EventTypeNames::end)); | 151 dispatchEvent(Event::create(EventTypeNames::end)); |
| 152 } | 152 } |
| 153 | 153 |
| 154 const AtomicString& SpeechRecognition::interfaceName() const | 154 const AtomicString& SpeechRecognition::interfaceName() const |
| 155 { | 155 { |
| 156 return EventTargetNames::SpeechRecognition; | 156 return EventTargetNames::SpeechRecognition; |
| 157 } | 157 } |
| 158 | 158 |
| 159 ExecutionContext* SpeechRecognition::executionContext() const | 159 ExecutionContext* SpeechRecognition::getExecutionContext() const |
| 160 { | 160 { |
| 161 return ActiveDOMObject::executionContext(); | 161 return ActiveDOMObject::getExecutionContext(); |
| 162 } | 162 } |
| 163 | 163 |
| 164 void SpeechRecognition::stop() | 164 void SpeechRecognition::stop() |
| 165 { | 165 { |
| 166 m_stoppedByActiveDOMObject = true; | 166 m_stoppedByActiveDOMObject = true; |
| 167 if (hasPendingActivity()) | 167 if (hasPendingActivity()) |
| 168 abort(); | 168 abort(); |
| 169 } | 169 } |
| 170 | 170 |
| 171 bool SpeechRecognition::hasPendingActivity() const | 171 bool SpeechRecognition::hasPendingActivity() const |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 visitor->trace(m_grammars); | 204 visitor->trace(m_grammars); |
| 205 visitor->trace(m_audioTrack); | 205 visitor->trace(m_audioTrack); |
| 206 visitor->trace(m_controller); | 206 visitor->trace(m_controller); |
| 207 visitor->trace(m_finalResults); | 207 visitor->trace(m_finalResults); |
| 208 RefCountedGarbageCollectedEventTargetWithInlineData<SpeechRecognition>::trac
e(visitor); | 208 RefCountedGarbageCollectedEventTargetWithInlineData<SpeechRecognition>::trac
e(visitor); |
| 209 PageLifecycleObserver::trace(visitor); | 209 PageLifecycleObserver::trace(visitor); |
| 210 ActiveDOMObject::trace(visitor); | 210 ActiveDOMObject::trace(visitor); |
| 211 } | 211 } |
| 212 | 212 |
| 213 } // namespace blink | 213 } // namespace blink |
| OLD | NEW |