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

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)

Created:
3 years, 7 months ago by amaralp
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, dtapuska+chromiumwatch_chromium.org, dtapuska+blinkwatch_chromium.org, jam, kinuko+watch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nona+watch_chromium.org, Navid Zolghadr, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Tapping handle shouldn't select misspelled word After crrev.com/2721813002 tapping an insertion handle triggered a contextmenu event which led to bug 717337. This CL fixes this bug by keeping track that the insertion handle tap contextmenu event came from touch. BUG=717337 Review-Url: https://codereview.chromium.org/2864833002 Cr-Commit-Position: refs/heads/master@{#474912} Committed: https://chromium.googlesource.com/chromium/src/+/915818ef6101ba84d48f9b359f4418f702bca8e6

Patch Set 1 #

Patch Set 2 : fixed bug #

Patch Set 3 : fix naming #

Total comments: 4

Patch Set 4 : Added enums #

Patch Set 5 : forgot to add file #

Patch Set 6 : check range instead of caret #

Patch Set 7 : changing to IsRange #

Patch Set 8 : format #

Patch Set 9 : dont run test on mac #

Patch Set 10 : Mac test #

Total comments: 7

Patch Set 11 : fixed bokan's nits #

Total comments: 6

Patch Set 12 : yosin's nits #

Total comments: 5

Patch Set 13 : Have Aura call into ShowContextMenuAtPoint #

Patch Set 14 : Rebasing #

