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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_printing.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/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

Powered by Google App Engine
This is Rietveld 408576698