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

Side by Side Diff: tests/ppapi_proxy/event_example.stdin

Issue 6452010: Remove the x-ppapi-nacl-srpc and x-nacl-srpc mime types in favor of the singl... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 10 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
« no previous file with comments | « tests/ppapi_proxy/event_example.html ('k') | tests/prebuilt/srpc_hw.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # First register a bunch of dummy replays with zero count 1 # First register a bunch of dummy replays with zero count
2 # so that those signatures will get registered during "install_upcalls" 2 # so that those signatures will get registered during "install_upcalls"
3 # Note: because of the zero count we do not have to get the parameters right 3 # Note: because of the zero count we do not have to get the parameters right
4 # 4 #
5 # Enumerating all known methods ahead of time helps in many ways: 5 # Enumerating all known methods ahead of time helps in many ways:
6 # * we can delay registering non zero count replays till later which help 6 # * we can delay registering non zero count replays till later which help
7 # readability 7 # readability
8 # * we get an error if for some reason the nexe calls one of these functions. 8 # * we get an error if for some reason the nexe calls one of these functions.
9 # Sadly, the nexe usually fails silently when a method is missing from a 9 # Sadly, the nexe usually fails silently when a method is missing from a
10 # service 10 # service
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 echo 160 echo
161 echo "*** INIT MODULE" 161 echo "*** INIT MODULE"
162 replay 1 PPB_GetInterface:s:i s("PPB_Core;0.3") * i(1) 162 replay 1 PPB_GetInterface:s:i s("PPB_Core;0.3") * i(1)
163 replay 1 PPB_GetInterface:s:i s("PPB_Instance;0.4") * i(1) 163 replay 1 PPB_GetInterface:s:i s("PPB_Instance;0.4") * i(1)
164 rpc PPP_InitializeModule i(0) ${MODULE} h(pepper_desc) s("${service_string}") * i(0) i(0) 164 rpc PPP_InitializeModule i(0) ${MODULE} h(pepper_desc) s("${service_string}") * i(0) i(0)
165 165
166 echo 166 echo
167 echo "*** INIT INSTANCE" 167 echo "*** INIT INSTANCE"
168 set_variable TAGS C(23,id\000name\000src\000style\000type\000) 168 set_variable TAGS C(23,id\000name\000src\000style\000type\000)
169 set_variable VALUES C(85,naclModule\000naclModule\000ppapi.nexe\000background-co lor:gray\000application/x-ppapi-nacl-srpc\000) 169 set_variable VALUES C(74,naclModule\000naclModule\000ppapi.nexe\000background-co lor:gray\000application/x-nacl\000)
170 rpc PPP_Instance_DidCreate ${INSTANCE} i(5) ${TAGS} ${VALUES} * i(0) 170 rpc PPP_Instance_DidCreate ${INSTANCE} i(5) ${TAGS} ${VALUES} * i(0)
171 171
172 echo 172 echo
173 echo "*** GET INSTANCE OBJECT" 173 echo "*** GET INSTANCE OBJECT"
174 replay 1 PPB_GetInterface:s:i s("PPB_Var(Deprecated);0.3") * i(1) 174 replay 1 PPB_GetInterface:s:i s("PPB_Var(Deprecated);0.3") * i(1)
175 rpc PPP_Instance_GetInstanceObject ${INSTANCE} * C(16) 175 rpc PPP_Instance_GetInstanceObject ${INSTANCE} * C(16)
176 # save result to variable 176 # save result to variable
177 set_variable OBJECT ${result0} 177 set_variable OBJECT ${result0}
178 178
179 echo 179 echo
(...skipping 27 matching lines...) Expand all
207 echo "*** SENT EVENTS EV_KEY_DOWN" 207 echo "*** SENT EVENTS EV_KEY_DOWN"
208 rpc PPP_Instance_HandleInputEvent ${INSTANCE} ${EV_KEY_DOWN} * i(0) 208 rpc PPP_Instance_HandleInputEvent ${INSTANCE} ${EV_KEY_DOWN} * i(0)
209 209
210 echo 210 echo
211 echo "*** GET PROPERTY (AT THE END)" 211 echo "*** GET PROPERTY (AT THE END)"
212 rpc HasProperty ${OBJECT} ${PROPERTY} ${EXCEPTION} * i(0) C(8) 212 rpc HasProperty ${OBJECT} ${PROPERTY} ${EXCEPTION} * i(0) C(8)
213 rpc GetProperty ${OBJECT} ${PROPERTY} ${EXCEPTION} * C(1000) C(8) 213 rpc GetProperty ${OBJECT} ${PROPERTY} ${EXCEPTION} * C(1000) C(8)
214 214
215 215
216 rpc PPP_ShutdownModule * 216 rpc PPP_ShutdownModule *
OLDNEW
« no previous file with comments | « tests/ppapi_proxy/event_example.html ('k') | tests/prebuilt/srpc_hw.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698