| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "native_client/tests/fake_browser_ppapi/fake_object.h" | 11 #include "native_client/tests/fake_browser_ppapi/fake_object.h" |
| 12 | 12 |
| 13 #include "native_client/src/include/nacl_macros.h" | 13 #include "native_client/src/include/nacl_macros.h" |
| 14 #include "native_client/src/include/portability.h" | 14 #include "native_client/src/include/portability.h" |
| 15 #include "native_client/src/shared/ppapi_proxy/utility.h" | |
| 16 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" | 15 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" |
| 16 #include "native_client/tests/fake_browser_ppapi/utility.h" |
| 17 #include "ppapi/c/dev/ppb_var_deprecated.h" | 17 #include "ppapi/c/dev/ppb_var_deprecated.h" |
| 18 #include "ppapi/c/pp_var.h" | 18 #include "ppapi/c/pp_var.h" |
| 19 | 19 |
| 20 using ppapi_proxy::DebugPrintf; | 20 using fake_browser_ppapi::DebugPrintf; |
| 21 using ppapi_proxy::PluginVar; | 21 using ppapi_proxy::PluginVar; |
| 22 using fake_browser_ppapi::Object; | 22 using fake_browser_ppapi::Object; |
| 23 | 23 |
| 24 namespace fake_browser_ppapi { | 24 namespace fake_browser_ppapi { |
| 25 | 25 |
| 26 const PPB_Var_Deprecated* ppb_var = NULL; | 26 const PPB_Var_Deprecated* ppb_var = NULL; |
| 27 | 27 |
| 28 bool Object::HasProperty(PP_Var name, | 28 bool Object::HasProperty(PP_Var name, |
| 29 PP_Var* exception) { | 29 PP_Var* exception) { |
| 30 UNREFERENCED_PARAMETER(exception); | 30 UNREFERENCED_PARAMETER(exception); |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 222 } |
| 223 } | 223 } |
| 224 Object* obj = new Object(module, properties, methods); | 224 Object* obj = new Object(module, properties, methods); |
| 225 if (obj == NULL) { | 225 if (obj == NULL) { |
| 226 return PP_MakeUndefined(); | 226 return PP_MakeUndefined(); |
| 227 } | 227 } |
| 228 return ppb_var->CreateObject(module, &ppapi_proxy::Object::object_class, obj); | 228 return ppb_var->CreateObject(module, &ppapi_proxy::Object::object_class, obj); |
| 229 } | 229 } |
| 230 | 230 |
| 231 } // namespace fake_browser_ppapi | 231 } // namespace fake_browser_ppapi |
| OLD | NEW |