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

Issue 59023007: Enable pasting HTML content from the Android clipboard (Closed)

Created:
7 years, 1 month ago by Kristian Monsen
Modified:
7 years ago
CC:
chromium-reviews, dcheng
Visibility:
Public.

Description

Enable pasting HTML content from the Android clipboard BUG=316717 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238530

Patch Set 1 #

Total comments: 10

Patch Set 2 : Removed the diff due to changes upstream #

Patch Set 3 : Using coerceToHtmlText #

Total comments: 3

Patch Set 4 : Don't use coerceToHtmlText #

Total comments: 1

Patch Set 5 : Don't get an empty string during androidSync #

Patch Set 6 : rebase #

Total comments: 4

Patch Set 7 : clearing html entry if not there on the Java side #

Patch Set 8 : Updating tests to match how Android works #

Total comments: 2

Patch Set 9 : Fixing more tests #

Patch Set 10 : Fixing tests on pre jb devices #

Patch Set 11 : Remove unneeded function call #

Patch Set 12 : Upload *all* the files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -38 lines) Patch
M base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/Clipboard.java View 1 2 3 4 5 6 7 8 9 3 chunks +21 lines, -18 lines 0 comments Download
M ui/base/clipboard/clipboard_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +31 lines, -20 lines 0 comments Download
M ui/base/clipboard/clipboard_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Kristian Monsen
Test are coming, but opening the code review since we need this yesterday donwstream. (I ...
7 years, 1 month ago (2013-11-12 01:19:27 UTC) #1
joth
https://codereview.chromium.org/59023007/diff/1/ui/android/java/src/org/chromium/ui/Clipboard.java File ui/android/java/src/org/chromium/ui/Clipboard.java (right): https://codereview.chromium.org/59023007/diff/1/ui/android/java/src/org/chromium/ui/Clipboard.java#newcode90 ui/android/java/src/org/chromium/ui/Clipboard.java:90: return clip.getItemAt(0).getHtmlText(); It looks like coerceToHtmlText handles a few ...
7 years, 1 month ago (2013-11-12 01:45:38 UTC) #2
Kristian Monsen
https://codereview.chromium.org/59023007/diff/1/ui/base/clipboard/clipboard_android.cc File ui/base/clipboard/clipboard_android.cc (right): https://codereview.chromium.org/59023007/diff/1/ui/base/clipboard/clipboard_android.cc#newcode201 ui/base/clipboard/clipboard_android.cc:201: DCHECK_EQ(buffer, BUFFER_STANDARD); On 2013/11/12 01:45:39, joth wrote: > are ...
7 years, 1 month ago (2013-11-12 02:17:36 UTC) #3
Kristian Monsen
https://codereview.chromium.org/59023007/diff/1/ui/android/java/src/org/chromium/ui/Clipboard.java File ui/android/java/src/org/chromium/ui/Clipboard.java (right): https://codereview.chromium.org/59023007/diff/1/ui/android/java/src/org/chromium/ui/Clipboard.java#newcode90 ui/android/java/src/org/chromium/ui/Clipboard.java:90: return clip.getItemAt(0).getHtmlText(); On 2013/11/12 01:45:39, joth wrote: > It ...
7 years, 1 month ago (2013-11-12 04:27:23 UTC) #4
joth
basically lgtm, would be good to have some clipboard knowledgeable persons look at it too. ...
7 years, 1 month ago (2013-11-12 04:50:28 UTC) #5
Kristian Monsen
BTW, I feel the basic clipboard.h header is ready for some refactoring. Lots of #ifdefs ...
7 years, 1 month ago (2013-11-12 06:08:05 UTC) #6
tony
LGTM Should there be a new test case in clipboard_unittest.cc? https://codereview.chromium.org/59023007/diff/100001/ui/base/clipboard/clipboard_android.cc File ui/base/clipboard/clipboard_android.cc (right): https://codereview.chromium.org/59023007/diff/100001/ui/base/clipboard/clipboard_android.cc#newcode162 ...
7 years, 1 month ago (2013-11-12 17:26:30 UTC) #7
Kristian Monsen
We decided to not use coerceToHtmlText downstream as that seems to be the safest fix ...
7 years, 1 month ago (2013-11-13 22:18:20 UTC) #8
joth
https://codereview.chromium.org/59023007/diff/170001/ui/android/java/src/org/chromium/ui/Clipboard.java File ui/android/java/src/org/chromium/ui/Clipboard.java (right): https://codereview.chromium.org/59023007/diff/170001/ui/android/java/src/org/chromium/ui/Clipboard.java#newcode90 ui/android/java/src/org/chromium/ui/Clipboard.java:90: return clip.getItemAt(0).getHtmlText(); want to comment that coerce would be ...
7 years, 1 month ago (2013-11-13 23:11:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kristianm@chromium.org/59023007/330001
7 years ago (2013-11-25 20:24:21 UTC) #10
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=37983
7 years ago (2013-11-25 20:39:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kristianm@chromium.org/59023007/330001
7 years ago (2013-11-26 01:21:31 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=38063
7 years ago (2013-11-26 01:41:40 UTC) #13
Kristian Monsen
bulach: need owners lgtm
7 years ago (2013-11-26 17:05:39 UTC) #14
Kristian Monsen
Yaron: Need an owner lgtm for the java file
7 years ago (2013-11-26 17:07:20 UTC) #15
Yaron
yfriedman->newt
7 years ago (2013-11-26 18:17:30 UTC) #16
newt (away)
https://codereview.chromium.org/59023007/diff/330001/ui/base/clipboard/clipboard_android.cc File ui/base/clipboard/clipboard_android.cc (right): https://codereview.chromium.org/59023007/diff/330001/ui/base/clipboard/clipboard_android.cc#newcode163 ui/base/clipboard/clipboard_android.cc:163: map_[kHTMLFormat] = ConvertJavaStringToUTF8(java_string_html); what if map_ contains an HTML ...
7 years ago (2013-11-26 18:36:14 UTC) #17
Kristian Monsen
https://codereview.chromium.org/59023007/diff/330001/ui/base/clipboard/clipboard_android.cc File ui/base/clipboard/clipboard_android.cc (right): https://codereview.chromium.org/59023007/diff/330001/ui/base/clipboard/clipboard_android.cc#newcode163 ui/base/clipboard/clipboard_android.cc:163: map_[kHTMLFormat] = ConvertJavaStringToUTF8(java_string_html); On 2013/11/26 18:36:14, newt wrote: > ...
7 years ago (2013-11-26 22:47:38 UTC) #18
Kristian Monsen
Will try to debug this for a bit on the trybots as my local checkout ...
7 years ago (2013-11-27 00:34:03 UTC) #19
bulach
just a nit below.. the try bots don't look too happy though? failing ui_unittests.. https://codereview.chromium.org/59023007/diff/420001/ui/base/clipboard/clipboard_android.cc ...
7 years ago (2013-11-27 16:26:37 UTC) #20
Kristian Monsen
Tests still fail on pre KK devices, but all pas on N5 now. Will dig ...
7 years ago (2013-12-02 22:58:21 UTC) #21
Kristian Monsen
All tests passing, and nit fixed :-) PTAL, still need one owners lgtm. https://codereview.chromium.org/59023007/diff/420001/ui/base/clipboard/clipboard_android.cc File ...
7 years ago (2013-12-03 17:11:16 UTC) #22
bulach
lgtm, thanks!!
7 years ago (2013-12-03 17:38:05 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kristianm@chromium.org/59023007/500001
7 years ago (2013-12-03 17:39:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kristianm@chromium.org/59023007/500001
7 years ago (2013-12-03 19:09:33 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kristianm@chromium.org/59023007/500001
7 years ago (2013-12-03 23:34:21 UTC) #26
commit-bot: I haz the power
7 years ago (2013-12-04 02:50:24 UTC) #27
Message was sent while issue was closed.
Change committed as 238530

Powered by Google App Engine
This is Rietveld 408576698