Source/WebCore: Fire TextInput events on speech input, but not set/add any inputMetho...
authorleandrogracia@chromium.org <leandrogracia@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2011 16:18:50 +0000 (16:18 +0000)
committerleandrogracia@chromium.org <leandrogracia@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2011 16:18:50 +0000 (16:18 +0000)
commitd3af9638365bc79ee670d9de4e96490c8b372a08
tree8155f0b79aec4b79afdab06aafa0b9c924725a6f
parent0ef594dee2b59fe230181e9cfb0c05986ada289a
Source/WebCore: Fire TextInput events on speech input, but not set/add any inputMethod attribute.
https://bugs.webkit.org/show_bug.cgi?id=60451

Reviewed by Ryosuke Niwa.

Introduce code to dispatch TextInput events when text is introduced via
the speech input feature. Handle also the cases where speech input is
started programmatically from the LayoutTestController.

Test: fast/speech/input-ontextinput-event.html

* dom/TextEventInputType.h:
* html/shadow/TextControlInnerElements.cpp:
(WebCore::InputFieldSpeechButtonElement::setRecognitionResult):

LayoutTests: Testing text events triggered by speech input.
https://bugs.webkit.org/show_bug.cgi?id=60451

Reviewed by Ryosuke Niwa.

* fast/speech/input-ontextinput-event-expected.txt: Added.
* fast/speech/input-ontextinput-event.html: Added.
* fast/speech/input-text-speechstart.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95722 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/speech/input-ontextinput-event-expected.txt [new file with mode: 0644]
LayoutTests/fast/speech/input-ontextinput-event.html [new file with mode: 0644]
LayoutTests/fast/speech/input-text-speechstart.html
Source/WebCore/ChangeLog
Source/WebCore/dom/TextEventInputType.h
Source/WebCore/html/shadow/TextControlInnerElements.cpp