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

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)

Created:
4 years, 2 months ago by shaktisahu
Modified:
4 years, 1 month ago
CC:
site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extracting placeholder information from Webkit to Blimp For text input, the new Blimp IME requires few additional information associated with the text field such as label and placeholder attributes. For a mock UI, visit go/blimp-type-3 In this CL, the Blimp tab makes a call to RenderFrameHost to access the information about the currently focused text input field and supplies a callback to act upon obtaining the information. The RenderFrame gets the information, populates it into a FormFieldData struct and passes it to the browser which then invokes the supplied callback by the embedder. BUG=651902 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/aacf8d1d11beaff516bd79f88b8571eae0f5d031 Cr-Commit-Position: refs/heads/master@{#433364}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Piping through WebContentsDelegate #

Patch Set 3 : Observing InputMethod #

Total comments: 10

Patch Set 4 : Added the method to TextInputClient #

Patch Set 5 : Extracting info through RHVW #

Total comments: 18

Patch Set 6 : dtrainor comments #

Total comments: 3

Patch Set 7 : Bypassing the typical text entry path #

Total comments: 11

Patch Set 8 : Addressed some comments #

Total comments: 15

Patch Set 9 : Switched from ViewMsg_* to FrameMsg_* #

Total comments: 2

Patch Set 10 : Added test #

Total comments: 26

Patch Set 11 : Sending empty IPC on error #

Patch Set 12 : comments from @creis #

Total comments: 2

Patch Set 13 : Removed callback from RenderFrameHost destructor #

Total comments: 6

Patch Set 14 : nits #

Patch Set 15 : merge origin/master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -21 lines) Patch
M blimp/engine/feature/engine_render_widget_feature.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M blimp/engine/feature/engine_render_widget_feature.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -10 lines 0 comments Download
M blimp/engine/feature/engine_render_widget_feature_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -1 line 0 comments Download
M blimp/engine/session/blimp_engine_session.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -8 lines 0 comments Download
M blimp/engine/session/tab.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +14 lines, -0 lines 0 comments Download
M blimp/engine/session/tab.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +39 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +99 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +27 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +17 lines, -0 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
A content/public/common/form_field_data.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A content/public/common/form_field_data.cc View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (22 generated)
shaktisahu
creis@, ekaramad@ - PTAL. Please suggest if making content::TextInputManager/TextInputState public is reasonable, since for Blimp's ...
4 years, 2 months ago (2016-09-28 06:39:48 UTC) #3
EhsanK
I left some comments and in short, I don't think you should directly observe TextInputManager. ...
4 years, 2 months ago (2016-09-28 16:14:11 UTC) #4
shaktisahu
ekaramad@ - Thanks a lot for the feedback! I think it makes more sense now ...
4 years, 2 months ago (2016-09-28 20:17:23 UTC) #5
shaktisahu
ekaramad@ - PTAL. I just updated the patch to route the calls through RWVHAura->RenderWidgetHostDelegate(WebContentsImpl)->WebContentsDelegate(BlimpEngineSession) and ...
4 years, 2 months ago (2016-09-30 02:09:45 UTC) #6
shaktisahu
dtrainor@ - PTAL
4 years, 2 months ago (2016-09-30 19:15:11 UTC) #9
EhsanK
Thanks! LGTM. https://codereview.chromium.org/2370393002/diff/1/blimp/engine/session/blimp_engine_session.cc File blimp/engine/session/blimp_engine_session.cc (right): https://codereview.chromium.org/2370393002/diff/1/blimp/engine/session/blimp_engine_session.cc#newcode381 blimp/engine/session/blimp_engine_session.cc:381: void BlimpEngineSession::OnUpdateTextInputStateCalled( On 2016/09/28 20:17:23, shaktisahu wrote: ...
4 years, 2 months ago (2016-10-03 14:53:10 UTC) #10
nyquist
https://codereview.chromium.org/2370393002/diff/40001/blimp/engine/feature/engine_render_widget_feature_unittest.cc File blimp/engine/feature/engine_render_widget_feature_unittest.cc (right): https://codereview.chromium.org/2370393002/diff/40001/blimp/engine/feature/engine_render_widget_feature_unittest.cc#newcode268 blimp/engine/feature/engine_render_widget_feature_unittest.cc:268: std::string text = "green apple"; Should these be declared ...
4 years, 2 months ago (2016-10-05 04:20:56 UTC) #13
Charlie Reis
Thanks for working through this, and sorry for the late review. I'm a bit uncomfortable ...
4 years, 2 months ago (2016-10-05 21:19:34 UTC) #14
David Trainor- moved to gerrit
On 2016/10/05 21:19:34, Charlie Reis wrote: > Thanks for working through this, and sorry for ...
4 years, 2 months ago (2016-10-06 16:44:40 UTC) #15
Charlie Reis
On 2016/10/06 16:44:40, David Trainor wrote: > On 2016/10/05 21:19:34, Charlie Reis wrote: > > ...
4 years, 2 months ago (2016-10-07 06:04:41 UTC) #16
David Trainor- moved to gerrit
https://codereview.chromium.org/2370393002/diff/80001/blimp/engine/feature/engine_render_widget_feature.cc File blimp/engine/feature/engine_render_widget_feature.cc (right): https://codereview.chromium.org/2370393002/diff/80001/blimp/engine/feature/engine_render_widget_feature.cc#newcode140 blimp/engine/feature/engine_render_widget_feature.cc:140: const std::string& placeholder) { Do we want to add ...
4 years, 1 month ago (2016-10-26 01:36:42 UTC) #18
shaktisahu
dtrainor@ - PTAL https://codereview.chromium.org/2370393002/diff/80001/blimp/engine/feature/engine_render_widget_feature.cc File blimp/engine/feature/engine_render_widget_feature.cc (right): https://codereview.chromium.org/2370393002/diff/80001/blimp/engine/feature/engine_render_widget_feature.cc#newcode140 blimp/engine/feature/engine_render_widget_feature.cc:140: const std::string& placeholder) { On 2016/10/26 ...
4 years, 1 month ago (2016-10-31 23:13:59 UTC) #19
David Trainor- moved to gerrit
https://codereview.chromium.org/2370393002/diff/100001/blimp/engine/session/tab.cc File blimp/engine/session/tab.cc (right): https://codereview.chromium.org/2370393002/diff/100001/blimp/engine/session/tab.cc#newcode177 blimp/engine/session/tab.cc:177: web_contents()->GetRenderWidgetHostView()->GetFocusedFormFieldData(reply); What if I get a ShowIme() request while ...
4 years, 1 month ago (2016-11-03 04:25:50 UTC) #20
Charlie Reis
[+kenrb, site-isolation-reviews] I think there's an out-of-process iframe (OOPIF) issue here by relying on RenderView. ...
4 years, 1 month ago (2016-11-04 20:59:46 UTC) #22
David Trainor- moved to gerrit
https://codereview.chromium.org/2370393002/diff/140001/content/browser/renderer_host/render_widget_host_view_base.cc File content/browser/renderer_host/render_widget_host_view_base.cc (right): https://codereview.chromium.org/2370393002/diff/140001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode62 content/browser/renderer_host/render_widget_host_view_base.cc:62: callback.Run(FormFieldData()); On 2016/11/04 20:59:46, Charlie Reis wrote: > This ...
4 years, 1 month ago (2016-11-04 21:14:07 UTC) #23
shaktisahu
On 2016/11/04 20:59:46, Charlie Reis (OOO til 11-11) wrote: > [+kenrb, site-isolation-reviews] > > I ...
4 years, 1 month ago (2016-11-07 22:19:44 UTC) #24
shaktisahu
dtrainor@, creis@ - PTAL https://codereview.chromium.org/2370393002/diff/120001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2370393002/diff/120001/content/browser/renderer_host/render_widget_host_impl.cc#newcode501 content/browser/renderer_host/render_widget_host_impl.cc:501: OnFocusedFormFieldDataReply) On 2016/11/03 04:25:49, David ...
4 years, 1 month ago (2016-11-08 01:43:03 UTC) #26
EhsanK
https://codereview.chromium.org/2370393002/diff/140001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2370393002/diff/140001/content/renderer/render_view_impl.cc#newcode1396 content/renderer/render_view_impl.cc:1396: blink::WebFrame* web_frame = webview()->focusedFrame(); On 2016/11/04 20:59:46, Charlie Reis ...
4 years, 1 month ago (2016-11-08 15:52:45 UTC) #27
shaktisahu
creis@ - PTAL. https://codereview.chromium.org/2370393002/diff/140001/content/browser/renderer_host/render_widget_host_view_base.cc File content/browser/renderer_host/render_widget_host_view_base.cc (right): https://codereview.chromium.org/2370393002/diff/140001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode62 content/browser/renderer_host/render_widget_host_view_base.cc:62: callback.Run(FormFieldData()); On 2016/11/04 21:14:07, David Trainor ...
4 years, 1 month ago (2016-11-11 01:15:03 UTC) #28
EhsanK
LGTM with nits and some questions about focus. Thanks! https://codereview.chromium.org/2370393002/diff/180001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc File chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc (right): https://codereview.chromium.org/2370393002/diff/180001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode307 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:307: ...
4 years, 1 month ago (2016-11-11 01:44:18 UTC) #29
David Trainor- moved to gerrit
https://codereview.chromium.org/2370393002/diff/180001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2370393002/diff/180001/content/renderer/render_frame_impl.cc#newcode2317 content/renderer/render_frame_impl.cc:2317: return; We still have to respond to the request ...
4 years, 1 month ago (2016-11-11 18:44:38 UTC) #30
Charlie Reis
Looking much better, and thanks for the test! A few extra questions and concerns below, ...
4 years, 1 month ago (2016-11-11 22:20:46 UTC) #31
David Trainor- moved to gerrit
https://codereview.chromium.org/2370393002/diff/140001/content/browser/renderer_host/render_widget_host_view_base.cc File content/browser/renderer_host/render_widget_host_view_base.cc (right): https://codereview.chromium.org/2370393002/diff/140001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode62 content/browser/renderer_host/render_widget_host_view_base.cc:62: callback.Run(FormFieldData()); On 2016/11/11 22:20:46, Charlie Reis (OOO til 11-11) ...
4 years, 1 month ago (2016-11-12 00:17:35 UTC) #32
shaktisahu
creis@ - PTAL https://codereview.chromium.org/2370393002/diff/140001/content/browser/renderer_host/render_widget_host_view_base.cc File content/browser/renderer_host/render_widget_host_view_base.cc (right): https://codereview.chromium.org/2370393002/diff/140001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode62 content/browser/renderer_host/render_widget_host_view_base.cc:62: callback.Run(FormFieldData()); On 2016/11/11 22:20:46, Charlie Reis ...
4 years, 1 month ago (2016-11-15 05:44:54 UTC) #33
Charlie Reis
Thanks! This is ready from my perspective, apart from one request about the destructor callbacks. ...
4 years, 1 month ago (2016-11-16 00:18:00 UTC) #34
shaktisahu
creis@, dtrainor@, kenrb@ - PTAL https://codereview.chromium.org/2370393002/diff/140001/content/browser/renderer_host/render_widget_host_view_base.cc File content/browser/renderer_host/render_widget_host_view_base.cc (right): https://codereview.chromium.org/2370393002/diff/140001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode62 content/browser/renderer_host/render_widget_host_view_base.cc:62: callback.Run(FormFieldData()); On 2016/11/16 00:18:00, ...
4 years, 1 month ago (2016-11-16 20:26:58 UTC) #35
Charlie Reis
Thanks. content/ LGTM. I'll defer to dtrainor on the tab.cc changes. https://codereview.chromium.org/2370393002/diff/240001/blimp/engine/session/tab.cc File blimp/engine/session/tab.cc (right): ...
4 years, 1 month ago (2016-11-16 20:32:49 UTC) #36
kenrb
ipc lgtm
4 years, 1 month ago (2016-11-16 23:06:06 UTC) #37
shaktisahu
dtrainor@ - PTAL https://codereview.chromium.org/2370393002/diff/240001/blimp/engine/session/tab.cc File blimp/engine/session/tab.cc (right): https://codereview.chromium.org/2370393002/diff/240001/blimp/engine/session/tab.cc#newcode201 blimp/engine/session/tab.cc:201: if (field.text_input_type == ui::TEXT_INPUT_TYPE_NONE) On 2016/11/16 ...
4 years, 1 month ago (2016-11-17 01:16:15 UTC) #39
David Trainor- moved to gerrit
lgtm % nits thanks! https://codereview.chromium.org/2370393002/diff/240001/blimp/engine/feature/engine_render_widget_feature.cc File blimp/engine/feature/engine_render_widget_feature.cc (right): https://codereview.chromium.org/2370393002/diff/240001/blimp/engine/feature/engine_render_widget_feature.cc#newcode139 blimp/engine/feature/engine_render_widget_feature.cc:139: const content::FormFieldData& field) { This ...
4 years, 1 month ago (2016-11-17 23:05:41 UTC) #40
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/2370393002/260001
4 years, 1 month ago (2016-11-17 23:21:25 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_site_isolation on ...
4 years, 1 month ago (2016-11-18 01:25:34 UTC) #45
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/2370393002/260001
4 years, 1 month ago (2016-11-18 01:34:58 UTC) #47
commit-bot: I haz the power
Failed to apply patch for blimp/engine/feature/engine_render_widget_feature.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-18 02:53:03 UTC) #49
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/2370393002/260001
4 years, 1 month ago (2016-11-18 16:06:44 UTC) #51
commit-bot: I haz the power
Failed to apply patch for blimp/engine/feature/engine_render_widget_feature.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-18 16:14:01 UTC) #53
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/2370393002/280001
4 years, 1 month ago (2016-11-18 19:36:39 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_TIMED_OUT, no build URL)
4 years, 1 month ago (2016-11-18 21:39:39 UTC) #58
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/2370393002/280001
4 years, 1 month ago (2016-11-19 00:15:07 UTC) #60
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 1 month ago (2016-11-19 01:08:10 UTC) #61
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/aacf8d1d11beaff516bd79f88b8571eae0f5d031 Cr-Commit-Position: refs/heads/master@{#433364}
4 years, 1 month ago (2016-11-19 01:13:19 UTC) #63
Dirk Pranke
4 years, 1 month ago (2016-11-20 19:55:52 UTC) #64
Message was sent while issue was closed.
A revert of this CL (patchset #15 id:280001) has been created in
https://codereview.chromium.org/2513333002/ by dpranke@chromium.org.

The reason for reverting is: I'm speculatively reverting this to see if it
causes the failure in blink_platform_unittests noted in https://crbug.com/667094
and as seen in

https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Trusty...

. It's not at all obvious to my why this would cause that failure, but it's not
obvious to me what other changes would've, either, unless maybe it was pdr's
change (which I will try if this doesn't fix it)..

Powered by Google App Engine
This is Rietveld 408576698