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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppp_printing_rpc_server.cc

Issue 8041052: Add IsScalingDisabled and PP_PRINTOUTPUTFORMAT_EMF to pepper printing interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppp_printing_rpc_server.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppp_printing_rpc_server.cc b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppp_printing_rpc_server.cc
index ae6d95b6cbf862182a22dd19ffdd9ca3db810bb2..afd36ed6703cd384c3b6611250a09f60bcd4fbd4 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppp_printing_rpc_server.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppp_printing_rpc_server.cc
@@ -106,3 +106,22 @@ void PppPrintingRpcServer::PPP_Printing_End(
DebugPrintf("PPP_Printing::End\n");
rpc->result = NACL_SRPC_RESULT_OK;
}
+
+void PppPrintingRpcServer::PPP_Printing_IsScalingDisabled(
+ NaClSrpcRpc* rpc,
+ NaClSrpcClosure* done,
+ // inputs
+ PP_Instance instance,
+ // outputs
+ int32_t* /*PP_Bool*/ scaling_disabled) {
+ rpc->result = NACL_SRPC_RESULT_APP_ERROR;
+ NaClSrpcClosureRunner runner(done);
+
+ PP_Bool pp_scaling_disabled =
+ PPPPrintingInterface()->IsScalingDisabled(instance);
+ *scaling_disabled = pp_scaling_disabled == PP_TRUE;
+
+ DebugPrintf("PPP_Printing::IsScalingDisabled: scaling_disabled=%d\n",
+ pp_scaling_disabled);
+ rpc->result = NACL_SRPC_RESULT_OK;
+}

Powered by Google App Engine
This is Rietveld 408576698