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

Issue 2812933003: Support paste with style from Spanned (Closed)

Created:
3 years, 8 months ago by Shimi Zhang
Modified:
3 years, 8 months ago
Reviewers:
Theresa
CC:
chromium-reviews, agrieve+watch_chromium.org, sgurun-gerrit only
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Support paste with style from Spanned Only coerce text to HTML when needed, since replace getHtmlText with coerceToHtmlText will break two bookmark tests. 1. if text is HTML. 2. if text is plain text and has style (Spanned). BUG=709549 Review-Url: https://codereview.chromium.org/2812933003 Cr-Commit-Position: refs/heads/master@{#464584} Committed: https://chromium.googlesource.com/chromium/src/+/b65bc61d6aa279bc1012d33c55c0019c21abed6e

Patch Set 1 #

Patch Set 2 : check if text need to convert to HTML #

Patch Set 3 : text fix #

Total comments: 8

Patch Set 4 : add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -5 lines) Patch
M ui/android/java/src/org/chromium/ui/base/Clipboard.java View 1 2 3 5 chunks +34 lines, -4 lines 0 comments Download
M ui/android/junit/src/org/chromium/ui/base/ClipboardTest.java View 1 2 3 4 chunks +46 lines, -1 line 0 comments Download

Messages

Total messages: 33 (22 generated)
Shimi Zhang
3 years, 8 months ago (2017-04-12 20:39:31 UTC) #11
Shimi Zhang
On 2017/04/12 20:39:31, Shimi Zhang wrote: twellington@, could you please take a look.
3 years, 8 months ago (2017-04-12 20:40:33 UTC) #12
Shimi Zhang
On 2017/04/12 20:40:33, Shimi Zhang wrote: For hasStyleSpan method, we had a discussion in b/36853021, ...
3 years, 8 months ago (2017-04-12 20:47:39 UTC) #13
Shimi Zhang
On 2017/04/12 20:40:33, Shimi Zhang wrote: For hasStyleSpan method, we had a discussion in b/36853021, ...
3 years, 8 months ago (2017-04-12 20:47:40 UTC) #14
Theresa
It would be great to get some test added to ClipboardTest.java for this change in ...
3 years, 8 months ago (2017-04-12 23:41:35 UTC) #20
Shimi Zhang
https://codereview.chromium.org/2812933003/diff/40001/ui/android/java/src/org/chromium/ui/base/Clipboard.java File ui/android/java/src/org/chromium/ui/base/Clipboard.java (right): https://codereview.chromium.org/2812933003/diff/40001/ui/android/java/src/org/chromium/ui/base/Clipboard.java#newcode120 ui/android/java/src/org/chromium/ui/base/Clipboard.java:120: // TODO(ctzsm) remove this method after we move this ...
3 years, 8 months ago (2017-04-13 00:16:12 UTC) #21
Theresa
https://codereview.chromium.org/2812933003/diff/40001/ui/android/java/src/org/chromium/ui/base/Clipboard.java File ui/android/java/src/org/chromium/ui/base/Clipboard.java (right): https://codereview.chromium.org/2812933003/diff/40001/ui/android/java/src/org/chromium/ui/base/Clipboard.java#newcode151 ui/android/java/src/org/chromium/ui/base/Clipboard.java:151: if (hasStyleSpan(spanned)) { On 2017/04/13 00:16:12, Shimi Zhang wrote: ...
3 years, 8 months ago (2017-04-13 02:28:38 UTC) #22
Shimi Zhang
twellington@, I added a test, PTAL.
3 years, 8 months ago (2017-04-13 21:02:17 UTC) #25
Theresa
lgtm Thank you for adding the test.
3 years, 8 months ago (2017-04-13 21:30:15 UTC) #26
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/2812933003/60001
3 years, 8 months ago (2017-04-13 21:52:30 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 22:48:51 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b65bc61d6aa279bc1012d33c55c0...

Powered by Google App Engine
This is Rietveld 408576698