Skip to content
  • hans@chromium.org's avatar
    Speech JavaScript API: Add SpeechRecognition.interimResults attribute · ec32fe67
    hans@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=98279
    
    Reviewed by Adam Barth.
    
    Source/WebCore:
    
    Add the interimResults attribute and pass it to the embedder. It was
    added to the spec draft in
    http://dvcs.w3.org/hg/speech-api/rev/d25fea0d029c
    
    Tested in fast/speech/scripted/basics.html
    
    * Modules/speech/SpeechRecognition.cpp:
    (WebCore::SpeechRecognition::start):
    (WebCore::SpeechRecognition::SpeechRecognition):
    * Modules/speech/SpeechRecognition.h:
    (WebCore::SpeechRecognition::interimResults):
    (WebCore::SpeechRecognition::setInterimResults):
    * Modules/speech/SpeechRecognition.idl:
    * Modules/speech/SpeechRecognitionClient.h:
    (SpeechRecognitionClient):
    * Modules/speech/SpeechRecognitionController.h:
    (WebCore::SpeechRecognitionController::start):
    
    Source/WebKit/chromium:
    
    Plumb interimResults through to Chromium.
    
    * public/WebSpeechRecognitionParams.h:
    (WebKit::WebSpeechRecognitionParams::WebSpeechRecognitionParams):
    (WebKit::WebSpeechRecognitionParams::interimResults):
    (WebSpeechRecognitionParams):
    * src/SpeechRecognitionClientProxy.cpp:
    (WebKit::SpeechRecognitionClientProxy::start):
    * src/SpeechRecognitionClientProxy.h:
    (SpeechRecognitionClientProxy):
    
    LayoutTests:
    
    Update test to check for the interimResults attribute.
    
    * fast/speech/scripted/basics-expected.txt:
    * fast/speech/scripted/basics.html:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ec32fe67