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

Issue 2240553003: Track text selection on the browser side (Mac) (Closed)

Created:
4 years, 4 months ago by EhsanK
Modified:
4 years, 4 months ago
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, piman+watch_chromium.org, kalyank, 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

Track text selection on the browser side (Mac) This CL will mimic the code for aura in using TextInputManager for tracking the text selection information on the browser side. The CL also enables the corresponding ui test in Mac. BUG=578168, 602723 Committed: https://crrev.com/65cf5593f03c43ccaa8f97b023909040934d9ff5 Cr-Commit-Position: refs/heads/master@{#412938}

Patch Set 1 #

Patch Set 2 : Fixed a compile error on X11 && !CROMEOS #

Patch Set 3 : Fixed the failing tests on 'mac_chromium_rel_ng' #

Total comments: 21

Patch Set 4 : Addressing avi@'s comments #

Patch Set 5 : Rebased #

Patch Set 6 : Addressing erikchen@'s comments #

Total comments: 1

Patch Set 7 : Addressing erikchen@'s comment #

Patch Set 8 : GetFocusedWidget() instead of GetFocusedSubView() #

Total comments: 6

Patch Set 9 : Added #ifdef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -71 lines) Patch
M chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 1 chunk +18 lines, -32 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 6 7 3 chunks +9 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 3 chunks +15 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 2 chunks +40 lines, -27 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.cc View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (29 generated)
EhsanK
PTAL. https://codereview.chromium.org/2240553003/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/2240553003/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode964 content/browser/renderer_host/render_widget_host_view_mac.mm:964: selection_text_ = selection->text; These are also still used ...
4 years, 4 months ago (2016-08-12 05:07:54 UTC) #8
Avi (use Gerrit)
Looks reasonable; I want Erik to double-check it. https://codereview.chromium.org/2240553003/diff/40001/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/2240553003/diff/40001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode607 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:607: ui::DomCode::US_A, ...
4 years, 4 months ago (2016-08-12 15:53:11 UTC) #9
Avi (use Gerrit)
4 years, 4 months ago (2016-08-12 15:53:21 UTC) #11
erikchen
https://codereview.chromium.org/2240553003/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/2240553003/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode926 content/browser/renderer_host/render_widget_host_view_mac.mm:926: if (!GetTextInputManager()) Can you describe a situation where this ...
4 years, 4 months ago (2016-08-12 19:33:43 UTC) #12
EhsanK
Thanks for the reviews and sorry it took a bit longer to respond (PD days). ...
4 years, 4 months ago (2016-08-16 13:36:45 UTC) #21
EhsanK
Updating a comment. https://codereview.chromium.org/2240553003/diff/40001/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/2240553003/diff/40001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode607 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:607: ui::DomCode::US_A, ui::VKEY_A, true, false, false, false); ...
4 years, 4 months ago (2016-08-16 13:46:45 UTC) #22
erikchen
https://codereview.chromium.org/2240553003/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/2240553003/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode964 content/browser/renderer_host/render_widget_host_view_mac.mm:964: selection_text_ = selection->text; On 2016/08/16 13:36:45, EhsanK wrote: > ...
4 years, 4 months ago (2016-08-16 16:36:22 UTC) #25
EhsanK
PTAL. https://codereview.chromium.org/2240553003/diff/40001/content/browser/renderer_host/text_input_manager.cc File content/browser/renderer_host/text_input_manager.cc (right): https://codereview.chromium.org/2240553003/diff/40001/content/browser/renderer_host/text_input_manager.cc#newcode102 content/browser/renderer_host/text_input_manager.cc:102: if (pos >= selection->text.length()) { On 2016/08/16 16:36:22, ...
4 years, 4 months ago (2016-08-17 06:20:50 UTC) #26
EhsanK
https://codereview.chromium.org/2240553003/diff/140001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2240553003/diff/140001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2752 content/browser/renderer_host/render_widget_host_view_aura.cc:2752: tsc_config.show_on_tap_for_empty_editable = false; Sorry about the rebase + change ...
4 years, 4 months ago (2016-08-17 06:22:34 UTC) #27
erikchen
lgtm
4 years, 4 months ago (2016-08-17 16:51:55 UTC) #28
EhsanK
Thanks Erik for the review! PTAL. avi@: Could you please take another look at this ...
4 years, 4 months ago (2016-08-17 18:08:29 UTC) #31
Avi (use Gerrit)
To the extent that I can get my head around it, lgtm.
4 years, 4 months ago (2016-08-17 19:27:00 UTC) #34
EhsanK
Thanks Avi! kenrb@: Could you please take a look?
4 years, 4 months ago (2016-08-17 19:28:12 UTC) #35
EhsanK
Adding sky@ for the file 'site_per_process_text_input_browsertest.cc'. sky@: Could you please take a look? creis@ is ...
4 years, 4 months ago (2016-08-17 19:29:26 UTC) #36
kenrb
lgtm
4 years, 4 months ago (2016-08-17 19:47:54 UTC) #37
EhsanK
Thanks Ken! Added sky@ since I apparently forgot to do so earlier. sky@: Could you ...
4 years, 4 months ago (2016-08-17 19:50:42 UTC) #39
sky
https://codereview.chromium.org/2240553003/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/2240553003/diff/180001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode655 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:655: // TODO(ekaramad): Enable the following tests on other platforms ...
4 years, 4 months ago (2016-08-17 20:42:52 UTC) #40
EhsanK
Thanks sky@. I added some comments. Please take a look. https://codereview.chromium.org/2240553003/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 (left): https://codereview.chromium.org/2240553003/diff/180001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#oldcode630 ...
4 years, 4 months ago (2016-08-17 21:36:00 UTC) #41
sky
Also, I'm perfectly fine with moving things around, but I would rather you don't move ...
4 years, 4 months ago (2016-08-17 23:32:47 UTC) #42
EhsanK
Thanks sky@ for the review and the suggestions. Please take another look. PS: I will ...
4 years, 4 months ago (2016-08-18 14:43:29 UTC) #43
sky
So much nicer to review. Thanks! LGTM
4 years, 4 months ago (2016-08-18 19:11:13 UTC) #44
EhsanK
Thank you sky@! I will keep that in mind for the coming CLs. FYI, I ...
4 years, 4 months ago (2016-08-18 19:14:33 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/2240553003/200001
4 years, 4 months ago (2016-08-18 20:44:32 UTC) #51
commit-bot: I haz the power
Committed patchset #9 (id:200001)
4 years, 4 months ago (2016-08-18 21:45:14 UTC) #52
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 21:53:59 UTC) #54
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/65cf5593f03c43ccaa8f97b023909040934d9ff5
Cr-Commit-Position: refs/heads/master@{#412938}

Powered by Google App Engine
This is Rietveld 408576698