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

Issue 2132633002: Tracking composition range on the browser side (Aura) (Closed)

Created:
4 years, 5 months ago by EhsanK
Modified:
4 years, 5 months ago
Reviewers:
kenrb, Charlie Reis
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Tracking composition range on the browser side (Aura) Currently, the composition range information which is sent by RenderWidget in the IPC InputHostMsg_ImeCompositionRangeChanged is not being used when the source is a child frame. This CL modifies the RenderWidgetHostViewBase class to report the composition range to the TextInputManager which aggregates all such information from sub frames. The CL adds a unit test to verify that the InputMethod uses the correct composition range values for the active widget. A TODO is also left in site_per_process_text_input_browsertest.cc to come back and write an interactive test for tracking composition range for sub frames after the renderer side of IME is fixed. BUG=578168, 602723 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/b8e23a96c9c1d2933c57ba99aeac3199845fba99 Cr-Commit-Position: refs/heads/master@{#404873}

Patch Set 1 #

Patch Set 2 : Explicit Dtor/Ctor for Member Struct #

Patch Set 3 : Fixing a compile error #

Patch Set 4 : Formatting Fixes #

Total comments: 18

Patch Set 5 : Addressing comments #

Total comments: 12

Patch Set 6 : Addressing creis@'s comments and changing a test method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -46 lines) Patch
M chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc View 1 2 3 4 5 5 chunks +68 lines, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 2 chunks +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.h View 1 2 3 4 6 chunks +40 lines, -10 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.cc View 1 2 3 4 5 chunks +37 lines, -4 lines 0 comments Download
M content/public/test/text_input_test_utils.h View 1 2 3 4 5 3 chunks +25 lines, -0 lines 0 comments Download
M content/public/test/text_input_test_utils.cc View 1 2 3 4 5 7 chunks +41 lines, -1 line 0 comments Download
M content/test/test_render_view_host.h View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
EhsanK
Please, take a look. Thanks! https://codereview.chromium.org/2132633002/diff/60001/content/browser/renderer_host/text_input_manager.h File content/browser/renderer_host/text_input_manager.h (right): https://codereview.chromium.org/2132633002/diff/60001/content/browser/renderer_host/text_input_manager.h#newcode19 content/browser/renderer_host/text_input_manager.h:19: namespace gfx { Not ...
4 years, 5 months ago (2016-07-07 22:10:58 UTC) #3
kenrb
lgtm with nits https://codereview.chromium.org/2132633002/diff/60001/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/2132633002/diff/60001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode430 content/browser/renderer_host/render_widget_host_view_base.cc:430: #if defined(USE_AURA) I would add the ...
4 years, 5 months ago (2016-07-08 18:13:42 UTC) #4
Charlie Reis
Seems mostly good. I'm a bit unclear on the state of the tests below-- can ...
4 years, 5 months ago (2016-07-08 18:55:24 UTC) #5
Charlie Reis
[+site-isolation-reviews] Also, please CC site-isolation-reviews on these CLs. :)
4 years, 5 months ago (2016-07-08 18:56:01 UTC) #6
EhsanK
Thank you for the reviews! Please, take another look. https://codereview.chromium.org/2132633002/diff/60001/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/2132633002/diff/60001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode519 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:519: ...
4 years, 5 months ago (2016-07-11 18:07:21 UTC) #7
Charlie Reis
Thanks, LGTM with nits. https://codereview.chromium.org/2132633002/diff/60001/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/2132633002/diff/60001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode521 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:521: // implemented for WebFrameWidgetImpl (crbug.com/602723). ...
4 years, 5 months ago (2016-07-11 23:56:20 UTC) #8
EhsanK
Thanks Charlie! Please take another look. I will CQ after. Thanks! https://codereview.chromium.org/2132633002/diff/80001/content/public/test/text_input_test_utils.cc File content/public/test/text_input_test_utils.cc (right): ...
4 years, 5 months ago (2016-07-12 18:31:14 UTC) #9
Charlie Reis
Thanks, LGTM.
4 years, 5 months ago (2016-07-12 18:40:07 UTC) #10
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/2132633002/100001
4 years, 5 months ago (2016-07-12 22:17:36 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-13 01:21:50 UTC) #18
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 01:22:13 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 01:24:20 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b8e23a96c9c1d2933c57ba99aeac3199845fba99
Cr-Commit-Position: refs/heads/master@{#404873}

Powered by Google App Engine
This is Rietveld 408576698