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

Side by Side 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, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // SRPC-abstraction wrappers around PPP_Printing functions. 5 // SRPC-abstraction wrappers around PPP_Printing functions.
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "native_client/src/include/portability.h" 9 #include "native_client/src/include/portability.h"
10 #include "native_client/src/include/portability_process.h" 10 #include "native_client/src/include/portability_process.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // inputs 99 // inputs
100 PP_Instance instance) { 100 PP_Instance instance) {
101 rpc->result = NACL_SRPC_RESULT_APP_ERROR; 101 rpc->result = NACL_SRPC_RESULT_APP_ERROR;
102 NaClSrpcClosureRunner runner(done); 102 NaClSrpcClosureRunner runner(done);
103 103
104 PPPPrintingInterface()->End(instance); 104 PPPPrintingInterface()->End(instance);
105 105
106 DebugPrintf("PPP_Printing::End\n"); 106 DebugPrintf("PPP_Printing::End\n");
107 rpc->result = NACL_SRPC_RESULT_OK; 107 rpc->result = NACL_SRPC_RESULT_OK;
108 } 108 }
109
110 void PppPrintingRpcServer::PPP_Printing_IsScalingDisabled(
111 NaClSrpcRpc* rpc,
112 NaClSrpcClosure* done,
113 // inputs
114 PP_Instance instance,
115 // outputs
116 int32_t* /*PP_Bool*/ scaling_disabled) {
117 rpc->result = NACL_SRPC_RESULT_APP_ERROR;
118 NaClSrpcClosureRunner runner(done);
119
120 PP_Bool pp_scaling_disabled =
121 PPPPrintingInterface()->IsScalingDisabled(instance);
122 *scaling_disabled = pp_scaling_disabled == PP_TRUE;
123
124 DebugPrintf("PPP_Printing::IsScalingDisabled: scaling_disabled=%d\n",
125 pp_scaling_disabled);
126 rpc->result = NACL_SRPC_RESULT_OK;
127 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698