| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * This is a minimal NaCl program without libc. It uses NaCl's stable IRT ABI. | 8 * This is a minimal NaCl program without libc. It uses NaCl's stable IRT ABI. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include <stddef.h> |
| 11 #include <stdint.h> | 12 #include <stdint.h> |
| 12 | 13 |
| 13 #include "native_client/src/include/elf_auxv.h" | 14 #include "native_client/src/include/elf_auxv.h" |
| 14 #include "native_client/src/untrusted/irt/irt.h" | 15 #include "native_client/src/untrusted/irt/irt.h" |
| 15 #include "ppapi/c/pp_errors.h" | 16 #include "ppapi/c/pp_errors.h" |
| 16 #include "ppapi/c/ppb_messaging.h" | 17 #include "ppapi/c/ppb_messaging.h" |
| 17 #include "ppapi/c/ppb_var.h" | 18 #include "ppapi/c/ppb_var.h" |
| 18 #include "ppapi/c/ppp_instance.h" | 19 #include "ppapi/c/ppp_instance.h" |
| 19 #include "ppapi/c/ppp_messaging.h" | 20 #include "ppapi/c/ppp_messaging.h" |
| 20 #include "ppapi/nacl_irt/public/irt_ppapi.h" | 21 #include "ppapi/nacl_irt/public/irt_ppapi.h" |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 ppp_instance.DidDestroy = DidDestroy; | 231 ppp_instance.DidDestroy = DidDestroy; |
| 231 ppp_instance.DidChangeView = DidChangeView; | 232 ppp_instance.DidChangeView = DidChangeView; |
| 232 ppp_instance.DidChangeFocus = DidChangeFocus; | 233 ppp_instance.DidChangeFocus = DidChangeFocus; |
| 233 ppp_instance.HandleDocumentLoad = HandleDocumentLoad; | 234 ppp_instance.HandleDocumentLoad = HandleDocumentLoad; |
| 234 ppp_messaging.HandleMessage = HandleMessage; | 235 ppp_messaging.HandleMessage = HandleMessage; |
| 235 | 236 |
| 236 ppapihook.ppapi_start(&start_funcs); | 237 ppapihook.ppapi_start(&start_funcs); |
| 237 | 238 |
| 238 __libnacl_irt_basic.exit(0); | 239 __libnacl_irt_basic.exit(0); |
| 239 } | 240 } |
| OLD | NEW |