Index: ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_printing.cc |
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_printing.cc b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_printing.cc |
index 075529afb139341fc305c801226fe152b824ef57..379bde0730681feec619d53c8c9b9fa88e2f359f 100644 |
--- a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_printing.cc |
+++ b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_printing.cc |
@@ -38,6 +38,24 @@ uint32_t QuerySupportedFormats(PP_Instance instance) { |
return static_cast<uint32_t>(formats); |
} |
+bool IsScalingDisabled(PP_Instance instance) { |
+ DebugPrintf("PPP_Printing_Dev::IsScalingDisabled: " |
+ "instance=%"NACL_PRIu32"\n", instance); |
+ |
+ bool result = false; |
+ NaClSrpcError srpc_result = |
+ PppPrintingRpcClient::PPP_Printing_IsScalingDisabled( |
+ GetMainSrpcChannel(instance), |
+ instance, |
+ &result); |
+ |
+ DebugPrintf("PPP_Printing_Dev::IsScalingDisabled: %s\n", |
+ NaClSrpcErrorString(srpc_result)); |
+ |
+ return result; |
+} |
+ |
+ |
int32_t Begin(PP_Instance instance, |
const struct PP_PrintSettings_Dev* print_settings) { |
DebugPrintf("PPP_Printing_Dev::Begin: instance=%"NACL_PRIu32"\n", instance); |
@@ -52,7 +70,7 @@ int32_t Begin(PP_Instance instance, |
const_cast<PP_PrintSettings_Dev*>(print_settings)), |
&pages_required); |
- DebugPrintf("PPP_Printing_Dev::QuerySupportedFormats: %s\n", |
+ DebugPrintf("PPP_Printing_Dev::Begin: %s\n", |
NaClSrpcErrorString(srpc_result)); |
return pages_required; |
} |
@@ -74,7 +92,7 @@ PP_Resource PrintPages(PP_Instance instance, |
page_range_count, |
&image_data); |
- DebugPrintf("PPP_Printing_Dev::QuerySupportedFormats: %s\n", |
+ DebugPrintf("PPP_Printing_Dev::PrintPages: %s\n", |
dmichael (off chromium)
2011/09/27 15:28:38
nice catch, thanks!
|
NaClSrpcErrorString(srpc_result)); |
return image_data; |
} |
@@ -94,6 +112,7 @@ void End(PP_Instance instance) { |
const PPP_Printing_Dev* BrowserPrinting::GetInterface() { |
static const PPP_Printing_Dev printing_interface = { |
QuerySupportedFormats, |
+ IsScalingDisabled, |
Begin, |
PrintPages, |
End |