OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef WEBKIT_ACTIVEX_SHIM_DISPATCH_OBJECT_H__ | 5 #ifndef WEBKIT_ACTIVEX_SHIM_DISPATCH_OBJECT_H__ |
6 #define WEBKIT_ACTIVEX_SHIM_DISPATCH_OBJECT_H__ | 6 #define WEBKIT_ACTIVEX_SHIM_DISPATCH_OBJECT_H__ |
7 | 7 |
8 #include <oaidl.h> | 8 #include <oaidl.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 | 11 |
12 #include "base/scoped_ptr.h" | |
13 #include "webkit/glue/plugins/nphostapi.h" | 12 #include "webkit/glue/plugins/nphostapi.h" |
14 | 13 |
15 namespace activex_shim { | 14 namespace activex_shim { |
16 | 15 |
17 struct DispatchNPObject; | 16 struct DispatchNPObject; |
18 | 17 |
19 // DispatchObject provides service to translate calls on NPObject to the | 18 // DispatchObject provides service to translate calls on NPObject to the |
20 // underlying IDispatch interface. It is isolated from the ActiveXPlugin, so | 19 // underlying IDispatch interface. It is isolated from the ActiveXPlugin, so |
21 // that when we have scripts like: | 20 // that when we have scripts like: |
22 // wmp.controls.stop(); | 21 // wmp.controls.stop(); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 bool NPInvokeDefault(NPObject* obj, const NPVariant* args, uint32_t argCount, | 114 bool NPInvokeDefault(NPObject* obj, const NPVariant* args, uint32_t argCount, |
116 NPVariant* result); | 115 NPVariant* result); |
117 bool NPHasProperty(NPObject* obj, NPIdentifier name); | 116 bool NPHasProperty(NPObject* obj, NPIdentifier name); |
118 bool NPGetProperty(NPObject* obj, NPIdentifier name, NPVariant* variant); | 117 bool NPGetProperty(NPObject* obj, NPIdentifier name, NPVariant* variant); |
119 bool NPSetProperty(NPObject* obj, NPIdentifier name, const NPVariant* variant); | 118 bool NPSetProperty(NPObject* obj, NPIdentifier name, const NPVariant* variant); |
120 bool NPRemoveProperty(NPObject* npobj, NPIdentifier propertyName); | 119 bool NPRemoveProperty(NPObject* npobj, NPIdentifier propertyName); |
121 | 120 |
122 } // namespace activex_shim | 121 } // namespace activex_shim |
123 | 122 |
124 #endif // #ifndef WEBKIT_ACTIVEX_SHIM_DISPATCH_OBJECT_H__ | 123 #endif // #ifndef WEBKIT_ACTIVEX_SHIM_DISPATCH_OBJECT_H__ |
OLD | NEW |