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

Issue 270613004: Implement "Copy image" for canvas (blink side). (Closed)

Created:
6 years, 7 months ago by zino
Modified:
6 years, 5 months ago
CC:
blink-reviews, groby+blinkspell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Implement "Copy image" for canvas (blink side). Many users want to copy the image of <canvas> to clipboard. (like <img>) As well as being useful, The feature is already supported in Firefox and IE. Chromium side: https://codereview.chromium.org/275833002/ BUG=369092 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177547

Patch Set 1 : #

Patch Set 2 : compile error: isNULL->isNull #

Total comments: 1

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 7

Patch Set 5 : #

Patch Set 6 : add test #

Total comments: 8

Patch Set 7 : nits #

Total comments: 6

Patch Set 8 : addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -15 lines) Patch
M Source/core/editing/Editor.cpp View 1 2 3 4 5 6 7 3 chunks +28 lines, -9 lines 0 comments Download
M Source/web/ContextMenuClientImpl.cpp View 1 2 3 4 5 6 7 2 chunks +5 lines, -6 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download
A Source/web/tests/data/canvas-copy-image.html View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
zino
Please take a look. (I'll upload the chromium side patch as well) Thank you :)
6 years, 7 months ago (2014-05-07 10:45:36 UTC) #1
zino
Ping Owners! I've just upload the chromium side patch as well. https://codereview.chromium.org/275833002/ Please review this ...
6 years, 7 months ago (2014-05-09 09:32:22 UTC) #2
Justin Novosad
https://codereview.chromium.org/270613004/diff/60001/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/270613004/diff/60001/Source/core/editing/Editor.cpp#newcode431 Source/core/editing/Editor.cpp:431: if (renderer) How does this even work? Shouldn't this ...
6 years, 7 months ago (2014-05-09 14:57:33 UTC) #3
zino
On 2014/05/09 14:57:33, junov wrote: > https://codereview.chromium.org/270613004/diff/60001/Source/core/editing/Editor.cpp > File Source/core/editing/Editor.cpp (right): > > https://codereview.chromium.org/270613004/diff/60001/Source/core/editing/Editor.cpp#newcode431 > ...
6 years, 7 months ago (2014-05-09 17:12:55 UTC) #4
Justin Novosad
https://codereview.chromium.org/270613004/diff/80001/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/270613004/diff/80001/Source/core/editing/Editor.cpp#newcode457 Source/core/editing/Editor.cpp:457: urlString = AtomicString("data:image/png"); This URL does not seem useful. ...
6 years, 7 months ago (2014-05-09 19:56:37 UTC) #5
zino
copyImage() copies a binary data of image, url, and title to clipboard. The binary data ...
6 years, 7 months ago (2014-05-10 00:23:48 UTC) #6
Justin Novosad
On 2014/05/10 00:23:48, zino wrote: > copyImage() copies a binary data of image, url, and ...
6 years, 7 months ago (2014-05-12 07:54:56 UTC) #7
zino
Ping Reviewers. I mentioned "the url can be used as fallback if the application doesn't ...
6 years, 6 months ago (2014-06-19 10:51:04 UTC) #8
Justin Novosad
On 2014/06/19 10:51:04, zino wrote: > Ping Reviewers. > > I mentioned "the url can ...
6 years, 6 months ago (2014-06-19 15:45:20 UTC) #9
yosin_UTC9
Could you add layout test for this patch? Thanks in advance. https://codereview.chromium.org/270613004/diff/100001/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp (right): ...
6 years, 6 months ago (2014-06-20 04:24:10 UTC) #10
zino
Dear all, I mentioned that sending a full data url is not needed but it ...
6 years, 6 months ago (2014-06-20 07:07:09 UTC) #11
zino
And Can we create layout tests about this CL? I think this CL is dependent ...
6 years, 6 months ago (2014-06-20 08:42:22 UTC) #12
yosin_UTC9
On 2014/06/20 08:42:22, zino wrote: > And > > Can we create layout tests about ...
6 years, 6 months ago (2014-06-20 08:57:13 UTC) #13
zino
On 2014/06/20 08:57:13, yosi wrote: > You can write layout test with CANVAS element + ...
6 years, 6 months ago (2014-06-20 13:49:56 UTC) #14
yosin_UTC9
On 2014/06/20 13:49:56, zino wrote: > On 2014/06/20 08:57:13, yosi wrote: > > You can ...
6 years, 6 months ago (2014-06-23 01:30:01 UTC) #15
zino
@Yosi, I've just uploaded a test. Could you please review again?
6 years, 5 months ago (2014-06-30 08:49:00 UTC) #16
yosin_UTC9
The CQ bit was checked by yosin@chromium.org
6 years, 5 months ago (2014-06-30 09:11:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinho.bang@samsung.com/270613004/160001
6 years, 5 months ago (2014-06-30 09:12:22 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-06-30 09:12:24 UTC) #19
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 5 months ago (2014-06-30 09:12:25 UTC) #20
yosin_UTC9
LGTM w/ tiny nits Please wait for OWNERS review for committing. https://codereview.chromium.org/270613004/diff/160001/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp (right): ...
6 years, 5 months ago (2014-06-30 09:17:09 UTC) #21
zino
Thank you for review. https://codereview.chromium.org/270613004/diff/160001/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/270613004/diff/160001/Source/core/editing/Editor.cpp#newcode431 Source/core/editing/Editor.cpp:431: if (renderer->isCanvas()) { On 2014/06/30 ...
6 years, 5 months ago (2014-06-30 10:30:33 UTC) #22
zino
@tkent, Could you take a look as the owner of web/* or core/*?
6 years, 5 months ago (2014-06-30 10:36:47 UTC) #23
tkent
lgtm https://codereview.chromium.org/270613004/diff/180001/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/270613004/diff/180001/Source/core/editing/Editor.cpp#newcode424 Source/core/editing/Editor.cpp:424: static Image* imageFromNode(const Node* node) The argument type ...
6 years, 5 months ago (2014-06-30 22:59:46 UTC) #24
zino
Thank you for review. https://codereview.chromium.org/270613004/diff/180001/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/270613004/diff/180001/Source/core/editing/Editor.cpp#newcode424 Source/core/editing/Editor.cpp:424: static Image* imageFromNode(const Node* node) ...
6 years, 5 months ago (2014-07-01 10:12:11 UTC) #25
zino
@junov Would you mind if I commit this?
6 years, 5 months ago (2014-07-03 10:33:35 UTC) #26
zino
On 2014/07/03 10:33:35, zino wrote: > @junov > > Would you mind if I commit ...
6 years, 5 months ago (2014-07-04 18:40:31 UTC) #27
Justin Novosad
lgtm
6 years, 5 months ago (2014-07-04 21:08:00 UTC) #28
zino
The CQ bit was checked by jinho.bang@samsung.com
6 years, 5 months ago (2014-07-04 21:44:55 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinho.bang@samsung.com/270613004/200001
6 years, 5 months ago (2014-07-04 21:45:27 UTC) #30
commit-bot: I haz the power
6 years, 5 months ago (2014-07-05 01:09:05 UTC) #31
Message was sent while issue was closed.
Change committed as 177547

Powered by Google App Engine
This is Rietveld 408576698