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

Issue 9212066: Modified the flash cipboard interface to add html clipboard support. (Closed)

Created:
8 years, 11 months ago by raymes
Modified:
8 years, 10 months ago
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, dcheng, ihf+watch_chromium.org
Visibility:
Public.

Description

Modified the flash cipboard interface to add html clipboard support. This changes the way the interface works. To write data, the user now passes an array of data items, one for each format they want to write to the clipboard. When reading data, they specify the format they want to read. BUG=110796 TEST=./ui_tests --gtest_filter=*PPAPITest.*Clipboard* passes Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123581

Patch Set 1 #

Total comments: 6

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 16

Patch Set 12 : . #

Patch Set 13 : . #

Total comments: 2

Patch Set 14 : . #

Total comments: 30

Patch Set 15 : . #

Total comments: 13

Patch Set 16 : . #

Patch Set 17 : . #

Total comments: 59

Patch Set 18 : . #

Patch Set 19 : . #

Patch Set 20 : . #

Total comments: 4

Patch Set 21 : . #

Patch Set 22 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+599 lines, -184 lines) Patch
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/api/private/ppb_flash_clipboard.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +38 lines, -7 lines 0 comments Download
M ppapi/c/private/ppb_flash_clipboard.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +38 lines, -12 lines 0 comments Download
M ppapi/cpp/private/flash_clipboard.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +15 lines, -10 lines 0 comments Download
M ppapi/cpp/private/flash_clipboard.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +69 lines, -19 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +5 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_flash_clipboard_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +19 lines, -11 lines 0 comments Download
M ppapi/proxy/ppb_flash_clipboard_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +49 lines, -21 lines 0 comments Download
M ppapi/tests/test_flash_clipboard.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +12 lines, -1 line 0 comments Download
M ppapi/tests/test_flash_clipboard.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +98 lines, -24 lines 0 comments Download
M ppapi/thunk/ppb_flash_clipboard_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +8 lines, -5 lines 0 comments Download
M ppapi/thunk/ppb_flash_clipboard_thunk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +40 lines, -9 lines 0 comments Download
M ppapi/thunk/thunk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/clipboard/scoped_clipboard_writer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/clipboard/scoped_clipboard_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +5 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_clipboard_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +18 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +153 lines, -57 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
raymes
8 years, 11 months ago (2012-01-24 22:00:06 UTC) #1
viettrungluu
Note: You'll also need to properly version this interface and maintain backwards compatibility with the ...
8 years, 11 months ago (2012-01-25 00:01:55 UTC) #2
raymes1
https://chromiumcodereview.appspot.com/9212066/diff/1/ppapi/api/private/ppb_flash_clipboard.idl File ppapi/api/private/ppb_flash_clipboard.idl (right): https://chromiumcodereview.appspot.com/9212066/diff/1/ppapi/api/private/ppb_flash_clipboard.idl#newcode68 ppapi/api/private/ppb_flash_clipboard.idl:68: PP_Var ReadPlainText( On 2012/01/25 00:01:55, viettrungluu wrote: > Maybe ...
8 years, 11 months ago (2012-01-25 01:33:11 UTC) #3
raymes1
8 years, 11 months ago (2012-01-25 22:28:36 UTC) #4
viettrungluu
Looks good (with updated docs). (Don't commit this without the implementation, obviously.) http://codereview.chromium.org/9212066/diff/3006/ppapi/api/private/ppb_flash_clipboard.idl File ppapi/api/private/ppb_flash_clipboard.idl ...
8 years, 11 months ago (2012-01-26 18:26:18 UTC) #5
dcheng
https://chromiumcodereview.appspot.com/9212066/diff/14001/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc File webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc (right): https://chromiumcodereview.appspot.com/9212066/diff/14001/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc#newcode170 webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc:170: ScopedClipboardWriterGlue &scw) { We should probably use a pointer ...
8 years, 11 months ago (2012-01-27 19:55:32 UTC) #6
raymes
Thanks for the comments. On 2012/01/27 19:55:32, dcheng wrote: > https://chromiumcodereview.appspot.com/9212066/diff/14001/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc > File webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc (right): ...
8 years, 10 months ago (2012-01-30 17:50:30 UTC) #7
raymes
This new patch uses plugin_delegate to provide access to the ClipboardClient which plugins can use ...
8 years, 10 months ago (2012-01-30 21:11:10 UTC) #8
raymes
This is ready for a look. The only thing that I haven't implemented is functionality ...
8 years, 10 months ago (2012-02-06 19:12:00 UTC) #9
viettrungluu
Some initial comments. http://codereview.chromium.org/9212066/diff/32008/content/renderer/pepper_plugin_delegate_impl.cc File content/renderer/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/9212066/diff/32008/content/renderer/pepper_plugin_delegate_impl.cc#newcode2122 content/renderer/pepper_plugin_delegate_impl.cc:2122: PepperPluginDelegateImpl::CreateClipboardClient() const { Style nit: Apparently, ...
8 years, 10 months ago (2012-02-06 21:29:29 UTC) #10
raymes
https://chromiumcodereview.appspot.com/9212066/diff/32008/content/renderer/pepper_plugin_delegate_impl.cc File content/renderer/pepper_plugin_delegate_impl.cc (right): https://chromiumcodereview.appspot.com/9212066/diff/32008/content/renderer/pepper_plugin_delegate_impl.cc#newcode2122 content/renderer/pepper_plugin_delegate_impl.cc:2122: PepperPluginDelegateImpl::CreateClipboardClient() const { On 2012/02/06 21:29:29, viettrungluu wrote: > ...
8 years, 10 months ago (2012-02-07 00:02:25 UTC) #11
dcheng
https://chromiumcodereview.appspot.com/9212066/diff/32008/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc File webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc (right): https://chromiumcodereview.appspot.com/9212066/diff/32008/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc#newcode49 webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc:49: client_(0) { I personally prefer to see NULL instead ...
8 years, 10 months ago (2012-02-07 23:30:19 UTC) #12
raymes
https://chromiumcodereview.appspot.com/9212066/diff/32008/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc File webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc (right): https://chromiumcodereview.appspot.com/9212066/diff/32008/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc#newcode49 webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc:49: client_(0) { On 2012/02/07 23:30:19, dcheng wrote: > I ...
8 years, 10 months ago (2012-02-08 19:02:25 UTC) #13
viettrungluu
http://codereview.chromium.org/9212066/diff/54002/ppapi/cpp/private/flash_clipboard.cc File ppapi/cpp/private/flash_clipboard.cc (right): http://codereview.chromium.org/9212066/diff/54002/ppapi/cpp/private/flash_clipboard.cc#newcode50 ppapi/cpp/private/flash_clipboard.cc:50: bool Clipboard::ReadData(Instance* instance, nit: Move "Instance* instance," to the ...
8 years, 10 months ago (2012-02-08 22:25:01 UTC) #14
raymes
http://codereview.chromium.org/9212066/diff/54002/ppapi/cpp/private/flash_clipboard.cc File ppapi/cpp/private/flash_clipboard.cc (right): http://codereview.chromium.org/9212066/diff/54002/ppapi/cpp/private/flash_clipboard.cc#newcode50 ppapi/cpp/private/flash_clipboard.cc:50: bool Clipboard::ReadData(Instance* instance, On 2012/02/08 22:25:01, viettrungluu wrote: > ...
8 years, 10 months ago (2012-02-09 00:20:27 UTC) #15
viettrungluu
a few more nits, but almost there http://codereview.chromium.org/9212066/diff/57001/ppapi/cpp/private/flash_clipboard.cc File ppapi/cpp/private/flash_clipboard.cc (right): http://codereview.chromium.org/9212066/diff/57001/ppapi/cpp/private/flash_clipboard.cc#newcode58 ppapi/cpp/private/flash_clipboard.cc:58: *out = ...
8 years, 10 months ago (2012-02-09 00:47:36 UTC) #16
raymes
http://codereview.chromium.org/9212066/diff/57001/ppapi/cpp/private/flash_clipboard.cc File ppapi/cpp/private/flash_clipboard.cc (right): http://codereview.chromium.org/9212066/diff/57001/ppapi/cpp/private/flash_clipboard.cc#newcode58 ppapi/cpp/private/flash_clipboard.cc:58: *out = get_interface<PPB_Flash_Clipboard>()->ReadData( On 2012/02/09 00:47:37, viettrungluu wrote: > ...
8 years, 10 months ago (2012-02-09 17:28:22 UTC) #17
viettrungluu
LGTM. You'll need to get OWNERS approvals (and green try runs, probably).
8 years, 10 months ago (2012-02-09 18:43:31 UTC) #18
raymes
+dmichael for ppapi/ approval +jam for content/renderer and webkit/plugins approval +dcheng for ui/base/clipboard approval
8 years, 10 months ago (2012-02-22 22:47:14 UTC) #19
raymes
8 years, 10 months ago (2012-02-23 00:24:56 UTC) #20
dcheng
lgtm
8 years, 10 months ago (2012-02-23 00:27:43 UTC) #21
jam
content lgtm
8 years, 10 months ago (2012-02-23 00:58:09 UTC) #22
dmichael (off chromium)
https://chromiumcodereview.appspot.com/9212066/diff/79072/content/renderer/pepper/pepper_plugin_delegate_impl.cc File content/renderer/pepper/pepper_plugin_delegate_impl.cc (right): https://chromiumcodereview.appspot.com/9212066/diff/79072/content/renderer/pepper/pepper_plugin_delegate_impl.cc#newcode43 content/renderer/pepper/pepper_plugin_delegate_impl.cc:43: #include "content/renderer/renderer_clipboard_client.h" nit: include order https://chromiumcodereview.appspot.com/9212066/diff/79072/ppapi/c/private/ppb_flash_clipboard.h File ppapi/c/private/ppb_flash_clipboard.h (right): ...
8 years, 10 months ago (2012-02-23 18:13:25 UTC) #23
raymes
David, thanks for the helpful review! I've fixed up the CL. A couple of things ...
8 years, 10 months ago (2012-02-24 07:28:28 UTC) #24
dmichael (off chromium)
http://codereview.chromium.org/9212066/diff/79072/ppapi/cpp/private/flash_clipboard.cc File ppapi/cpp/private/flash_clipboard.cc (right): http://codereview.chromium.org/9212066/diff/79072/ppapi/cpp/private/flash_clipboard.cc#newcode66 ppapi/cpp/private/flash_clipboard.cc:66: clipboard_type); On 2012/02/24 07:28:28, raymes wrote: > Spoke to ...
8 years, 10 months ago (2012-02-24 19:35:44 UTC) #25
raymes
http://codereview.chromium.org/9212066/diff/79072/ppapi/cpp/private/flash_clipboard.cc File ppapi/cpp/private/flash_clipboard.cc (right): http://codereview.chromium.org/9212066/diff/79072/ppapi/cpp/private/flash_clipboard.cc#newcode66 ppapi/cpp/private/flash_clipboard.cc:66: clipboard_type); According to vtl, both are needed. On 2012/02/24 ...
8 years, 10 months ago (2012-02-24 21:38:16 UTC) #26
dmichael (off chromium)
lgtm http://codereview.chromium.org/9212066/diff/79072/ppapi/cpp/private/flash_clipboard.cc File ppapi/cpp/private/flash_clipboard.cc (right): http://codereview.chromium.org/9212066/diff/79072/ppapi/cpp/private/flash_clipboard.cc#newcode87 ppapi/cpp/private/flash_clipboard.cc:87: // Take the last plaintext item and write ...
8 years, 10 months ago (2012-02-24 21:49:36 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/9212066/103001
8 years, 10 months ago (2012-02-24 21:54:08 UTC) #28
commit-bot: I haz the power
8 years, 10 months ago (2012-02-24 23:15:03 UTC) #29
Change committed as 123581

Powered by Google App Engine
This is Rietveld 408576698