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

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

Issue 9253011: Pepper SRPC proxy style and type nits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad license to pass presubmit check Created 8 years, 11 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 e9bac0161a3c7bfd5f9e5652c892ad9d393523f6..cd64237cc351484675a3d6563e2eb35f8f3cd98f 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
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -23,7 +23,7 @@ const nacl_abi_size_t kPPPrintPageNumberRangeBytes =
uint32_t QuerySupportedFormats(PP_Instance instance) {
DebugPrintf("PPP_Printing_Dev::QuerySupportedFormats: "
- "instance=%"NACL_PRIu32"\n", instance);
+ "instance=%"NACL_PRId32"\n", instance);
int32_t formats = 0;
NaClSrpcError srpc_result =
@@ -40,7 +40,7 @@ uint32_t QuerySupportedFormats(PP_Instance instance) {
int32_t Begin(PP_Instance instance,
const struct PP_PrintSettings_Dev* print_settings) {
- DebugPrintf("PPP_Printing_Dev::Begin: instance=%"NACL_PRIu32"\n", instance);
+ DebugPrintf("PPP_Printing_Dev::Begin: instance=%"NACL_PRId32"\n", instance);
int32_t pages_required = 0;
NaClSrpcError srpc_result =
@@ -61,7 +61,7 @@ PP_Resource PrintPages(PP_Instance instance,
const struct PP_PrintPageNumberRange_Dev* page_ranges,
uint32_t page_range_count) {
DebugPrintf("PPP_Printing_Dev::PrintPages: "
- "instance=%"NACL_PRIu32"\n", instance);
+ "instance=%"NACL_PRId32"\n", instance);
PP_Resource image_data = kInvalidResourceId;
NaClSrpcError srpc_result =
@@ -80,7 +80,7 @@ PP_Resource PrintPages(PP_Instance instance,
}
void End(PP_Instance instance) {
- DebugPrintf("PPP_Printing_Dev::End: instance=%"NACL_PRIu32"\n", instance);
+ DebugPrintf("PPP_Printing_Dev::End: instance=%"NACL_PRId32"\n", instance);
NaClSrpcError srpc_result =
PppPrintingRpcClient::PPP_Printing_End(GetMainSrpcChannel(instance),
@@ -91,7 +91,7 @@ void End(PP_Instance instance) {
PP_Bool IsScalingDisabled(PP_Instance instance) {
DebugPrintf("PPP_Printing_Dev::IsScalingDisabled: "
- "instance=%"NACL_PRIu32"\n", instance);
+ "instance=%"NACL_PRId32"\n", instance);
int32_t scaling_disabled = 0;
NaClSrpcError srpc_result =
@@ -102,7 +102,7 @@ PP_Bool IsScalingDisabled(PP_Instance instance) {
DebugPrintf("PPP_Printing_Dev::IsScalingDisabled: %s\n",
NaClSrpcErrorString(srpc_result));
- return scaling_disabled ? PP_TRUE : PP_FALSE;
+ return PP_FromBool(scaling_disabled);
}
} // namespace
@@ -119,4 +119,3 @@ const PPP_Printing_Dev* BrowserPrinting::GetInterface() {
}
} // namespace ppapi_proxy
-

Powered by Google App Engine
This is Rietveld 408576698