OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 4 |
5 #include "webkit/plugins/ppapi/ppb_var_deprecated_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_var_deprecated_impl.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "ppapi/c/dev/ppb_var_deprecated.h" | 9 #include "ppapi/c/dev/ppb_var_deprecated.h" |
10 #include "ppapi/c/ppb_var.h" | 10 #include "ppapi/c/ppb_var.h" |
11 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
12 #include "ppapi/shared_impl/ppb_var_impl.h" | 12 #include "ppapi/shared_impl/ppb_var_shared.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
14 #include "webkit/plugins/ppapi/common.h" | 14 #include "webkit/plugins/ppapi/common.h" |
15 #include "webkit/plugins/ppapi/host_globals.h" | 15 #include "webkit/plugins/ppapi/host_globals.h" |
16 #include "webkit/plugins/ppapi/npapi_glue.h" | 16 #include "webkit/plugins/ppapi/npapi_glue.h" |
17 #include "webkit/plugins/ppapi/npobject_var.h" | 17 #include "webkit/plugins/ppapi/npobject_var.h" |
18 #include "webkit/plugins/ppapi/plugin_module.h" | 18 #include "webkit/plugins/ppapi/plugin_module.h" |
19 #include "webkit/plugins/ppapi/plugin_object.h" | 19 #include "webkit/plugins/ppapi/plugin_object.h" |
20 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 20 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
21 | 21 |
22 using ppapi::NPObjectVar; | 22 using ppapi::NPObjectVar; |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 return PP_MakeNull(); | 390 return PP_MakeNull(); |
391 return PluginObject::Create(module->GetSomeInstance(), | 391 return PluginObject::Create(module->GetSomeInstance(), |
392 ppp_class, ppp_class_data); | 392 ppp_class, ppp_class_data); |
393 } | 393 } |
394 | 394 |
395 } // namespace | 395 } // namespace |
396 | 396 |
397 // static | 397 // static |
398 const PPB_Var_Deprecated* PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface() { | 398 const PPB_Var_Deprecated* PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface() { |
399 static const PPB_Var_Deprecated var_deprecated_interface = { | 399 static const PPB_Var_Deprecated var_deprecated_interface = { |
400 ::ppapi::PPB_Var_Impl::GetVarInterface1_0()->AddRef, | 400 ::ppapi::PPB_Var_Shared::GetVarInterface1_0()->AddRef, |
401 ::ppapi::PPB_Var_Impl::GetVarInterface1_0()->Release, | 401 ::ppapi::PPB_Var_Shared::GetVarInterface1_0()->Release, |
402 ::ppapi::PPB_Var_Impl::GetVarInterface1_0()->VarFromUtf8, | 402 ::ppapi::PPB_Var_Shared::GetVarInterface1_0()->VarFromUtf8, |
403 ::ppapi::PPB_Var_Impl::GetVarInterface1_0()->VarToUtf8, | 403 ::ppapi::PPB_Var_Shared::GetVarInterface1_0()->VarToUtf8, |
404 &HasPropertyDeprecated, | 404 &HasPropertyDeprecated, |
405 &HasMethodDeprecated, | 405 &HasMethodDeprecated, |
406 &GetProperty, | 406 &GetProperty, |
407 &EnumerateProperties, | 407 &EnumerateProperties, |
408 &SetPropertyDeprecated, | 408 &SetPropertyDeprecated, |
409 &DeletePropertyDeprecated, | 409 &DeletePropertyDeprecated, |
410 &CallDeprecated, | 410 &CallDeprecated, |
411 &Construct, | 411 &Construct, |
412 &IsInstanceOfDeprecated, | 412 &IsInstanceOfDeprecated, |
413 &CreateObjectDeprecated, | 413 &CreateObjectDeprecated, |
414 &CreateObjectWithModuleDeprecated, | 414 &CreateObjectWithModuleDeprecated, |
415 }; | 415 }; |
416 | 416 |
417 return &var_deprecated_interface; | 417 return &var_deprecated_interface; |
418 } | 418 } |
419 | 419 |
420 } // namespace ppapi | 420 } // namespace ppapi |
421 } // namespace webkit | 421 } // namespace webkit |
422 | 422 |
OLD | NEW |