# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# RPC methods used to implement PPB_Testing calls from the plugin.
# See ppapi/c/dev/ppb_testing_dev.h for interface details.
{
 'name': 'PpbTestingRpc',
 'rpcs': [
          {'name': 'PPB_Testing_ReadImageData',
           'inputs': [['device_context_2d', 'PP_Resource'],
                      ['image', 'PP_Resource'],
                      ['top_left', 'char[]'],       # PP_Point
                    ],
           'outputs': [['success', 'int32_t'],      # PP_Bool
                      ]
          },
          {'name': 'PPB_Testing_RunMessageLoop',
           'inputs': [['instance', 'PP_Instance'],
                     ],
           'outputs': [
                      ]
          },
          {'name': 'PPB_Testing_QuitMessageLoop',
           'inputs': [['instance', 'PP_Instance'],
                     ],
           'outputs': [
                      ]
          },
          {'name': 'PPB_Testing_GetLiveObjectsForInstance',
           'inputs': [['instance', 'PP_Instance'],
                     ],
           'outputs': [['live_object_count', 'int32_t'],  # uint32_t
                      ]
          },
          {'name': 'PPB_Testing_SimulateInputEvent',
           'inputs': [['instance', 'PP_Instance'],
                      ['input_event', 'PP_Resource'],
                     ],
           'outputs': [
                      ]
          },
	  {'name': 'PPB_Testing_GetDocumentURL',
	   'inputs': [['instance', 'PP_Instance'],
	             ],
           'outputs': [['components', 'char[]'],          # PP_URLComponents_Dev
                       ['url', 'char[]'],                 # PP_Var
		      ]
          },
         ]
}