Patch Set 15 : Fixed naming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -42 lines) Patch
M content/browser/renderer_host/input/touch_emulator.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator_client.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_emulator_unittest.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_selection_controller_client_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 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 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/assert_matching_enums.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandlerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/public/web/WebMenuSourceType.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M ui/base/ui_base_types.h View 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 86 (58 generated)
amaralp
PTAL, aelias@ for content/browser/renderer_host, content/renderer, public/web, and Source/web. yosin@ for core/editing bokan@ for core/input sadrul@ ...
3 years, 7 months ago (2017-05-09 21:11:17 UTC) #14
aelias_OOO_until_Jul13
Looks OK, but could you write a unit test for it?
3 years, 7 months ago (2017-05-09 21:30:10 UTC) #15
bokan
IMO, the real issue here is that we're doing the typo selection on context menu ...
3 years, 7 months ago (2017-05-09 23:21:36 UTC) #18
amaralp
On 2017/05/09 at 23:21:36, bokan wrote: > IMO, the real issue here is that we're ...
3 years, 7 months ago (2017-05-09 23:37:01 UTC) #19
yosin_UTC9
https://codereview.chromium.org/2864833002/diff/40001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2864833002/diff/40001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1826 content/browser/renderer_host/render_widget_host_view_android.cc:1826: host_->ShowContextMenuAtPoint(point, true); On 2017/05/09 at 23:21:36, bokan wrote: > ...
3 years, 7 months ago (2017-05-10 04:39:50 UTC) #20
bokan
On 2017/05/09 23:37:01, amaralp wrote: > On 2017/05/09 at 23:21:36, bokan wrote: > > IMO, ...
3 years, 7 months ago (2017-05-10 13:16:53 UTC) #21
bokan
On 2017/05/10 04:39:50, yosin_UTC9 wrote: > https://codereview.chromium.org/2864833002/diff/40001/content/browser/renderer_host/render_widget_host_view_android.cc > File content/browser/renderer_host/render_widget_host_view_android.cc (right): > > https://codereview.chromium.org/2864833002/diff/40001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1826 > ...
3 years, 7 months ago (2017-05-10 13:23:02 UTC) #22
amaralp
On 2017/05/10 at 13:23:02, bokan wrote: > On 2017/05/10 04:39:50, yosin_UTC9 wrote: > > https://codereview.chromium.org/2864833002/diff/40001/content/browser/renderer_host/render_widget_host_view_android.cc ...
3 years, 7 months ago (2017-05-22 23:08:26 UTC) #51
bokan
https://codereview.chromium.org/2864833002/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2864833002/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1861 content/browser/renderer_host/render_widget_host_view_android.cc:1861: host_->ShowContextMenuAtPoint(point, ui::MENU_SOURCE_TOUCH_HANDLE); Could we plumb this value up so ...
3 years, 7 months ago (2017-05-23 14:06:02 UTC) #52
amaralp
https://codereview.chromium.org/2864833002/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2864833002/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1861 content/browser/renderer_host/render_widget_host_view_android.cc:1861: host_->ShowContextMenuAtPoint(point, ui::MENU_SOURCE_TOUCH_HANDLE); On 2017/05/23 at 14:06:02, bokan wrote: > ...
3 years, 7 months ago (2017-05-23 19:37:53 UTC) #53
yosin_UTC9
https://codereview.chromium.org/2864833002/diff/200001/third_party/WebKit/Source/core/editing/SelectionController.cpp File third_party/WebKit/Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/2864833002/diff/200001/third_party/WebKit/Source/core/editing/SelectionController.cpp#newcode1050 third_party/WebKit/Source/core/editing/SelectionController.cpp:1050: if (HitTestResultIsMisspelled(mev.GetHitTestResult()) && It is better to check |FromTouch()| ...
3 years, 7 months ago (2017-05-24 05:08:39 UTC) #54
amaralp1
https://codereview.chromium.org/2864833002/diff/200001/third_party/WebKit/Source/core/editing/SelectionController.cpp File third_party/WebKit/Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/2864833002/diff/200001/third_party/WebKit/Source/core/editing/SelectionController.cpp#newcode1050 third_party/WebKit/Source/core/editing/SelectionController.cpp:1050: if (HitTestResultIsMisspelled(mev.GetHitTestResult()) && On 2017/05/24 at 05:08:38, yosin_UTC9 wrote: ...
3 years, 7 months ago (2017-05-24 05:33:28 UTC) #56
amaralp1
bokan@ and aelias@ do you have any more comments?
3 years, 7 months ago (2017-05-24 17:48:56 UTC) #57
bokan
lgtm https://codereview.chromium.org/2864833002/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2864833002/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1861 content/browser/renderer_host/render_widget_host_view_android.cc:1861: host_->ShowContextMenuAtPoint(point, ui::MENU_SOURCE_TOUCH_HANDLE); On 2017/05/23 19:37:53, amaralp wrote: > ...
3 years, 7 months ago (2017-05-24 18:28:22 UTC) #58
aelias_OOO_until_Jul13
lgtm
3 years, 7 months ago (2017-05-24 21:38:51 UTC) #61
amaralp
Adding more OWNERS tedchoc@: content/browser/web_contents sadrul@: ui/base/ui_base_types.h pfeldman@: content/child/assert_matching_enums.cc
3 years, 7 months ago (2017-05-24 23:29:55 UTC) #63
Ted C
On 2017/05/24 23:29:55, amaralp wrote: > Adding more OWNERS > > tedchoc@: content/browser/web_contents > sadrul@: ...
3 years, 7 months ago (2017-05-24 23:31:02 UTC) #64
sadrul
https://codereview.chromium.org/2864833002/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2864833002/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1333 content/browser/renderer_host/render_widget_host_impl.cc:1333: Send(new ViewMsg_ShowContextMenu(GetRoutingID(), source_type, point)); Can you update aura code ...
3 years, 7 months ago (2017-05-25 04:13:50 UTC) #67
yosin_UTC9
lgtm for core/editing
3 years, 7 months ago (2017-05-25 04:30:53 UTC) #68
amaralp1
https://codereview.chromium.org/2864833002/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2864833002/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1333 content/browser/renderer_host/render_widget_host_impl.cc:1333: Send(new ViewMsg_ShowContextMenu(GetRoutingID(), source_type, point)); On 2017/05/25 at 04:13:50, sadrul ...
3 years, 7 months ago (2017-05-25 04:39:53 UTC) #69
amaralp
Adding avi@ for content/child/assert_matching_enums.cc OWNERS
3 years, 7 months ago (2017-05-25 19:38:25 UTC) #71
Avi (use Gerrit)
lgtm
3 years, 7 months ago (2017-05-25 20:17:20 UTC) #72
sadrul
lgtm https://codereview.chromium.org/2864833002/diff/220001/ui/base/ui_base_types.h File ui/base/ui_base_types.h (right): https://codereview.chromium.org/2864833002/diff/220001/ui/base/ui_base_types.h#newcode51 ui/base/ui_base_types.h:51: MENU_SOURCE_TOUCH_HANDLE = 7, On 2017/05/25 04:39:53, amaralp1 wrote: ...
3 years, 7 months ago (2017-05-25 21:24:16 UTC) #73
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/2864833002/260001
3 years, 7 months ago (2017-05-25 21:25:31 UTC) #76
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/2864833002/280001
3 years, 7 months ago (2017-05-25 21:46:40 UTC) #79
commit-bot: I haz the power
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/303539)
3 years, 7 months ago (2017-05-25 23:55:42 UTC) #81
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/2864833002/280001
3 years, 7 months ago (2017-05-26 00:03:43 UTC) #83
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 05:00:15 UTC) #86
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/915818ef6101ba84d48f9b359f44...

Powered by Google App Engine
This is Rietveld 408576698