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

Issue 2135493002: Support dragging texts out of webview/Chrome. (Closed)

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

Description

Support dragging texts out of webview/Chrome. With this CL, the user is able to drag the selected text from WebView/Chrome to other apps (Copy operation) or within the same WebView/Chrome tab (Move operation). This feature is disabled by default until we fully test it, and can be enabled by "switches::kEnableTouchDragDrop". BUG=584789 Committed: https://crrev.com/a100bde7399e5876e0ff61ac176b255eb6cf7e95 Cr-Commit-Position: refs/heads/master@{#406105}

Patch Set 1 : Support dragging texts out of webview/Chrome. #

Total comments: 2

Patch Set 2 : revert the ui/ part so that the feature is disabled by default #

Patch Set 3 : rebase, rewrite with sievers@ suggestion #

Patch Set 4 : compile #

Total comments: 8

Patch Set 5 : comments #

Patch Set 6 : Workaround b/30148704 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -11 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 2 chunks +14 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_android.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 1 2 5 chunks +37 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 5 chunks +21 lines, -5 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/WindowAndroid.java View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M ui/android/view_android.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/android/view_android.cc View 1 2 2 chunks +11 lines, -2 lines 0 comments Download
M ui/android/window_android.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/android/window_android.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (19 generated)
hush (inactive)
Hello Daniel, Can you take a look first? Thanks!
4 years, 5 months ago (2016-07-08 00:29:48 UTC) #2
hush (inactive)
4 years, 5 months ago (2016-07-08 00:29:59 UTC) #3
hush (inactive)
Vlad FYI
4 years, 5 months ago (2016-07-08 02:38:55 UTC) #6
dcheng
Code changes seems reasonable, but I'm not an owner =) https://codereview.chromium.org/2135493002/diff/40001/content/browser/web_contents/web_contents_view_android.cc File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2135493002/diff/40001/content/browser/web_contents/web_contents_view_android.cc#newcode213 ...
4 years, 5 months ago (2016-07-08 06:30:30 UTC) #7
hush (inactive)
https://codereview.chromium.org/2135493002/diff/40001/content/browser/web_contents/web_contents_view_android.cc File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2135493002/diff/40001/content/browser/web_contents/web_contents_view_android.cc#newcode213 content/browser/web_contents/web_contents_view_android.cc:213: blink::WebDragOperationMove); On 2016/07/08 06:30:30, dcheng wrote: > Out of ...
4 years, 5 months ago (2016-07-08 18:23:25 UTC) #8
hush (inactive)
Hello Yaron, PTAL content/browser/android* and content/public/android/* sievers@ PTAL content/browser/web_contents/* sky@: PTAL ui/base
4 years, 5 months ago (2016-07-08 18:28:50 UTC) #10
hush (inactive)
4 years, 5 months ago (2016-07-08 20:16:03 UTC) #12
no sievers
Please don't add any more code in ContentViewCore since it's deprecated. Can you add it ...
4 years, 5 months ago (2016-07-11 18:48:10 UTC) #14
no sievers
On 2016/07/11 18:48:10, sievers wrote: > Please don't add any more code in ContentViewCore since ...
4 years, 5 months ago (2016-07-11 18:51:52 UTC) #15
hush (inactive)
On 2016/07/11 18:51:52, sievers wrote: > On 2016/07/11 18:48:10, sievers wrote: > > Please don't ...
4 years, 5 months ago (2016-07-11 20:15:49 UTC) #16
no sievers
On 2016/07/11 20:15:49, hush wrote: > On 2016/07/11 18:51:52, sievers wrote: > > On 2016/07/11 ...
4 years, 5 months ago (2016-07-11 20:56:49 UTC) #17
hush (inactive)
On 2016/07/11 20:56:49, sievers wrote: > On 2016/07/11 20:15:49, hush wrote: > > On 2016/07/11 ...
4 years, 5 months ago (2016-07-11 21:52:47 UTC) #18
no sievers
On 2016/07/11 21:52:47, hush wrote: > On 2016/07/11 20:56:49, sievers wrote: > > On 2016/07/11 ...
4 years, 5 months ago (2016-07-11 21:58:50 UTC) #19
hush (inactive)
Hello sievers@, PTAL
4 years, 5 months ago (2016-07-12 21:49:56 UTC) #22
no sievers
On 2016/07/12 21:49:56, hush wrote: > Hello sievers@, PTAL lgtm
4 years, 5 months ago (2016-07-12 23:34:06 UTC) #23
hush (inactive)
Hello Theresa, PTAL ui/android
4 years, 5 months ago (2016-07-13 21:25:14 UTC) #29
Theresa
Having reviewed none of the other drag and drop code, I think this looks good. ...
4 years, 5 months ago (2016-07-13 22:55:42 UTC) #30
sgurun-gerrit only
https://codereview.chromium.org/2135493002/diff/140001/content/browser/web_contents/web_contents_view_android.cc File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2135493002/diff/140001/content/browser/web_contents/web_contents_view_android.cc#newcode222 content/browser/web_contents/web_contents_view_android.cc:222: native_view->StartDragAndDrop(jtext, it is better to convert the java type ...
4 years, 5 months ago (2016-07-14 18:13:35 UTC) #32
hush (inactive)
https://codereview.chromium.org/2135493002/diff/140001/content/browser/web_contents/web_contents_view_android.cc File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2135493002/diff/140001/content/browser/web_contents/web_contents_view_android.cc#newcode222 content/browser/web_contents/web_contents_view_android.cc:222: native_view->StartDragAndDrop(jtext, On 2016/07/14 18:13:35, sgurun wrote: > it is ...
4 years, 5 months ago (2016-07-14 18:37:07 UTC) #33
hush (inactive)
https://codereview.chromium.org/2135493002/diff/140001/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/2135493002/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode315 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:315: containerView.startDrag( On 2016/07/13 22:55:42, Theresa Wellington wrote: > This ...
4 years, 5 months ago (2016-07-14 18:42:09 UTC) #34
sgurun-gerrit only
https://codereview.chromium.org/2135493002/diff/140001/content/browser/web_contents/web_contents_view_android.cc File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2135493002/diff/140001/content/browser/web_contents/web_contents_view_android.cc#newcode222 content/browser/web_contents/web_contents_view_android.cc:222: native_view->StartDragAndDrop(jtext, On 2016/07/14 18:37:07, hush wrote: > On 2016/07/14 ...
4 years, 5 months ago (2016-07-14 18:43:05 UTC) #35
hush (inactive)
On 2016/07/13 22:55:42, Theresa Wellington wrote: > Having reviewed none of the other drag and ...
4 years, 5 months ago (2016-07-14 18:43:11 UTC) #36
no sievers
https://codereview.chromium.org/2135493002/diff/140001/content/browser/web_contents/web_contents_view_android.cc File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2135493002/diff/140001/content/browser/web_contents/web_contents_view_android.cc#newcode222 content/browser/web_contents/web_contents_view_android.cc:222: native_view->StartDragAndDrop(jtext, On 2016/07/14 18:43:04, sgurun wrote: > On 2016/07/14 ...
4 years, 5 months ago (2016-07-14 20:31:13 UTC) #37
hush (inactive)
Patch set 6: we discovered a bug in Android N framework: it is possible for ...
4 years, 5 months ago (2016-07-14 23:43:07 UTC) #39
sgurun-gerrit only
On 2016/07/14 23:43:07, hush wrote: > Patch set 6: we discovered a bug in Android ...
4 years, 5 months ago (2016-07-15 17:14:03 UTC) #40
Ted C
On 2016/07/15 17:14:03, sgurun wrote: > On 2016/07/14 23:43:07, hush wrote: > > Patch set ...
4 years, 5 months ago (2016-07-18 20:07:31 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/2135493002/180001
4 years, 5 months ago (2016-07-18 20:23:35 UTC) #44
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 5 months ago (2016-07-18 21:38:55 UTC) #46
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 21:39:11 UTC) #47
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 21:41:57 UTC) #49
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a100bde7399e5876e0ff61ac176b255eb6cf7e95
Cr-Commit-Position: refs/heads/master@{#406105}

Powered by Google App Engine
This is Rietveld 408576698