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

Issue 11225021: Move flash clipboard to the new proxy and add custom format support (Closed)

Created:
8 years, 2 months ago by raymes
Modified:
8 years, 1 month ago
Reviewers:
brettw, yzshen1, dcheng
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, dcheng
Visibility:
Public.

Description

Move flash clipboard to the new proxy and add custom format support This moves the flash clipboard interface to the new pepper proxy. It also adds support for copying/pasting data of custom data formats (which is needed for flash). BUG=154497 TEST=Added new pepper tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165548

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Total comments: 70

Patch Set 14 : . #

Total comments: 10

Patch Set 15 : . #

Total comments: 14

Patch Set 16 : . #

Patch Set 17 : . #

Total comments: 8

Patch Set 18 : . #

Patch Set 19 : . #

Patch Set 20 : . #

Patch Set 21 : . #

Total comments: 12

Patch Set 22 : . #

Patch Set 23 : . #

Patch Set 24 : . #

Total comments: 8

Patch Set 25 : . #

Patch Set 26 : . #

Patch Set 27 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1334 lines, -613 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/clipboard_message_filter.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/clipboard_message_filter.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M content/common/clipboard_messages.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_flash_clipboard_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +81 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_flash_clipboard_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +339 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 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 2 chunks +0 lines, -6 lines 0 comments Download
M content/renderer/renderer_clipboard_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/renderer_clipboard_client.cc View 1 1 chunk +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 5 chunks +47 lines, -25 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 7 chunks +33 lines, -20 lines 0 comments Download
M ppapi/cpp/private/flash_clipboard.h View 1 2 1 chunk +8 lines, -3 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 4 chunks +62 lines, -10 lines 0 comments Download
M ppapi/host/ppapi_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +40 lines, -33 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
A ppapi/proxy/flash_clipboard_resource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +50 lines, -0 lines 0 comments Download
A ppapi/proxy/flash_clipboard_resource.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +156 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 1 chunk +1 line, -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 19 20 21 22 2 chunks +19 lines, -15 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.h View 1 2 chunks +0 lines, -24 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 1 3 chunks +0 lines, -128 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 7 8 9 3 chunks +26 lines, -0 lines 0 comments Download
A ppapi/shared_impl/flash_clipboard_format_registry.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +65 lines, -0 lines 0 comments Download
A ppapi/shared_impl/flash_clipboard_format_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +91 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_flash_shared.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ppapi/shared_impl/ppb_flash_shared.cc View 1 1 chunk +0 lines, -16 lines 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/test_flash_clipboard.h View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M ppapi/tests/test_flash_clipboard.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +75 lines, -16 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private_flash.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -9 lines 0 comments Download
M ppapi/thunk/ppb_flash_api.h View 1 2 chunks +0 lines, -15 lines 0 comments Download
A ppapi/thunk/ppb_flash_clipboard_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +40 lines, -0 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 2 chunks +49 lines, -27 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +7 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_aurax11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +10 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_util_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_util_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +9 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 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/clipboard_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/glue/scoped_clipboard_writer_glue.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -2 lines 0 comments Download
M webkit/glue/scoped_clipboard_writer_glue.cc View 1 2 3 4 5 6 7 8 2 chunks +4 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 2 chunks +0 lines, -2 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 1 chunk +0 lines, -5 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 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.h View 1 3 chunks +0 lines, -29 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.cc View 1 4 chunks +0 lines, -209 lines 0 comments Download
M webkit/tools/test_shell/simple_clipboard_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/simple_clipboard_impl.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
raymes
This looks scary but most of it is just a few lines changed in each ...
8 years, 2 months ago (2012-10-24 18:26:56 UTC) #1
raymes
Updated, PTAL. Note that I couldn't use the custom_data_helper.* code directly because it deals with ...
8 years, 1 month ago (2012-10-25 22:59:34 UTC) #2
yzshen1
http://codereview.chromium.org/11225021/diff/42057/ppapi/host/ppapi_host.cc File ppapi/host/ppapi_host.cc (right): http://codereview.chromium.org/11225021/diff/42057/ppapi/host/ppapi_host.cc#newcode146 ppapi/host/ppapi_host.cc:146: << "'Post' message handler failed to complete successfully."; wrong ...
8 years, 1 month ago (2012-10-29 16:55:46 UTC) #3
yzshen1
I reviewed all .*ppapi.* and .*pepper.* files. http://codereview.chromium.org/11225021/diff/42057/content/renderer/pepper/pepper_flash_clipboard_host.cc File content/renderer/pepper/pepper_flash_clipboard_host.cc (right): http://codereview.chromium.org/11225021/diff/42057/content/renderer/pepper/pepper_flash_clipboard_host.cc#newcode21 content/renderer/pepper/pepper_flash_clipboard_host.cc:21: using ppapi::thunk::PPB_Flash_Clipboard_API; ...
8 years, 1 month ago (2012-10-29 17:58:04 UTC) #4
raymes
Thanks. dcheng, PTAL when you have a chance. https://codereview.chromium.org/11225021/diff/42057/content/renderer/pepper/pepper_flash_clipboard_host.cc File content/renderer/pepper/pepper_flash_clipboard_host.cc (right): https://codereview.chromium.org/11225021/diff/42057/content/renderer/pepper/pepper_flash_clipboard_host.cc#newcode21 content/renderer/pepper/pepper_flash_clipboard_host.cc:21: using ...
8 years, 1 month ago (2012-10-29 18:44:56 UTC) #5
yzshen1
LGTM for the pepper changes, with a few nits. http://codereview.chromium.org/11225021/diff/50003/ppapi/api/private/ppb_flash_clipboard.idl File ppapi/api/private/ppb_flash_clipboard.idl (right): http://codereview.chromium.org/11225021/diff/50003/ppapi/api/private/ppb_flash_clipboard.idl#newcode87 ppapi/api/private/ppb_flash_clipboard.idl:87: ...
8 years, 1 month ago (2012-10-29 18:57:33 UTC) #6
raymes
https://codereview.chromium.org/11225021/diff/50003/ppapi/api/private/ppb_flash_clipboard.idl File ppapi/api/private/ppb_flash_clipboard.idl (right): https://codereview.chromium.org/11225021/diff/50003/ppapi/api/private/ppb_flash_clipboard.idl#newcode87 ppapi/api/private/ppb_flash_clipboard.idl:87: * string. An id identifying the format will be ...
8 years, 1 month ago (2012-10-29 20:04:48 UTC) #7
dcheng
http://codereview.chromium.org/11225021/diff/49013/content/renderer/pepper/pepper_flash_clipboard_host.cc File content/renderer/pepper/pepper_flash_clipboard_host.cc (right): http://codereview.chromium.org/11225021/diff/49013/content/renderer/pepper/pepper_flash_clipboard_host.cc#newcode41 content/renderer/pepper/pepper_flash_clipboard_host.cc:41: // TODO(raymes): This code is very similar to the ...
8 years, 1 month ago (2012-10-29 20:26:29 UTC) #8
raymes
https://codereview.chromium.org/11225021/diff/49013/content/renderer/pepper/pepper_flash_clipboard_host.cc File content/renderer/pepper/pepper_flash_clipboard_host.cc (right): https://codereview.chromium.org/11225021/diff/49013/content/renderer/pepper/pepper_flash_clipboard_host.cc#newcode41 content/renderer/pepper/pepper_flash_clipboard_host.cc:41: // TODO(raymes): This code is very similar to the ...
8 years, 1 month ago (2012-10-29 23:30:00 UTC) #9
dcheng
http://codereview.chromium.org/11225021/diff/56011/ppapi/shared_impl/flash_clipboard_format_registry.cc File ppapi/shared_impl/flash_clipboard_format_registry.cc (right): http://codereview.chromium.org/11225021/diff/56011/ppapi/shared_impl/flash_clipboard_format_registry.cc#newcode27 ppapi/shared_impl/flash_clipboard_format_registry.cc:27: if (format_name.length() == 0 || format_name.length() > kMaxFormatNameLength) Nit: ...
8 years, 1 month ago (2012-10-30 00:52:33 UTC) #10
raymes
http://codereview.chromium.org/11225021/diff/56011/ppapi/shared_impl/flash_clipboard_format_registry.cc File ppapi/shared_impl/flash_clipboard_format_registry.cc (right): http://codereview.chromium.org/11225021/diff/56011/ppapi/shared_impl/flash_clipboard_format_registry.cc#newcode27 ppapi/shared_impl/flash_clipboard_format_registry.cc:27: if (format_name.length() == 0 || format_name.length() > kMaxFormatNameLength) On ...
8 years, 1 month ago (2012-10-30 01:57:16 UTC) #11
dcheng
LGTM with some const nits. http://codereview.chromium.org/11225021/diff/60078/ppapi/shared_impl/flash_clipboard_format_registry.cc File ppapi/shared_impl/flash_clipboard_format_registry.cc (right): http://codereview.chromium.org/11225021/diff/60078/ppapi/shared_impl/flash_clipboard_format_registry.cc#newcode57 ppapi/shared_impl/flash_clipboard_format_registry.cc:57: bool FlashClipboardFormatRegistry::IsFormatRegistered(uint32_t format) { ...
8 years, 1 month ago (2012-10-30 02:21:13 UTC) #12
raymes
Thanks for this! https://codereview.chromium.org/11225021/diff/60078/ppapi/shared_impl/flash_clipboard_format_registry.cc File ppapi/shared_impl/flash_clipboard_format_registry.cc (right): https://codereview.chromium.org/11225021/diff/60078/ppapi/shared_impl/flash_clipboard_format_registry.cc#newcode57 ppapi/shared_impl/flash_clipboard_format_registry.cc:57: bool FlashClipboardFormatRegistry::IsFormatRegistered(uint32_t format) { On 2012/10/30 ...
8 years, 1 month ago (2012-10-30 02:53:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11225021/75001
8 years, 1 month ago (2012-10-31 16:05:36 UTC) #14
commit-bot: I haz the power
Presubmit check for 11225021-75001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-10-31 16:06:00 UTC) #15
raymes
brettw for OWNERS
8 years, 1 month ago (2012-10-31 16:07:49 UTC) #16
brettw
owners LGTM. I only did a quick once over. Noted a few style nits, but ...
8 years, 1 month ago (2012-10-31 18:05:53 UTC) #17
raymes
Thanks! https://codereview.chromium.org/11225021/diff/40066/content/renderer/pepper/pepper_flash_clipboard_host.cc File content/renderer/pepper/pepper_flash_clipboard_host.cc (right): https://codereview.chromium.org/11225021/diff/40066/content/renderer/pepper/pepper_flash_clipboard_host.cc#newcode28 content/renderer/pepper/pepper_flash_clipboard_host.cc:28: uint32_t type) { On 2012/10/31 18:05:53, brettw wrote: ...
8 years, 1 month ago (2012-11-01 19:57:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11225021/83002
8 years, 1 month ago (2012-11-01 19:59:24 UTC) #19
commit-bot: I haz the power
Retried try job too often for step(s) compile
8 years, 1 month ago (2012-11-01 20:21:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11225021/78004
8 years, 1 month ago (2012-11-01 21:41:38 UTC) #21
commit-bot: I haz the power
8 years, 1 month ago (2012-11-01 23:39:37 UTC) #22
Change committed as 165548

Powered by Google App Engine
This is Rietveld 408576698