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

Issue 1779673003: Added network components for blimp text input feature (Closed)

Created:
4 years, 9 months ago by shaktisahu
Modified:
4 years, 9 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added network components for blimp text input feature This is the third CL for enabling text input. Created protobuf ImeMessage containing text and IME related information to be sent over network. Added WebInputFeature and WebInputFeatureDelegate to handle these messages. BUG=585646 Committed: https://crrev.com/ded7b6ba488f2163e9588573cbb5e705222b9205 Cr-Commit-Position: refs/heads/master@{#383242}

Patch Set 1 #

Total comments: 41

Patch Set 2 : Pulled out IME related engine code to EngineRenderWidgetFeature #

Patch Set 3 : Added proto coverters for TextInputType #

Total comments: 49

Patch Set 4 : Added unit tests and addressed comments #

Total comments: 64

Patch Set 5 : code review comments #

Patch Set 6 : Fixed initial values for tab id in ImeFeature #

Total comments: 25

Patch Set 7 : Code review comments from Wez #

Total comments: 6

Patch Set 8 : Cleanup #

Patch Set 9 : Fixed DEPS file and a converter method #

Patch Set 10 : Added text_input_types to BUILD.gn #

Total comments: 4

Patch Set 11 : More deps #

Patch Set 12 : Merge origin/master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+722 lines, -30 lines) Patch
M blimp/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 4 chunks +5 lines, -0 lines 0 comments Download
M blimp/client/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +69 lines, -12 lines 0 comments Download
M blimp/client/app/android/web_input_box.h View 1 2 3 4 5 6 7 2 chunks +17 lines, -4 lines 0 comments Download
M blimp/client/app/android/web_input_box.cc View 1 2 3 4 5 6 7 8 3 chunks +27 lines, -6 lines 0 comments Download
A blimp/client/feature/ime_feature.h View 1 2 3 4 5 6 7 1 chunk +85 lines, -0 lines 0 comments Download
A blimp/client/feature/ime_feature.cc View 1 2 3 4 5 6 7 1 chunk +76 lines, -0 lines 0 comments Download
M blimp/client/session/blimp_client_session.h View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M blimp/client/session/blimp_client_session.cc View 1 2 3 4 chunks +10 lines, -0 lines 0 comments Download
M blimp/common/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M blimp/common/create_blimp_message.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M blimp/common/create_blimp_message.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M blimp/common/proto/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M blimp/common/proto/blimp_message.proto View 3 chunks +3 lines, -0 lines 0 comments Download
A blimp/common/proto/ime.proto View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download
M blimp/engine/feature/engine_render_widget_feature.h View 1 2 3 4 5 chunks +16 lines, -0 lines 0 comments Download
M blimp/engine/feature/engine_render_widget_feature.cc View 1 2 3 4 6 chunks +75 lines, -0 lines 0 comments Download
M blimp/engine/feature/engine_render_widget_feature_unittest.cc View 1 2 3 7 chunks +89 lines, -0 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +11 lines, -0 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +60 lines, -4 lines 0 comments Download
M blimp/net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M blimp/net/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M blimp/net/input_message_converter.h View 1 2 3 3 chunks +12 lines, -3 lines 0 comments Download
M blimp/net/input_message_converter.cc View 1 2 3 4 5 6 7 8 1 chunk +83 lines, -0 lines 0 comments Download
M blimp/net/input_message_unittest.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (14 generated)
shaktisahu
4 years, 9 months ago (2016-03-09 07:02:09 UTC) #3
nyquist
https://codereview.chromium.org/1779673003/diff/1/blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java File blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java (right): https://codereview.chromium.org/1779673003/diff/1/blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java#newcode35 blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java:35: if (actionId == EditorInfo.IME_ACTION_NEXT || actionId == EditorInfo.IME_ACTION_DONE Nit: ...
4 years, 9 months ago (2016-03-10 00:57:13 UTC) #4
nyquist
https://codereview.chromium.org/1779673003/diff/1/blimp/engine/session/blimp_engine_session.cc File blimp/engine/session/blimp_engine_session.cc (right): https://codereview.chromium.org/1779673003/diff/1/blimp/engine/session/blimp_engine_session.cc#newcode311 blimp/engine/session/blimp_engine_session.cc:311: void BlimpEngineSession::OnTextInputStateChanged( And this should hoepfully be tested as ...
4 years, 9 months ago (2016-03-10 00:58:48 UTC) #5
Khushal
https://codereview.chromium.org/1779673003/diff/1/blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java File blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java (right): https://codereview.chromium.org/1779673003/diff/1/blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java#newcode81 blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java:81: public void showIme() { If this method is only ...
4 years, 9 months ago (2016-03-10 07:54:11 UTC) #6
David Trainor- moved to gerrit
https://codereview.chromium.org/1779673003/diff/1/blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java File blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java (right): https://codereview.chromium.org/1779673003/diff/1/blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java#newcode109 blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java:109: setImeOptions(EditorInfo.IME_FLAG_NO_FULLSCREEN | EditorInfo.IME_FLAG_NO_EXTRACT_UI); Do we want to do this ...
4 years, 9 months ago (2016-03-14 17:59:42 UTC) #7
shaktisahu
https://codereview.chromium.org/1779673003/diff/1/blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java File blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java (right): https://codereview.chromium.org/1779673003/diff/1/blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java#newcode35 blimp/client/app/android/java/src/org/chromium/blimp/input/WebInputBox.java:35: if (actionId == EditorInfo.IME_ACTION_NEXT || actionId == EditorInfo.IME_ACTION_DONE On ...
4 years, 9 months ago (2016-03-15 23:44:14 UTC) #8
Khushal
Looks great. May be add some tests for the EngineRenderWidgetFeature changes. https://codereview.chromium.org/1779673003/diff/40001/blimp/client/app/android/blimp_compositor_manager_android.h File blimp/client/app/android/blimp_compositor_manager_android.h (right): ...
4 years, 9 months ago (2016-03-17 10:02:45 UTC) #9
David Trainor- moved to gerrit
+wez and haibin for the network and engine reviews.
4 years, 9 months ago (2016-03-17 15:55:15 UTC) #11
haibinlu
https://codereview.chromium.org/1779673003/diff/40001/blimp/client/feature/web_input_feature.h File blimp/client/feature/web_input_feature.h (right): https://codereview.chromium.org/1779673003/diff/40001/blimp/client/feature/web_input_feature.h#newcode21 blimp/client/feature/web_input_feature.h:21: class BLIMP_CLIENT_EXPORT WebInputFeature : public BlimpMessageProcessor { ImeFeature to ...
4 years, 9 months ago (2016-03-17 18:59:46 UTC) #12
David Trainor- moved to gerrit
https://codereview.chromium.org/1779673003/diff/40001/blimp/client/feature/web_input_feature.cc File blimp/client/feature/web_input_feature.cc (right): https://codereview.chromium.org/1779673003/diff/40001/blimp/client/feature/web_input_feature.cc#newcode50 blimp/client/feature/web_input_feature.cc:50: tab_id_ = message->target_tab_id(); Should we ever clear these? If ...
4 years, 9 months ago (2016-03-17 21:53:29 UTC) #13
shaktisahu
https://codereview.chromium.org/1779673003/diff/40001/blimp/client/app/android/web_input_box.cc File blimp/client/app/android/web_input_box.cc (right): https://codereview.chromium.org/1779673003/diff/40001/blimp/client/app/android/web_input_box.cc#newcode38 blimp/client/app/android/web_input_box.cc:38: web_input_feature_->SetDelegate(NULL); On 2016/03/17 10:02:45, Khushal wrote: > nit: I ...
4 years, 9 months ago (2016-03-18 19:08:06 UTC) #15
haibinlu
https://codereview.chromium.org/1779673003/diff/40001/blimp/engine/session/blimp_engine_session.cc File blimp/engine/session/blimp_engine_session.cc (right): https://codereview.chromium.org/1779673003/diff/40001/blimp/engine/session/blimp_engine_session.cc#newcode373 blimp/engine/session/blimp_engine_session.cc:373: if (type == ui::TEXT_INPUT_TYPE_NONE) On 2016/03/18 19:08:06, shaktisahu wrote: ...
4 years, 9 months ago (2016-03-18 19:53:49 UTC) #16
Wez
Left a load of comments but they are mostly wording/naming & style nits - generally ...
4 years, 9 months ago (2016-03-18 20:51:28 UTC) #17
shaktisahu
Hi Wez and Haibin, Please review the suggested changes. Thanks Shakti https://codereview.chromium.org/1779673003/diff/40001/blimp/engine/session/blimp_engine_session.cc File blimp/engine/session/blimp_engine_session.cc (right): ...
4 years, 9 months ago (2016-03-22 19:44:20 UTC) #18
shaktisahu
Hi Wez and Haibin, Please review the suggested changes. Thanks Shakti
4 years, 9 months ago (2016-03-22 19:44:21 UTC) #19
haibinlu
lgtm https://codereview.chromium.org/1779673003/diff/100001/blimp/net/input_message_converter.h File blimp/net/input_message_converter.h (right): https://codereview.chromium.org/1779673003/diff/100001/blimp/net/input_message_converter.h#newcode5 blimp/net/input_message_converter.h:5: #ifndef BLIMP_NET_INPUT_MESSAGE_CONVERTER_H_ this class, together with net/input_message_generator.h, shall ...
4 years, 9 months ago (2016-03-22 19:58:15 UTC) #20
haibinlu
https://codereview.chromium.org/1779673003/diff/100001/blimp/net/DEPS File blimp/net/DEPS (right): https://codereview.chromium.org/1779673003/diff/100001/blimp/net/DEPS#newcode5 blimp/net/DEPS:5: "+ui/base", once input_message_converter is moved to blimp/common, no need ...
4 years, 9 months ago (2016-03-22 20:00:19 UTC) #21
Wez
https://codereview.chromium.org/1779673003/diff/60001/blimp/client/app/android/web_input_box.cc File blimp/client/app/android/web_input_box.cc (right): https://codereview.chromium.org/1779673003/diff/60001/blimp/client/app/android/web_input_box.cc#newcode21 blimp/client/app/android/web_input_box.cc:21: return reinterpret_cast<intptr_t>( On 2016/03/22 19:44:19, shaktisahu wrote: > On ...
4 years, 9 months ago (2016-03-22 21:43:38 UTC) #22
shaktisahu
Hi Wez, Please review the changes. Thanks Shakti https://codereview.chromium.org/1779673003/diff/60001/blimp/client/feature/ime_feature.cc File blimp/client/feature/ime_feature.cc (right): https://codereview.chromium.org/1779673003/diff/60001/blimp/client/feature/ime_feature.cc#newcode44 blimp/client/feature/ime_feature.cc:44: DCHECK(message->type() ...
4 years, 9 months ago (2016-03-22 23:45:43 UTC) #23
Wez
https://codereview.chromium.org/1779673003/diff/60001/blimp/common/create_blimp_message.cc File blimp/common/create_blimp_message.cc (right): https://codereview.chromium.org/1779673003/diff/60001/blimp/common/create_blimp_message.cc#newcode58 blimp/common/create_blimp_message.cc:58: DCHECK(ime_message); On 2016/03/22 23:45:42, shaktisahu wrote: > On 2016/03/22 ...
4 years, 9 months ago (2016-03-23 00:10:53 UTC) #24
shaktisahu
Hi Wez, Please review thesuggested changes. Thanks Shakti https://codereview.chromium.org/1779673003/diff/60001/blimp/common/create_blimp_message.cc File blimp/common/create_blimp_message.cc (right): https://codereview.chromium.org/1779673003/diff/60001/blimp/common/create_blimp_message.cc#newcode58 blimp/common/create_blimp_message.cc:58: DCHECK(ime_message); ...
4 years, 9 months ago (2016-03-23 01:44:14 UTC) #25
Wez
LGTM! https://codereview.chromium.org/1779673003/diff/60001/blimp/common/create_blimp_message.cc File blimp/common/create_blimp_message.cc (right): https://codereview.chromium.org/1779673003/diff/60001/blimp/common/create_blimp_message.cc#newcode58 blimp/common/create_blimp_message.cc:58: DCHECK(ime_message); On 2016/03/23 01:44:13, shaktisahu wrote: > On ...
4 years, 9 months ago (2016-03-23 23:21:25 UTC) #26
shaktisahu
On 2016/03/23 23:21:25, Wez wrote: > LGTM! > > https://codereview.chromium.org/1779673003/diff/60001/blimp/common/create_blimp_message.cc > File blimp/common/create_blimp_message.cc (right): > ...
4 years, 9 months ago (2016-03-24 01:05:02 UTC) #27
shaktisahu
On 2016/03/23 23:21:25, Wez wrote: > LGTM! > > https://codereview.chromium.org/1779673003/diff/60001/blimp/common/create_blimp_message.cc > File blimp/common/create_blimp_message.cc (right): > ...
4 years, 9 months ago (2016-03-24 01:05:06 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1779673003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1779673003/140001
4 years, 9 months ago (2016-03-24 01:05:42 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/160311)
4 years, 9 months ago (2016-03-24 01:15:38 UTC) #33
sky
On 2016/03/24 01:15:38, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 9 months ago (2016-03-24 02:59:47 UTC) #34
Wez
Looks like we're just pulling in the text-input-type enum (in WebInputBox)? On 23 March 2016 ...
4 years, 9 months ago (2016-03-24 05:21:00 UTC) #35
shaktisahu
On 2016/03/24 02:59:47, sky wrote: > On 2016/03/24 01:15:38, commit-bot: I haz the power wrote: ...
4 years, 9 months ago (2016-03-24 18:58:12 UTC) #36
shaktisahu
On 2016/03/24 02:59:47, sky wrote: > On 2016/03/24 01:15:38, commit-bot: I haz the power wrote: ...
4 years, 9 months ago (2016-03-24 18:58:15 UTC) #37
shaktisahu
4 years, 9 months ago (2016-03-24 18:59:03 UTC) #38
sky
I still don't see any BUILD.gn files dependening upon ui/base/ime:text_input_types. How come?
4 years, 9 months ago (2016-03-24 19:15:24 UTC) #39
shaktisahu
On 2016/03/24 19:15:24, sky wrote: > I still don't see any BUILD.gn files dependening upon ...
4 years, 9 months ago (2016-03-24 21:59:00 UTC) #40
shaktisahu
On 2016/03/24 19:15:24, sky wrote: > I still don't see any BUILD.gn files dependening upon ...
4 years, 9 months ago (2016-03-24 21:59:06 UTC) #41
sky
gn check would uncover all of these problems. https://codereview.chromium.org/1779673003/diff/180001/blimp/client/BUILD.gn File blimp/client/BUILD.gn (right): https://codereview.chromium.org/1779673003/diff/180001/blimp/client/BUILD.gn#newcode113 blimp/client/BUILD.gn:113: "feature/ime_feature.cc", ...
4 years, 9 months ago (2016-03-24 22:10:58 UTC) #42
shaktisahu
On 2016/03/24 22:10:58, sky wrote: > gn check would uncover all of these problems. > ...
4 years, 9 months ago (2016-03-24 23:12:51 UTC) #43
shaktisahu
Hi sky, Please review the last DEPS changes in BUILD.gn files Thanks Shakti https://codereview.chromium.org/1779673003/diff/180001/blimp/client/BUILD.gn File ...
4 years, 9 months ago (2016-03-24 23:13:33 UTC) #44
Wez
sky: Thanks for pointing out gn check; we're aware of it but haven't got into ...
4 years, 9 months ago (2016-03-25 00:25:20 UTC) #45
sky
LGTM
4 years, 9 months ago (2016-03-25 01:24:50 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1779673003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1779673003/200001
4 years, 9 months ago (2016-03-25 03:33:10 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/9165) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-25 03:35:45 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1779673003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1779673003/220001
4 years, 9 months ago (2016-03-25 03:56:52 UTC) #54
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 9 months ago (2016-03-25 04:36:50 UTC) #56
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 04:38:11 UTC) #58
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/ded7b6ba488f2163e9588573cbb5e705222b9205
Cr-Commit-Position: refs/heads/master@{#383242}

Powered by Google App Engine
This is Rietveld 408576698