diff options
author | leandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-29 19:37:21 +0000 |
---|---|---|
committer | leandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-29 19:37:21 +0000 |
commit | 6d0295ada658ff415a0ec4d335ccdf2df2125b3b (patch) | |
tree | 27c3a5158ec05e6c513dafb4c51668fb3394972a /webkit | |
parent | 430122208349518b861bb61b0ff184d2b7ae4f4e (diff) | |
download | chromium_src-6d0295ada658ff415a0ec4d335ccdf2df2125b3b.zip chromium_src-6d0295ada658ff415a0ec4d335ccdf2df2125b3b.tar.gz chromium_src-6d0295ada658ff415a0ec4d335ccdf2df2125b3b.tar.bz2 |
Language tag for speech.
This is the 3rd in a 4-sided patch to add language attribute support to speech input.
The other patches can be found here:
1st - http://codereview.chromium.org/3615005/show
2nd - https://bugs.webkit.org/show_bug.cgi?id=47089
4th - https://bugs.webkit.org/show_bug.cgi?id=47420
This patch will be submitted once the webkit change has been rolled into chromium DEPS. Also, a last webkit cleanup patch will be submitted at any point after the 2nd patch.
BUG=53598
TEST=
Review URL: http://codereview.chromium.org/3595018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64466 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/tools/test_shell/layout_test_controller.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc index ef206e3..d1d13bc 100644 --- a/webkit/tools/test_shell/layout_test_controller.cc +++ b/webkit/tools/test_shell/layout_test_controller.cc @@ -1128,9 +1128,10 @@ void LayoutTestController::setAllowFileAccessFromFileURLs( void LayoutTestController::setMockSpeechInputResult(const CppArgumentList& args, CppVariant* result) { - if (args.size() > 0 && args[0].isString()) { + if (args.size() > 0 && args[0].isString() && args[1].isString()) { shell_->speech_input_controller_mock()->setMockRecognitionResult( - WebString::fromUTF8(args[0].ToString())); + WebString::fromUTF8(args[0].ToString()), + WebString::fromUTF8(args[1].ToString())); } result->SetNull(); } |