| OLD | NEW |
| 1 // Copyright 2009, Google Inc. All rights reserved. | 1 // Copyright 2009, Google Inc. All rights reserved. |
| 2 // Portions of this file were adapted from the Mozilla project. | 2 // Portions of this file were adapted from the Mozilla project. |
| 3 // See https://developer.mozilla.org/en/ActiveX_Control_for_Hosting_Netscape_Plu
g-ins_in_IE | 3 // See https://developer.mozilla.org/en/ActiveX_Control_for_Hosting_Netscape_Plu
g-ins_in_IE |
| 4 /* ***** BEGIN LICENSE BLOCK ***** | 4 /* ***** BEGIN LICENSE BLOCK ***** |
| 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 6 * | 6 * |
| 7 * The contents of this file are subject to the Mozilla Public License Version | 7 * The contents of this file are subject to the Mozilla Public License Version |
| 8 * 1.1 (the "License"); you may not use this file except in compliance with | 8 * 1.1 (the "License"); you may not use this file except in compliance with |
| 9 * the License. You may obtain a copy of the License at | 9 * the License. You may obtain a copy of the License at |
| 10 * http://www.mozilla.org/MPL/ | 10 * http://www.mozilla.org/MPL/ |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 STDMETHOD(GetMemberProperties)(DISPID id, DWORD grfdexFertch, DWORD* pgrfdex); | 163 STDMETHOD(GetMemberProperties)(DISPID id, DWORD grfdexFertch, DWORD* pgrfdex); |
| 164 STDMETHOD(GetNameSpaceParent)(IUnknown** ppunk); | 164 STDMETHOD(GetNameSpaceParent)(IUnknown** ppunk); |
| 165 STDMETHOD(GetNextDispID)(DWORD grfdex, DISPID id, DISPID* pid); | 165 STDMETHOD(GetNextDispID)(DWORD grfdex, DISPID id, DISPID* pid); |
| 166 STDMETHOD(InvokeEx)(DISPID id, LCID lcid, WORD wFlags, DISPPARAMS* pdp, | 166 STDMETHOD(InvokeEx)(DISPID id, LCID lcid, WORD wFlags, DISPPARAMS* pdp, |
| 167 VARIANT* pVarRes, EXCEPINFO* pei, | 167 VARIANT* pVarRes, EXCEPINFO* pei, |
| 168 IServiceProvider* pspCaller); | 168 IServiceProvider* pspCaller); |
| 169 | 169 |
| 170 // Method overridden from IPersistPropertyBagImpl. | 170 // Method overridden from IPersistPropertyBagImpl. |
| 171 STDMETHOD(Load(IPropertyBag *pPropBag, IErrorLog *pErrorLog)); | 171 STDMETHOD(Load(IPropertyBag *pPropBag, IErrorLog *pErrorLog)); |
| 172 | 172 |
| 173 STDMETHOD(SetObjectRects(LPCRECT lprcPosRect, |
| 174 LPCRECT lprcClipRect)); |
| 175 |
| 173 // Returns the properties associated with the NPPVpluginNameString, and | 176 // Returns the properties associated with the NPPVpluginNameString, and |
| 174 // NPPVpluginDescriptionString identifiers of the loaded plug-in. These | 177 // NPPVpluginDescriptionString identifiers of the loaded plug-in. These |
| 175 // properties can be used for plug-in introspection and version-dependent | 178 // properties can be used for plug-in introspection and version-dependent |
| 176 // behaviour. | 179 // behaviour. |
| 177 STDMETHOD(get_description)(BSTR *returned_description); | 180 STDMETHOD(get_description)(BSTR *returned_description); |
| 178 STDMETHOD(get_name)(BSTR *returned_name); | 181 STDMETHOD(get_name)(BSTR *returned_name); |
| 179 | 182 |
| 180 LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); | 183 LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); |
| 181 LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); | 184 LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); |
| 182 LRESULT OnPluginAsyncCall(UINT message, WPARAM w_param, LPARAM l_param, | 185 LRESULT OnPluginAsyncCall(UINT message, WPARAM w_param, LPARAM l_param, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 &LIBID_npapi_host_controlLib, | 266 &LIBID_npapi_host_controlLib, |
| 264 0xFFFF, 0xFFFF> DispatchImpl; | 267 0xFFFF, 0xFFFF> DispatchImpl; |
| 265 | 268 |
| 266 DISALLOW_COPY_AND_ASSIGN(CHostControl); | 269 DISALLOW_COPY_AND_ASSIGN(CHostControl); |
| 267 }; | 270 }; |
| 268 | 271 |
| 269 // Register this COM class with the COM module. | 272 // Register this COM class with the COM module. |
| 270 OBJECT_ENTRY_AUTO(__uuidof(HostControl), CHostControl); | 273 OBJECT_ENTRY_AUTO(__uuidof(HostControl), CHostControl); |
| 271 | 274 |
| 272 #endif // O3D_PLUGIN_NPAPI_HOST_CONTROL_WIN_HOST_CONTROL_H_ | 275 #endif // O3D_PLUGIN_NPAPI_HOST_CONTROL_WIN_HOST_CONTROL_H_ |
| OLD | NEW |