Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Issue 2393043004: Blimp: IME should submit form with text (Closed)

Created:
4 years, 2 months ago by shaktisahu
Modified:
4 years, 2 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Blimp: IME should submit form with text Currently on Blimp IME, hitting Enter only sets the text in the web page. So user has to hit Enter twice in order to see search results. This patch solves this by generating a synthetic Enter key press event and sending it to the renderer. BUG=611132 Committed: https://crrev.com/46901aa0902ec9336a0eea3b85af83f4b6c7a315 Cr-Commit-Position: refs/heads/master@{#426838}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Bundled IME params into a struct #

Total comments: 14

Patch Set 3 : Using callback #

Patch Set 4 : Added unit tests and browser test #

Total comments: 10

Patch Set 5 : dtrainor@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -62 lines) Patch
M blimp/client/core/contents/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/core/contents/android/ime_helper_dialog.h View 1 1 chunk +6 lines, -7 lines 0 comments Download
M blimp/client/core/contents/android/ime_helper_dialog.cc View 1 2 2 chunks +13 lines, -9 lines 0 comments Download
M blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/input/ImeHelperDialog.java View 1 2 4 chunks +8 lines, -5 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_view_impl_aura.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M blimp/client/core/contents/ime_feature.h View 1 2 3 4 4 chunks +27 lines, -5 lines 0 comments Download
M blimp/client/core/contents/ime_feature.cc View 1 2 3 4 3 chunks +19 lines, -9 lines 0 comments Download
A blimp/client/core/contents/ime_feature_unittest.cc View 1 2 3 4 1 chunk +128 lines, -0 lines 0 comments Download
M blimp/client/core/contents/mock_ime_feature_delegate.h View 1 1 chunk +2 lines, -4 lines 0 comments Download
M blimp/common/proto/ime.proto View 1 1 chunk +1 line, -0 lines 0 comments Download
M blimp/engine/browser_tests/input_browsertest.cc View 1 2 3 3 chunks +38 lines, -4 lines 0 comments Download
M blimp/engine/feature/engine_render_widget_feature.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M blimp/engine/feature/engine_render_widget_feature.cc View 1 3 chunks +36 lines, -11 lines 0 comments Download
M blimp/test/data/input.html View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 22 (5 generated)
shaktisahu
4 years, 2 months ago (2016-10-05 20:49:15 UTC) #2
Brian Goldman
Can you add test coverage for this? Something in input_browsertest.cc might be appropriate.
4 years, 2 months ago (2016-10-05 20:51:45 UTC) #4
David Trainor- moved to gerrit
https://codereview.chromium.org/2393043004/diff/1/blimp/engine/feature/engine_render_widget_feature.cc File blimp/engine/feature/engine_render_widget_feature.cc (right): https://codereview.chromium.org/2393043004/diff/1/blimp/engine/feature/engine_render_widget_feature.cc#newcode260 blimp/engine/feature/engine_render_widget_feature.cc:260: void EngineRenderWidgetFeature::SetTextFromIME( Do we want to do this every ...
4 years, 2 months ago (2016-10-07 06:50:03 UTC) #5
shaktisahu
https://codereview.chromium.org/2393043004/diff/1/blimp/engine/feature/engine_render_widget_feature.cc File blimp/engine/feature/engine_render_widget_feature.cc (right): https://codereview.chromium.org/2393043004/diff/1/blimp/engine/feature/engine_render_widget_feature.cc#newcode260 blimp/engine/feature/engine_render_widget_feature.cc:260: void EngineRenderWidgetFeature::SetTextFromIME( On 2016/10/07 06:50:03, David Trainor wrote: > ...
4 years, 2 months ago (2016-10-07 16:30:08 UTC) #6
David Trainor- moved to gerrit
https://codereview.chromium.org/2393043004/diff/1/blimp/engine/feature/engine_render_widget_feature.cc File blimp/engine/feature/engine_render_widget_feature.cc (right): https://codereview.chromium.org/2393043004/diff/1/blimp/engine/feature/engine_render_widget_feature.cc#newcode260 blimp/engine/feature/engine_render_widget_feature.cc:260: void EngineRenderWidgetFeature::SetTextFromIME( On 2016/10/07 16:30:07, shaktisahu wrote: > On ...
4 years, 2 months ago (2016-10-10 21:07:49 UTC) #7
shaktisahu
dtrainor@ - PTAL. I have added a param for submitting the form which will be ...
4 years, 2 months ago (2016-10-13 21:27:46 UTC) #8
David Trainor- moved to gerrit
https://codereview.chromium.org/2393043004/diff/20001/blimp/client/core/contents/android/ime_helper_dialog.cc File blimp/client/core/contents/android/ime_helper_dialog.cc (right): https://codereview.chromium.org/2393043004/diff/20001/blimp/client/core/contents/android/ime_helper_dialog.cc#newcode54 blimp/client/core/contents/android/ime_helper_dialog.cc:54: ImeFeature::WebInputResponse response(current_request_); Can we just put a callback in ...
4 years, 2 months ago (2016-10-14 16:57:40 UTC) #9
shaktisahu
dtrainor@ - PTAL https://codereview.chromium.org/2393043004/diff/20001/blimp/client/core/contents/android/ime_helper_dialog.cc File blimp/client/core/contents/android/ime_helper_dialog.cc (right): https://codereview.chromium.org/2393043004/diff/20001/blimp/client/core/contents/android/ime_helper_dialog.cc#newcode54 blimp/client/core/contents/android/ime_helper_dialog.cc:54: ImeFeature::WebInputResponse response(current_request_); On 2016/10/14 16:57:40, David ...
4 years, 2 months ago (2016-10-14 18:08:19 UTC) #10
David Trainor- moved to gerrit
On 2016/10/14 18:08:19, shaktisahu wrote: > dtrainor@ - PTAL > > https://codereview.chromium.org/2393043004/diff/20001/blimp/client/core/contents/android/ime_helper_dialog.cc > File blimp/client/core/contents/android/ime_helper_dialog.cc ...
4 years, 2 months ago (2016-10-14 18:09:59 UTC) #11
shaktisahu
On 2016/10/14 18:09:59, David Trainor wrote: > On 2016/10/14 18:08:19, shaktisahu wrote: > > dtrainor@ ...
4 years, 2 months ago (2016-10-18 01:33:29 UTC) #12
Brian Goldman
lgtm. Thanks for setting up DOMMessageQueue; I think it will be a useful example for ...
4 years, 2 months ago (2016-10-18 16:46:28 UTC) #13
David Trainor- moved to gerrit
looking pretty good. a few more nits :). https://codereview.chromium.org/2393043004/diff/20001/blimp/client/core/contents/ime_feature.cc File blimp/client/core/contents/ime_feature.cc (right): https://codereview.chromium.org/2393043004/diff/20001/blimp/client/core/contents/ime_feature.cc#newcode39 blimp/client/core/contents/ime_feature.cc:39: DCHECK_LE(0, ...
4 years, 2 months ago (2016-10-18 16:53:45 UTC) #14
shaktisahu
dtrainor@ - PTAL https://codereview.chromium.org/2393043004/diff/60001/blimp/client/core/contents/ime_feature.cc File blimp/client/core/contents/ime_feature.cc (right): https://codereview.chromium.org/2393043004/diff/60001/blimp/client/core/contents/ime_feature.cc#newcode68 blimp/client/core/contents/ime_feature.cc:68: &ImeFeature::OnImeTextEntered, base::Unretained(this), On 2016/10/18 16:53:45, David ...
4 years, 2 months ago (2016-10-18 19:16:00 UTC) #15
David Trainor- moved to gerrit
lgtm!
4 years, 2 months ago (2016-10-21 16:07:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2393043004/80001
4 years, 2 months ago (2016-10-21 16:29:42 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-21 18:04:02 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 18:06:59 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/46901aa0902ec9336a0eea3b85af83f4b6c7a315
Cr-Commit-Position: refs/heads/master@{#426838}

Powered by Google App Engine
This is Rietveld 408576698