OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
| 6 // |
| 7 // Automatically generated code. See srpcgen.py |
| 8 // |
| 9 // NaCl Simple Remote Procedure Call interface abstractions. |
| 10 |
| 11 #ifndef GEN_PPAPI_PROXY_PPP_RPC_H_ |
| 12 #define GEN_PPAPI_PROXY_PPP_RPC_H_ |
| 13 |
| 14 #ifndef __native_client__ |
| 15 #include "native_client/src/include/portability.h" |
| 16 #endif // __native_client__ |
| 17 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 18 #include "ppapi/c/pp_instance.h" |
| 19 #include "ppapi/c/pp_module.h" |
| 20 #include "ppapi/c/pp_resource.h" |
| 21 |
| 22 class CompletionCallbackRpcClient { |
| 23 public: |
| 24 static NaClSrpcError RunCompletionCallback( |
| 25 NaClSrpcChannel* channel, |
| 26 int32_t callback_id, |
| 27 int32_t result, |
| 28 nacl_abi_size_t read_buffer_bytes, char* read_buffer); |
| 29 |
| 30 private: |
| 31 CompletionCallbackRpcClient(); |
| 32 CompletionCallbackRpcClient(const CompletionCallbackRpcClient&); |
| 33 void operator=(const CompletionCallbackRpcClient); |
| 34 }; // class CompletionCallbackRpcClient |
| 35 |
| 36 class PppRpcClient { |
| 37 public: |
| 38 static NaClSrpcError PPP_InitializeModule( |
| 39 NaClSrpcChannel* channel, |
| 40 int32_t pid, |
| 41 PP_Module module, |
| 42 NaClSrpcImcDescType upcall_channel_desc, |
| 43 char* service_description, |
| 44 int32_t* nacl_pid, |
| 45 int32_t* success); |
| 46 static NaClSrpcError PPP_ShutdownModule( |
| 47 NaClSrpcChannel* channel); |
| 48 static NaClSrpcError PPP_GetInterface( |
| 49 NaClSrpcChannel* channel, |
| 50 char* interface_name, |
| 51 int32_t* exports_interface_name); |
| 52 |
| 53 private: |
| 54 PppRpcClient(); |
| 55 PppRpcClient(const PppRpcClient&); |
| 56 void operator=(const PppRpcClient); |
| 57 }; // class PppRpcClient |
| 58 |
| 59 class PppAudioRpcClient { |
| 60 public: |
| 61 static NaClSrpcError PPP_Audio_StreamCreated( |
| 62 NaClSrpcChannel* channel, |
| 63 PP_Instance instance, |
| 64 NaClSrpcImcDescType out_shm, |
| 65 int32_t out_shm_size, |
| 66 NaClSrpcImcDescType out_socket); |
| 67 |
| 68 private: |
| 69 PppAudioRpcClient(); |
| 70 PppAudioRpcClient(const PppAudioRpcClient&); |
| 71 void operator=(const PppAudioRpcClient); |
| 72 }; // class PppAudioRpcClient |
| 73 |
| 74 class PppFindRpcClient { |
| 75 public: |
| 76 static NaClSrpcError PPP_Find_StartFind( |
| 77 NaClSrpcChannel* channel, |
| 78 PP_Instance instance, |
| 79 nacl_abi_size_t text_bytes, char* text, |
| 80 int32_t case_sensitive, |
| 81 int32_t* supports_find); |
| 82 static NaClSrpcError PPP_Find_SelectFindResult( |
| 83 NaClSrpcChannel* channel, |
| 84 PP_Instance instance, |
| 85 int32_t forward); |
| 86 static NaClSrpcError PPP_Find_StopFind( |
| 87 NaClSrpcChannel* channel, |
| 88 PP_Instance instance); |
| 89 |
| 90 private: |
| 91 PppFindRpcClient(); |
| 92 PppFindRpcClient(const PppFindRpcClient&); |
| 93 void operator=(const PppFindRpcClient); |
| 94 }; // class PppFindRpcClient |
| 95 |
| 96 class PppInputEventRpcClient { |
| 97 public: |
| 98 static NaClSrpcError PPP_InputEvent_HandleInputEvent( |
| 99 NaClSrpcChannel* channel, |
| 100 PP_Instance instance, |
| 101 PP_Resource resource, |
| 102 nacl_abi_size_t event_data_bytes, char* event_data, |
| 103 nacl_abi_size_t character_text_bytes, char* character_text, |
| 104 int32_t* handled); |
| 105 |
| 106 private: |
| 107 PppInputEventRpcClient(); |
| 108 PppInputEventRpcClient(const PppInputEventRpcClient&); |
| 109 void operator=(const PppInputEventRpcClient); |
| 110 }; // class PppInputEventRpcClient |
| 111 |
| 112 class PppInstanceRpcClient { |
| 113 public: |
| 114 static NaClSrpcError PPP_Instance_DidCreate( |
| 115 NaClSrpcChannel* channel, |
| 116 PP_Instance instance, |
| 117 int32_t argc, |
| 118 nacl_abi_size_t argn_bytes, char* argn, |
| 119 nacl_abi_size_t argv_bytes, char* argv, |
| 120 int32_t* success); |
| 121 static NaClSrpcError PPP_Instance_DidDestroy( |
| 122 NaClSrpcChannel* channel, |
| 123 PP_Instance instance); |
| 124 static NaClSrpcError PPP_Instance_DidChangeView( |
| 125 NaClSrpcChannel* channel, |
| 126 PP_Instance instance, |
| 127 nacl_abi_size_t position_bytes, int32_t* position, |
| 128 nacl_abi_size_t clip_bytes, int32_t* clip); |
| 129 static NaClSrpcError PPP_Instance_DidChangeFocus( |
| 130 NaClSrpcChannel* channel, |
| 131 PP_Instance instance, |
| 132 bool has_focus); |
| 133 static NaClSrpcError PPP_Instance_HandleDocumentLoad( |
| 134 NaClSrpcChannel* channel, |
| 135 PP_Instance instance, |
| 136 PP_Resource url_loader, |
| 137 int32_t* success); |
| 138 |
| 139 private: |
| 140 PppInstanceRpcClient(); |
| 141 PppInstanceRpcClient(const PppInstanceRpcClient&); |
| 142 void operator=(const PppInstanceRpcClient); |
| 143 }; // class PppInstanceRpcClient |
| 144 |
| 145 class PppMessagingRpcClient { |
| 146 public: |
| 147 static NaClSrpcError PPP_Messaging_HandleMessage( |
| 148 NaClSrpcChannel* channel, |
| 149 PP_Instance instance, |
| 150 nacl_abi_size_t message_bytes, char* message); |
| 151 |
| 152 private: |
| 153 PppMessagingRpcClient(); |
| 154 PppMessagingRpcClient(const PppMessagingRpcClient&); |
| 155 void operator=(const PppMessagingRpcClient); |
| 156 }; // class PppMessagingRpcClient |
| 157 |
| 158 class PppPrintingRpcClient { |
| 159 public: |
| 160 static NaClSrpcError PPP_Printing_QuerySupportedFormats( |
| 161 NaClSrpcChannel* channel, |
| 162 PP_Instance instance, |
| 163 nacl_abi_size_t* formats_bytes, char* formats, |
| 164 int32_t* format_count); |
| 165 static NaClSrpcError PPP_Printing_Begin( |
| 166 NaClSrpcChannel* channel, |
| 167 PP_Instance instance, |
| 168 nacl_abi_size_t print_settings_bytes, char* print_settings, |
| 169 int32_t* pages_required); |
| 170 static NaClSrpcError PPP_Printing_PrintPages( |
| 171 NaClSrpcChannel* channel, |
| 172 PP_Instance instance, |
| 173 nacl_abi_size_t page_ranges_bytes, char* page_ranges, |
| 174 int32_t page_range_count, |
| 175 PP_Resource* image_data); |
| 176 static NaClSrpcError PPP_Printing_End( |
| 177 NaClSrpcChannel* channel, |
| 178 PP_Instance instance); |
| 179 |
| 180 private: |
| 181 PppPrintingRpcClient(); |
| 182 PppPrintingRpcClient(const PppPrintingRpcClient&); |
| 183 void operator=(const PppPrintingRpcClient); |
| 184 }; // class PppPrintingRpcClient |
| 185 |
| 186 class PppScrollbarRpcClient { |
| 187 public: |
| 188 static NaClSrpcError PPP_Scrollbar_ValueChanged( |
| 189 NaClSrpcChannel* channel, |
| 190 PP_Instance instance, |
| 191 PP_Resource scrollbar, |
| 192 int32_t value); |
| 193 static NaClSrpcError PPP_Scrollbar_OverlayChanged( |
| 194 NaClSrpcChannel* channel, |
| 195 PP_Instance instance, |
| 196 PP_Resource scrollbar, |
| 197 int32_t overlay); |
| 198 |
| 199 private: |
| 200 PppScrollbarRpcClient(); |
| 201 PppScrollbarRpcClient(const PppScrollbarRpcClient&); |
| 202 void operator=(const PppScrollbarRpcClient); |
| 203 }; // class PppScrollbarRpcClient |
| 204 |
| 205 class PppSelectionRpcClient { |
| 206 public: |
| 207 static NaClSrpcError PPP_Selection_GetSelectedText( |
| 208 NaClSrpcChannel* channel, |
| 209 PP_Instance instance, |
| 210 int32_t html, |
| 211 nacl_abi_size_t* selected_text_bytes, char* selected_text); |
| 212 |
| 213 private: |
| 214 PppSelectionRpcClient(); |
| 215 PppSelectionRpcClient(const PppSelectionRpcClient&); |
| 216 void operator=(const PppSelectionRpcClient); |
| 217 }; // class PppSelectionRpcClient |
| 218 |
| 219 class PppWidgetRpcClient { |
| 220 public: |
| 221 static NaClSrpcError PPP_Widget_Invalidate( |
| 222 NaClSrpcChannel* channel, |
| 223 PP_Instance instance, |
| 224 PP_Resource widget, |
| 225 nacl_abi_size_t dirty_rect_bytes, char* dirty_rect); |
| 226 |
| 227 private: |
| 228 PppWidgetRpcClient(); |
| 229 PppWidgetRpcClient(const PppWidgetRpcClient&); |
| 230 void operator=(const PppWidgetRpcClient); |
| 231 }; // class PppWidgetRpcClient |
| 232 |
| 233 class PppZoomRpcClient { |
| 234 public: |
| 235 static NaClSrpcError PPP_Zoom_Zoom( |
| 236 NaClSrpcChannel* channel, |
| 237 PP_Instance instance, |
| 238 double factor, |
| 239 int32_t text_only); |
| 240 |
| 241 private: |
| 242 PppZoomRpcClient(); |
| 243 PppZoomRpcClient(const PppZoomRpcClient&); |
| 244 void operator=(const PppZoomRpcClient); |
| 245 }; // class PppZoomRpcClient |
| 246 |
| 247 |
| 248 |
| 249 |
| 250 #endif // GEN_PPAPI_PROXY_PPP_RPC_H_ |
| 251 |
OLD | NEW |