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

Issue 10795051: Implement asynchronous interface/plumbing for GetDefaultPrintSettings. (Closed)

Created:
8 years, 5 months ago by raymes
Modified:
8 years, 5 months ago
CC:
chromium-reviews, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Implement asynchronous interface/plumbing for GetDefaultPrintSettings. Previously we had a synchronous interface but that implementation had problems, so now we need an asynchronous interface. This is needed for Flash. The implementation of getting the print settings and a test will come in the next CL. BUG=138333 TEST=none

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 17

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -75 lines) Patch
M content/browser/renderer_host/pepper/pepper_message_filter.h View 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.cc View 4 chunks +16 lines, -1 line 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/api/dev/ppb_printing_dev.idl View 1 2 3 4 5 1 chunk +14 lines, -4 lines 0 comments Download
M ppapi/api/dev/ppp_printing_dev.idl View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ppapi/c/dev/ppb_printing_dev.h View 1 2 3 4 5 3 chunks +18 lines, -6 lines 0 comments Download
M ppapi/c/dev/ppp_printing_dev.h View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M ppapi/cpp/dev/printing_dev.h View 1 2 3 4 5 2 chunks +9 lines, -2 lines 0 comments Download
M ppapi/cpp/dev/printing_dev.cc View 1 2 3 4 5 6 7 8 4 chunks +26 lines, -1 line 6 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 2 chunks +8 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 3 chunks +9 lines, -5 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 5 chunks +39 lines, -32 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ppapi/thunk/ppb_printing_thunk.cc View 1 chunk +39 lines, -7 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 chunk +3 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
raymes
8 years, 5 months ago (2012-07-20 22:13:34 UTC) #1
raymes
https://chromiumcodereview.appspot.com/10795051/diff/21/ppapi/api/dev/ppp_printing_dev.idl File ppapi/api/dev/ppp_printing_dev.idl (right): https://chromiumcodereview.appspot.com/10795051/diff/21/ppapi/api/dev/ppp_printing_dev.idl#newcode13 ppapi/api/dev/ppp_printing_dev.idl:13: M23 = 0.7 Trung mentioned that this interface version ...
8 years, 5 months ago (2012-07-20 22:46:56 UTC) #2
dmichael (off chromium)
http://codereview.chromium.org/10795051/diff/21/content/browser/renderer_host/pepper/pepper_message_filter.cc File content/browser/renderer_host/pepper/pepper_message_filter.cc (right): http://codereview.chromium.org/10795051/diff/21/content/browser/renderer_host/pepper/pepper_message_filter.cc#newcode725 content/browser/renderer_host/pepper/pepper_message_filter.cc:725: PP_PrintSettings_Dev settings; Previously, you filled in some reasonable defaults. ...
8 years, 5 months ago (2012-07-23 18:20:09 UTC) #3
raymes
Thanks for the review! You might be getting a few more while yzshen is away. ...
8 years, 5 months ago (2012-07-24 00:37:07 UTC) #4
viettrungluu
Calling the callback compatibly is fine, but the design of the new async method isn't. ...
8 years, 5 months ago (2012-07-24 00:44:35 UTC) #5
viettrungluu
http://codereview.chromium.org/10795051/diff/13003/ppapi/cpp/dev/printing_dev.cc File ppapi/cpp/dev/printing_dev.cc (right): http://codereview.chromium.org/10795051/diff/13003/ppapi/cpp/dev/printing_dev.cc#newcode109 ppapi/cpp/dev/printing_dev.cc:109: int32_t Printing_Dev::GetDefaultPrintSettings( On 2012/07/24 00:44:35, viettrungluu wrote: > This ...
8 years, 5 months ago (2012-07-24 01:08:37 UTC) #6
viettrungluu
http://codereview.chromium.org/10795051/diff/13003/ppapi/cpp/dev/printing_dev.cc File ppapi/cpp/dev/printing_dev.cc (right): http://codereview.chromium.org/10795051/diff/13003/ppapi/cpp/dev/printing_dev.cc#newcode85 ppapi/cpp/dev/printing_dev.cc:85: Module::Get()->AddPluginInterface(kPPPPrintingInterface, &ppp_printing); You'll also need to modify this to ...
8 years, 5 months ago (2012-07-24 03:22:18 UTC) #7
raymes
8 years, 5 months ago (2012-07-24 17:54:33 UTC) #8
Discussed the CL with Brett and Trung and the conclusion is that we
want to approach this in a different way, so discarding this CL.

On Mon, Jul 23, 2012 at 8:22 PM,  <viettrungluu@chromium.org> wrote:
>
>
http://codereview.chromium.org/10795051/diff/13003/ppapi/cpp/dev/printing_dev.cc
> File ppapi/cpp/dev/printing_dev.cc (right):
>
>
http://codereview.chromium.org/10795051/diff/13003/ppapi/cpp/dev/printing_dev...
> ppapi/cpp/dev/printing_dev.cc:85:
> Module::Get()->AddPluginInterface(kPPPPrintingInterface, &ppp_printing);
> You'll also need to modify this to support both the 0.6 and 0.7 PPP
> interfaces.
>
> http://codereview.chromium.org/10795051/

Powered by Google App Engine
This is Rietveld 408576698