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

Issue 2113183003: Support dragging texts into Chrome on Android. (Closed)

Created:
4 years, 5 months ago by hush (inactive)
Modified:
4 years, 5 months ago
Reviewers:
Ted C
CC:
chromium-reviews, darin-cc_chromium.org, jam, sgurun-gerrit only
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support dragging texts into Chrome on Android. To do so, we just need to plumb the DragEvent from ContentView. This CL also corrects the event coordinates passed to blink, which expects CSS pixels. BUG=584789 Committed: https://crrev.com/767aab0b0e6f75efec38c160e092c31647810be6 Cr-Commit-Position: refs/heads/master@{#404248}

Patch Set 1 #

Patch Set 2 : remove dead code #

Total comments: 2

Patch Set 3 : Intercept dragEvent and set TouchEventOffsets there #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -14 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java View 1 2 4 chunks +21 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentView.java View 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 2 chunks +13 lines, -10 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
hush (inactive)
PTAL I tested on chrome with a <TextArea> zoomed in and scrolled both horizontally and ...
4 years, 5 months ago (2016-07-01 00:29:43 UTC) #2
Ted C
https://codereview.chromium.org/2113183003/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/2113183003/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode3318 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:3318: float xPix = event.getX() + mRenderCoordinates.getScrollXPixInt(); why not use ...
4 years, 5 months ago (2016-07-01 17:55:05 UTC) #3
hush (inactive)
https://codereview.chromium.org/2113183003/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/2113183003/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode3318 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:3318: float xPix = event.getX() + mRenderCoordinates.getScrollXPixInt(); On 2016/07/01 17:55:04, ...
4 years, 5 months ago (2016-07-01 18:00:06 UTC) #4
Ted C
On 2016/07/01 18:00:06, hush wrote: > https://codereview.chromium.org/2113183003/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java > File > content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java > (right): > > ...
4 years, 5 months ago (2016-07-01 18:05:59 UTC) #5
hush (inactive)
On 2016/07/01 18:05:59, Ted C wrote: > On 2016/07/01 18:00:06, hush wrote: > > > ...
4 years, 5 months ago (2016-07-01 21:42:23 UTC) #6
Ted C
On 2016/07/01 21:42:23, hush wrote: > On 2016/07/01 18:05:59, Ted C wrote: > > On ...
4 years, 5 months ago (2016-07-01 22:19:05 UTC) #7
chromium-reviews
> I'm going to assume you can't start a drag gesture but then use your ...
4 years, 5 months ago (2016-07-01 22:55:00 UTC) #8
hush (inactive)
PTAL
4 years, 5 months ago (2016-07-02 00:28:00 UTC) #11
Ted C
lgtm
4 years, 5 months ago (2016-07-02 18:20:28 UTC) #12
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/2113183003/80001
4 years, 5 months ago (2016-07-02 19:24:40 UTC) #14
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/97806)
4 years, 5 months ago (2016-07-02 20:39:56 UTC) #16
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/2113183003/80001
4 years, 5 months ago (2016-07-06 18:59:48 UTC) #18
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/99282)
4 years, 5 months ago (2016-07-06 21:40:24 UTC) #20
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/2113183003/80001
4 years, 5 months ago (2016-07-07 19:24:58 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 5 months ago (2016-07-07 22:13:08 UTC) #23
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 22:13:34 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 22:15:27 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/767aab0b0e6f75efec38c160e092c31647810be6
Cr-Commit-Position: refs/heads/master@{#404248}

Powered by Google App Engine
This is Rietveld 408576698