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

Issue 2639623002: Fixed Android text selection by redefining |button| value. (Closed)

Created:
3 years, 11 months ago by mustaq
Modified:
3 years, 10 months ago
CC:
agrieve+watch_chromium.org, blink-reviews, chromium-reviews, darin-cc_chromium.org, dtapuska+blinkwatch_chromium.org, jam, nona+watch_chromium.org, Navid Zolghadr, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed Android text selection by redefining |button| value. The |button| field in WebPointerProperties (used in WebMouseEvent and WebTouchPoint) follows the dom UI Events spec which is well-defined for mousedown/up events and for single-button-presses in other events. For Android WebMouseEvents (enabled recently), we initially set this value following the PointerEvent spec (which covers the multi-button-press case perfectly) then discovered that text selection is not working. We also discovered a bunch of other functionalities that depend on UI Events like assumptions. This CL refines Android |button| field to match other platforms, thus fixes text selection. BUG=666060 Review-Url: https://codereview.chromium.org/2639623002 Cr-Commit-Position: refs/heads/master@{#452150} Committed: https://chromium.googlesource.com/chromium/src/+/58aea4974d2230c5900f79d9d6344747033a6500

Patch Set 1 #

Patch Set 2 : Fixed mouse button assumptions in SelectionController. #

Patch Set 3 : Switched to matching Android button to other platforms. #

Patch Set 4 : Updated comments, renamed vars, git cl format. #

Patch Set 5 : Fixed WebPointerProperties comment. #

Messages

Total messages: 27 (16 generated)
mustaq
ptal. Text selection now works nicely together with keyboard ctrl-c/ctrl-v for basic copy-paste support. Double/triple ...
3 years, 10 months ago (2017-02-16 22:03:44 UTC) #3
aelias_OOO_until_Jul13
Approach looks good. For consistency and simplicity, please also delete the code that sets WebMouseEvent::button ...
3 years, 10 months ago (2017-02-17 00:11:33 UTC) #4
aelias_OOO_until_Jul13
Also, please add a test for this in WebViewTest.cpp.
3 years, 10 months ago (2017-02-17 00:13:53 UTC) #5
mustaq
On 2017/02/17 00:11:33, aelias wrote: > Approach looks good. For consistency and simplicity, please also ...
3 years, 10 months ago (2017-02-21 17:39:06 UTC) #6
aelias_OOO_until_Jul13
I specifically said to please make the other platforms match Android. It's a better model. ...
3 years, 10 months ago (2017-02-21 22:11:05 UTC) #7
aelias_OOO_until_Jul13
Hmm, thinking about this a bit more, lgtm as is. "plugins" especially is an intractable ...
3 years, 10 months ago (2017-02-21 22:20:49 UTC) #8
mustaq
On 2017/02/21 22:20:49, aelias wrote: > Hmm, thinking about this a bit more, lgtm as ...
3 years, 10 months ago (2017-02-22 15:50:23 UTC) #16
mustaq
skyostil@chromium.org: Please review changes in content/browser/android
3 years, 10 months ago (2017-02-22 15:51:40 UTC) #18
Sami
lgtm.
3 years, 10 months ago (2017-02-22 17:49:50 UTC) #21
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/2639623002/80001
3 years, 10 months ago (2017-02-22 18:38:52 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 18:56:48 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/58aea4974d2230c5900f79d9d634...

Powered by Google App Engine
This is Rietveld 408576698