| OLD | NEW | 
|    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  Loading... | 
|   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 } | 
| OLD | NEW |