Skip to content
  • satish@chromium.org's avatar
    2010-10-21 Satish Sampath <satish@chromium.org> · bc97234a
    satish@chromium.org authored
            Reviewed by Jeremy Orlow.
    
            Allow embedder to pass on all the speech recognition results to the input element.
            https://bugs.webkit.org/show_bug.cgi?id=48068
    
            No new tests added as functionality has not changed, tests will be added in the next
            patch where these results are exposed as an attribute to scripts.
    
            * Android.mk: Added new source files.
            * GNUmakefile.am:
            * WebCore.gypi:
            * WebCore.pro:
            * WebCore.xcodeproj/project.pbxproj:
            * page/SpeechInput.cpp:
            (WebCore::SpeechInput::setRecognitionResult): Accept an array instead of a single string.
            * page/SpeechInput.h:
            * page/SpeechInputListener.h:
            * page/SpeechInputResult.cpp: Added, defines a class for managing a speech input result.
            (WebCore::SpeechInputResult::create):
            (WebCore::SpeechInputResult::SpeechInputResult):
            (WebCore::SpeechInputResult::confidence):
            (WebCore::SpeechInputResult::utterance):
            * page/SpeechInputResult.h: Added.
            * platform/mock/SpeechInputClientMock.cpp:
            (WebCore::SpeechInputClientMock::timerFired):
            * rendering/TextControlInnerElements.cpp:
            (WebCore::InputFieldSpeechButtonElement::setRecognitionResult):
            * rendering/TextControlInnerElements.h:
    2010-10-21  Satish Sampath  <satish@chromium.org>
    
            Reviewed by Jeremy Orlow.
    
            Allow embedder to pass on all the speech recognition results to the input element.
            https://bugs.webkit.org/show_bug.cgi?id=48068
    
            * WebKit.gyp: Added new files
            * public/WebSpeechInputListener.h:
            * public/WebSpeechInputResult.h: Added, wrapper around WebCore::SpeechInputResult
            (WebKit::WebSpeechInputResult::WebSpeechInputResult):
            (WebKit::WebSpeechInputResult::~WebSpeechInputResult):
            * src/SpeechInputClientImpl.cpp:
            (WebKit::SpeechInputClientImpl::setRecognitionResult): Accepts an array instead of a single string.
            * src/SpeechInputClientImpl.h:
            * src/WebSpeechInputControllerMockImpl.cpp:
            (WebKit::WebSpeechInputControllerMockImpl::setRecognitionResult):
            * src/WebSpeechInputControllerMockImpl.h:
            * src/WebSpeechInputResult.cpp: Added.
            (WebKit::WebSpeechInputResult::reset):
            (WebKit::WebSpeechInputResult::WebSpeechInputResult):
            (WebKit::WebSpeechInputResult::set):
            (WebKit::WebSpeechInputResult::operator PassRefPtr<WebCore::SpeechInputResult>):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70490 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bc97234a