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

Issue 2057803002: Tracking SelectionBounds for all RenderWidgets on the Browser Side (Aura Only) (Closed)

Created:
4 years, 6 months ago by EhsanK
Modified:
4 years, 5 months ago
Reviewers:
kenrb, Charlie Reis, sky
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 SelectionBounds for all RenderWidgets on the browser side. This patch implements the RenderWidgetHostViewBase::SelectionBoundsChanged as well as RenderWidgetHostViewChildFrame::SelectionBoundsChanged and moves the logic inside the RenderWidgetHostViewAura::SelectionBoundsChanged to the TextInputManager owned by the WebContentsImpl. This patch also adds a test to verify that TextInputManager tracks all the RWHVs selection bounds. The same implementation will be required for Mac; but perhaps it requires slight changes on the logic to store the state from ViewHostMsg_SelectionBounds_Params. BUG=578168, 602723 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/fcce0888975a8ad65fbeeeec78e52f2246b86020 Cr-Commit-Position: refs/heads/master@{#404043}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Fixed Compile Errors #

Total comments: 8

Patch Set 4 : Addressed kenrb@'s comments #

Patch Set 5 : Rebase #

Total comments: 1

Patch Set 6 : Removed |selection_anchor_| and |selection_focus_| from RenderWidgetHostViewAura. #

Total comments: 20

Patch Set 7 : Addressing creis@'s comments #

Patch Set 8 : Fixed an Error #

Total comments: 4

Patch Set 9 : Addressing creis@'s comments #

Total comments: 1

Patch Set 10 : Addressing creis@'s comments #

Total comments: 4

Patch Set 11 : Addressing sky@'s comments. #

Patch Set 12 : Adding creis@ as the owner of site_per_process_text_input_browsertest.cc #

Patch Set 13 : Fixed File name in OWNERS #

Patch Set 14 : Removed RenderWidgetHostViewChildFrame::SelectionBoundsChanged in favor of making the method non-vi… #

Patch Set 15 : Added a unit test #

Total comments: 10

Patch Set 16 : Addressing creis@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -115 lines) Patch
M chrome/browser/renderer_host/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 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 11 12 13 14 15 6 chunks +67 lines, -8 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 10 11 12 13 1 chunk +0 lines, -2 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 10 11 12 13 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -7 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 10 11 3 chunks +10 lines, -42 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 10 11 12 13 14 15 6 chunks +88 lines, -22 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 10 11 12 13 14 15 2 chunks +15 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 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 13 14 15 6 chunks +39 lines, -3 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 13 14 15 4 chunks +69 lines, -0 lines 0 comments Download
M content/public/test/text_input_test_utils.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -6 lines 0 comments Download
M content/public/test/text_input_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +24 lines, -6 lines 0 comments Download
M content/test/test_render_view_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 49 (19 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2057803002/40001
4 years, 5 months ago (2016-06-27 14:33:01 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-27 16:15:38 UTC) #6
EhsanK
Hello Ken, Could you please take a look? I have broken the IME related communication ...
4 years, 5 months ago (2016-06-27 17:18:13 UTC) #7
EhsanK
On 2016/06/27 17:18:13, EhsanK wrote: > Hello Ken, > > Could you please take a ...
4 years, 5 months ago (2016-06-27 20:07:19 UTC) #9
kenrb
Looks good: just some nits, plus as I mentioned offline, a suspicion that this might ...
4 years, 5 months ago (2016-06-28 19:15:23 UTC) #10
EhsanK
Thanks for the reviews! PTAL. Adding creis@. creis@: Charlie, can you please take a look? ...
4 years, 5 months ago (2016-06-29 17:09:58 UTC) #13
EhsanK
Updated patch. https://codereview.chromium.org/2057803002/diff/100001/content/browser/renderer_host/render_widget_host_view_aura.h File content/browser/renderer_host/render_widget_host_view_aura.h (right): https://codereview.chromium.org/2057803002/diff/100001/content/browser/renderer_host/render_widget_host_view_aura.h#newcode590 content/browser/renderer_host/render_widget_host_view_aura.h:590: gfx::SelectionBound selection_focus_; These are no longer needed ...
4 years, 5 months ago (2016-06-29 18:36:43 UTC) #14
Charlie Reis
It's not clear to me if this intentionally differs from the ImeCancel pattern or not-- ...
4 years, 5 months ago (2016-06-29 20:18:38 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2057803002/140001
4 years, 5 months ago (2016-06-30 00:24:42 UTC) #17
EhsanK
Thanks for the reviews. Charlie: Need your feedback on: 1- Use of LazyInstance/keeping ptr to ...
4 years, 5 months ago (2016-06-30 00:24:45 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/252872)
4 years, 5 months ago (2016-06-30 00:41:36 UTC) #20
Charlie Reis
Thanks-- some thoughts below. https://codereview.chromium.org/2057803002/diff/120001/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/2057803002/diff/120001/content/browser/renderer_host/render_widget_host_view_base.h#newcode271 content/browser/renderer_host/render_widget_host_view_base.h:271: // (https://crbug.com/578168). On 2016/06/30 00:24:45, ...
4 years, 5 months ago (2016-06-30 20:27:21 UTC) #21
EhsanK
Thanks Charlie! PTAL. https://codereview.chromium.org/2057803002/diff/120001/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/2057803002/diff/120001/content/browser/renderer_host/render_widget_host_view_base.h#newcode271 content/browser/renderer_host/render_widget_host_view_base.h:271: // (https://crbug.com/578168). On 2016/06/30 20:27:21, Charlie ...
4 years, 5 months ago (2016-06-30 21:01:15 UTC) #22
Charlie Reis
LGTM once Ken approves. (Did you test the device-scale-factor thing he mentioned?) https://codereview.chromium.org/2057803002/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 ...
4 years, 5 months ago (2016-06-30 21:16:14 UTC) #23
EhsanK
Thank you, Charlie! I tested it locally and it looked fine. Also, this might be ...
4 years, 5 months ago (2016-06-30 21:50:37 UTC) #25
sky
I believe you mean content/public/test not chrome/test. https://codereview.chromium.org/2057803002/diff/200001/content/public/test/text_input_test_utils.cc File content/public/test/text_input_test_utils.cc (right): https://codereview.chromium.org/2057803002/diff/200001/content/public/test/text_input_test_utils.cc#newcode97 content/public/test/text_input_test_utils.cc:97: std::unique_ptr<TextInputManagerTester::Callback> You ...
4 years, 5 months ago (2016-07-01 00:03:49 UTC) #26
EhsanK
sky@: Thank you very much for the reviews! I actually meant tests including chrome/browser/renderer_host/site_per_process_text_input_manager_browsertest.cc. PTAL. ...
4 years, 5 months ago (2016-07-01 00:29:57 UTC) #27
sky
Charlie should be an owner of chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc . Please update OWNERS in this patch and ...
4 years, 5 months ago (2016-07-01 16:13:40 UTC) #28
kenrb
lgtm
4 years, 5 months ago (2016-07-04 18:51:30 UTC) #29
EhsanK
Thanks for the reviews! sky@: Added creis@ as the owner of this file.
4 years, 5 months ago (2016-07-04 18:59:15 UTC) #30
EhsanK
Small refactoring change to RWHVCF and TextInputManager. PTAL.
4 years, 5 months ago (2016-07-04 20:13:58 UTC) #31
sky
OWNERS change LGTM
4 years, 5 months ago (2016-07-06 15:55:00 UTC) #32
Charlie Reis
Thanks, LGTM with nits. https://codereview.chromium.org/2057803002/diff/300001/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/2057803002/diff/300001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode188 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:188: explicit ViewSelectionBoundsChangedObserver( nit: No explicit ...
4 years, 5 months ago (2016-07-06 18:42:36 UTC) #33
EhsanK
Thank you all for reviewing this patch! FYI, I will commit after successful dry-run. https://codereview.chromium.org/2057803002/diff/300001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc ...
4 years, 5 months ago (2016-07-06 19:15:35 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2057803002/320001
4 years, 5 months ago (2016-07-06 19:16:21 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/99230)
4 years, 5 months ago (2016-07-06 23:28:57 UTC) #38
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/2057803002/320001
4 years, 5 months ago (2016-07-07 00:54:02 UTC) #41
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/2057803002/320001
4 years, 5 months ago (2016-07-07 01:24:20 UTC) #45
commit-bot: I haz the power
Committed patchset #16 (id:320001)
4 years, 5 months ago (2016-07-07 02:45:07 UTC) #47
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 02:48:16 UTC) #49
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/fcce0888975a8ad65fbeeeec78e52f2246b86020
Cr-Commit-Position: refs/heads/master@{#404043}

Powered by Google App Engine
This is Rietveld 408576698