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

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: 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..8cf1e003fc901a15b49c2b409b1e38c6ac97ed51 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
@@ -46,6 +46,23 @@ void PppPrintingRpcServer::PPP_Printing_QuerySupportedFormats(
rpc->result = NACL_SRPC_RESULT_OK;
}
+void PppPrintingRpcServer::PPP_Printing_IsScalingDisabled(
+ NaClSrpcRpc* rpc,
+ NaClSrpcClosure* done,
+ // inputs
+ PP_Instance instance,
+ // outputs
+ bool* result) {
+ rpc->result = NACL_SRPC_RESULT_APP_ERROR;
+ NaClSrpcClosureRunner runner(done);
+
+ *result = PPPPrintingInterface()->IsScalingDisabled(instance);
+
+ DebugPrintf("PPP_Printing::IsScalingDisabled: "
+ "result=%"NACL_PRId32"\n", *result);
+ rpc->result = NACL_SRPC_RESULT_OK;
+}
+
void PppPrintingRpcServer::PPP_Printing_Begin(
NaClSrpcRpc* rpc,
NaClSrpcClosure* done,

Powered by Google App Engine
This is Rietveld 408576698