| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 { | 52 { |
| 53 if (!m_controller) | 53 if (!m_controller) |
| 54 return; | 54 return; |
| 55 | 55 |
| 56 if (m_started) { | 56 if (m_started) { |
| 57 exceptionState.throwDOMException(InvalidStateError, "recognition has alr
eady started."); | 57 exceptionState.throwDOMException(InvalidStateError, "recognition has alr
eady started."); |
| 58 return; | 58 return; |
| 59 } | 59 } |
| 60 | 60 |
| 61 m_finalResults.clear(); | 61 m_finalResults.clear(); |
| 62 m_controller->start(this, m_grammars, m_lang, m_continuous, m_interimResults
, m_maxAlternatives, m_audioTrack); | 62 m_controller->start(this, m_grammars, m_lang, m_serviceURI, m_continuous, m_
interimResults, m_maxAlternatives, m_audioTrack); |
| 63 m_started = true; | 63 m_started = true; |
| 64 } | 64 } |
| 65 | 65 |
| 66 void SpeechRecognition::stopFunction() | 66 void SpeechRecognition::stopFunction() |
| 67 { | 67 { |
| 68 if (!m_controller) | 68 if (!m_controller) |
| 69 return; | 69 return; |
| 70 | 70 |
| 71 if (m_started && !m_stopping) { | 71 if (m_started && !m_stopping) { |
| 72 m_stopping = true; | 72 m_stopping = true; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 #if ENABLE(OILPAN) | 208 #if ENABLE(OILPAN) |
| 209 visitor->trace(m_controller); | 209 visitor->trace(m_controller); |
| 210 #endif | 210 #endif |
| 211 visitor->trace(m_finalResults); | 211 visitor->trace(m_finalResults); |
| 212 RefCountedGarbageCollectedEventTargetWithInlineData<SpeechRecognition>::trac
e(visitor); | 212 RefCountedGarbageCollectedEventTargetWithInlineData<SpeechRecognition>::trac
e(visitor); |
| 213 PageLifecycleObserver::trace(visitor); | 213 PageLifecycleObserver::trace(visitor); |
| 214 ActiveDOMObject::trace(visitor); | 214 ActiveDOMObject::trace(visitor); |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace blink | 217 } // namespace blink |
| OLD | NEW |