| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 { | 141 { |
| 142 m_started = false; | 142 m_started = false; |
| 143 m_stopping = false; | 143 m_stopping = false; |
| 144 if (!m_stoppedByActiveDOMObject) | 144 if (!m_stoppedByActiveDOMObject) |
| 145 dispatchEvent(Event::create(EventTypeNames::end)); | 145 dispatchEvent(Event::create(EventTypeNames::end)); |
| 146 unsetPendingActivity(this); | 146 unsetPendingActivity(this); |
| 147 } | 147 } |
| 148 | 148 |
| 149 const AtomicString& SpeechRecognition::interfaceName() const | 149 const AtomicString& SpeechRecognition::interfaceName() const |
| 150 { | 150 { |
| 151 return eventNames().interfaceForSpeechRecognition; | 151 return EventTargetNames::SpeechRecognition; |
| 152 } | 152 } |
| 153 | 153 |
| 154 ExecutionContext* SpeechRecognition::executionContext() const | 154 ExecutionContext* SpeechRecognition::executionContext() const |
| 155 { | 155 { |
| 156 return ActiveDOMObject::executionContext(); | 156 return ActiveDOMObject::executionContext(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void SpeechRecognition::stop() | 159 void SpeechRecognition::stop() |
| 160 { | 160 { |
| 161 m_stoppedByActiveDOMObject = true; | 161 m_stoppedByActiveDOMObject = true; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 184 ASSERT(m_controller); | 184 ASSERT(m_controller); |
| 185 | 185 |
| 186 // FIXME: Need to hook up with Page to get notified when the visibility chan
ges. | 186 // FIXME: Need to hook up with Page to get notified when the visibility chan
ges. |
| 187 } | 187 } |
| 188 | 188 |
| 189 SpeechRecognition::~SpeechRecognition() | 189 SpeechRecognition::~SpeechRecognition() |
| 190 { | 190 { |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace WebCore | 193 } // namespace WebCore |
| OLD | NEW |