diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-01 01:48:52 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-01 01:48:52 +0000 |
commit | 829c2841a0e30b9f08453566ffc52d2c386a9045 (patch) | |
tree | b916ff2699e97a13f027d3e2cb60be781c0e18c8 /chrome/plugin/npobject_util.cc | |
parent | 5c0b8e45fa1260f311d71073c8a9b89db199d992 (diff) | |
download | chromium_src-829c2841a0e30b9f08453566ffc52d2c386a9045.zip chromium_src-829c2841a0e30b9f08453566ffc52d2c386a9045.tar.gz chromium_src-829c2841a0e30b9f08453566ffc52d2c386a9045.tar.bz2 |
Port plugin messages.
Review URL: http://codereview.chromium.org/49050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12928 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/npobject_util.cc')
-rw-r--r-- | chrome/plugin/npobject_util.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/plugin/npobject_util.cc b/chrome/plugin/npobject_util.cc index 8e30495..d7bad8f 100644 --- a/chrome/plugin/npobject_util.cc +++ b/chrome/plugin/npobject_util.cc @@ -193,7 +193,8 @@ void CreateNPVariantParam(const NPVariant& variant, NPObjectStub* object_stub = new NPObjectStub( variant.value.objectValue, channel, route_id, modal_dialog_event); param->npobject_routing_id = route_id; - param->npobject_pointer = variant.value.objectValue; + param->npobject_pointer = + reinterpret_cast<intptr_t>(variant.value.objectValue); } else { param->type = NPVARIANT_PARAM_VOID; } @@ -249,7 +250,7 @@ void CreateNPVariant(const NPVariant_Param& param, case NPVARIANT_PARAM_OBJECT_POINTER: result->type = NPVariantType_Object; result->value.objectValue = - static_cast<NPObject*>(param.npobject_pointer); + reinterpret_cast<NPObject*>(param.npobject_pointer); NPN_RetainObject(result->value.objectValue); break; default: |