| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 */ | |
| 5 | 4 |
| 6 #include "ppapi/c/pp_instance.h" | 5 #include "ppapi/c/pp_instance.h" |
| 7 #include "ppapi/c/pp_module.h" | 6 #include "ppapi/c/pp_module.h" |
| 8 | 7 |
| 9 #include "ppapi_simple/ps_instance.h" | 8 #include "ppapi_simple/ps_instance.h" |
| 10 #include "ppapi_simple/ps_main.h" | 9 #include "ppapi_simple/ps_main.h" |
| 11 | 10 |
| 12 | 11 |
| 13 void* PSMainCreate(PP_Instance inst, PSMainFunc_t func, const char* argv[]) { | 12 void* PSMainCreate(PP_Instance inst, PSMainFunc_t func, const char* argv[]) { |
| 14 PSInstance* pInst = new PSInstance(inst, argv); | 13 PSInstance* pInst = new PSInstance(inst, argv); |
| 15 pInst->SetMain(func); | 14 pInst->SetMain(func); |
| 16 return pInst; | 15 return pInst; |
| 17 } | 16 } |
| OLD | NEW |