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

Issue 2130133004: Tracking text selection on the browser side in OOPIF. (Closed)

Created:
4 years, 5 months ago by EhsanK
Modified:
4 years, 5 months ago
Reviewers:
kenrb, Charlie Reis
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_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 text selection on the browser side in OOPIF. This CL adds the required logic to track the text selection information at the browser side. The text selection information is now stored in the WebContent's TextInputManager (outermost WebContents). All RenderWidgetHostViews as well as RenderWidgetHostViewAura (TextInputClient) will retrieve the information for a specific view or the active view from TextInputManager. BUG=578168, 602723 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/6f1786b887a51f3fcd3cdeacfd9b455934c570ca Cr-Commit-Position: refs/heads/master@{#406937}

Patch Set 1 #

Patch Set 2 : Added back the removed member variables since they are needed on Mac #

Patch Set 3 : Added an interactive ui test #

Total comments: 6

Patch Set 4 : Addressing kenrb@'s comments #

Patch Set 5 : Rebased #

Patch Set 6 : Removed GetSelectedTextFromTextInputManager() #

Patch Set 7 : Rebase added GetSelectedText() and its unit test back #

Total comments: 3

Patch Set 8 : Small change in a comment #

Patch Set 9 : Rebased #

Total comments: 4

Patch Set 10 : Rebased #

Patch Set 11 : Addressing creis@'s comments #

Patch Set 12 : Rebased #

Patch Set 13 : Initialize/Clear TextSelection for each view + make GetTextSelection() const. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -50 lines) Patch
M chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc View 1 2 3 4 2 chunks +65 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 6 chunks +61 lines, -33 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +62 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +29 lines, -1 line 0 comments Download
M content/browser/renderer_host/text_input_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +36 lines, -4 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +35 lines, -0 lines 0 comments Download
M content/public/test/text_input_test_utils.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M content/public/test/text_input_test_utils.cc View 1 2 3 4 5 6 5 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
EhsanK
Charlie, Ken: I believe this should conclude most of the work for aura IME on ...
4 years, 5 months ago (2016-07-11 20:34:21 UTC) #7
kenrb
Looks good, just a couple of questions. https://codereview.chromium.org/2130133004/diff/40001/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/2130133004/diff/40001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode117 content/browser/renderer_host/render_widget_host_view_base.cc:117: #if defined(USE_AURA) ...
4 years, 5 months ago (2016-07-12 19:15:25 UTC) #8
EhsanK
Thanks Ken! Please take another look. Any suggestions on how to resolve the const issue ...
4 years, 5 months ago (2016-07-12 19:33:48 UTC) #10
kenrb
https://codereview.chromium.org/2130133004/diff/40001/content/browser/renderer_host/render_widget_host_view_base.h File content/browser/renderer_host/render_widget_host_view_base.h (right): https://codereview.chromium.org/2130133004/diff/40001/content/browser/renderer_host/render_widget_host_view_base.h#newcode470 content/browser/renderer_host/render_widget_host_view_base.h:470: // The non-const implementation of RenderWidgetHostView::GetSelectedText(). On 2016/07/12 19:33:48, ...
4 years, 5 months ago (2016-07-12 20:15:18 UTC) #11
EhsanK
PTAL. https://codereview.chromium.org/2130133004/diff/40001/content/browser/renderer_host/render_widget_host_view_base.h File content/browser/renderer_host/render_widget_host_view_base.h (right): https://codereview.chromium.org/2130133004/diff/40001/content/browser/renderer_host/render_widget_host_view_base.h#newcode470 content/browser/renderer_host/render_widget_host_view_base.h:470: // The non-const implementation of RenderWidgetHostView::GetSelectedText(). On 2016/07/12 ...
4 years, 5 months ago (2016-07-18 15:21:29 UTC) #12
kenrb
lgtm
4 years, 5 months ago (2016-07-19 19:37:54 UTC) #13
Charlie Reis
LGTM https://codereview.chromium.org/2130133004/diff/160001/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/2130133004/diff/160001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode150 content/browser/renderer_host/render_widget_host_view_base.cc:150: // TODO(ekaramad): Use TextInputManager code paths for IME ...
4 years, 5 months ago (2016-07-20 23:00:30 UTC) #14
EhsanK
Thanks Charlie. This CL will have to wait for the other one on initialization to ...
4 years, 5 months ago (2016-07-21 16:52:55 UTC) #15
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 18:26:20 UTC) #18
EhsanK
Added proper initialization for TextSelection and made GetTextSelection const. I will commit after dry-run. Thanks!
4 years, 5 months ago (2016-07-21 18:27:07 UTC) #19
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/2130133004/240001
4 years, 5 months ago (2016-07-21 20:54:21 UTC) #24
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 20:54:24 UTC) #25
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 5 months ago (2016-07-21 21:11:24 UTC) #26
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 21:12:52 UTC) #28
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/6f1786b887a51f3fcd3cdeacfd9b455934c570ca
Cr-Commit-Position: refs/heads/master@{#406937}

Powered by Google App Engine
This is Rietveld 408576698