Commit 080d6462 authored by Alexandre Julliard's avatar Alexandre Julliard

include: Define the Scriptlet class in mshtml.idl.

parent 90c7acf8
...@@ -946,6 +946,26 @@ ...@@ -946,6 +946,26 @@
#define DISPID_IHTMLDOCUMENT6_IE8_GETELEMENTBYID DISPID_OMDOCUMENT+105 #define DISPID_IHTMLDOCUMENT6_IE8_GETELEMENTBYID DISPID_OMDOCUMENT+105
#define DISPID_IHTMLDOCUMENT6_UPDATESETTINGS DISPID_OMDOCUMENT+106 #define DISPID_IHTMLDOCUMENT6_UPDATESETTINGS DISPID_OMDOCUMENT+106
/* DWebBridgeEvents */
#define DISPID_DWEBBRIDGEEVENTS_ONSCRIPTLETEVENT 1
#define DISPID_DWEBBRIDGEEVENTS_ONREADYSTATECHANGE DISPID_HTMLDOCUMENTEVENTS_ONREADYSTATECHANGE
#define DISPID_DWEBBRIDGEEVENTS_ONCLICK DISPID_HTMLDOCUMENTEVENTS_ONCLICK
#define DISPID_DWEBBRIDGEEVENTS_ONDBLCLICK DISPID_HTMLDOCUMENTEVENTS_ONDBLCLICK
#define DISPID_DWEBBRIDGEEVENTS_ONKEYDOWN DISPID_HTMLDOCUMENTEVENTS_ONKEYDOWN
#define DISPID_DWEBBRIDGEEVENTS_ONKEYUP DISPID_HTMLDOCUMENTEVENTS_ONKEYUP
#define DISPID_DWEBBRIDGEEVENTS_ONKEYPRESS DISPID_HTMLDOCUMENTEVENTS_ONKEYPRESS
#define DISPID_DWEBBRIDGEEVENTS_ONMOUSEDOWN DISPID_HTMLDOCUMENTEVENTS_ONMOUSEDOWN
#define DISPID_DWEBBRIDGEEVENTS_ONMOUSEMOVE DISPID_HTMLDOCUMENTEVENTS_ONMOUSEMOVE
#define DISPID_DWEBBRIDGEEVENTS_ONMOUSEUP DISPID_HTMLDOCUMENTEVENTS_ONMOUSEUP
/* IWebBridge */
#define DISPID_IWEBBRIDGE_URL 1
#define DISPID_IWEBBRIDGE_SCROLLBAR 2
#define DISPID_IWEBBRIDGE_EMBED 3
#define DISPID_IWEBBRIDGE_EVENT DISPID_IHTMLWINDOW2_EVENT
#define DISPID_IWEBBRIDGE_READYSTATE DISPID_READYSTATE
#define DISPID_IWEBBRIDGE_ABOUTBOX DISPID_ABOUTBOX
/* IHTMLEmbedElement */ /* IHTMLEmbedElement */
#define DISPID_IHTMLEMBEDELEMENT_HIDDEN DISPID_OBJECT+10 #define DISPID_IHTMLEMBEDELEMENT_HIDDEN DISPID_OBJECT+10
#define DISPID_IHTMLEMBEDELEMENT_PALETTE DISPID_OBJECT+4 #define DISPID_IHTMLEMBEDELEMENT_PALETTE DISPID_OBJECT+4
......
...@@ -93,6 +93,15 @@ typedef enum _SELECTION_TYPE { ...@@ -93,6 +93,15 @@ typedef enum _SELECTION_TYPE {
} SELECTION_TYPE; } SELECTION_TYPE;
[ [
version(4.0),
uuid(3050F1C5-98B5-11CF-BB82-00AA00BDCE0B)
]
library MSHTML
{
importlib("stdole2.tlb");
[
odl, odl,
oleautomation, oleautomation,
dual, dual,
...@@ -143,15 +152,6 @@ interface IHTMLFiltersCollection : IDispatch ...@@ -143,15 +152,6 @@ interface IHTMLFiltersCollection : IDispatch
[retval, out] VARIANT *pvarResult); [retval, out] VARIANT *pvarResult);
} }
[
version(4.0),
uuid(3050F1C5-98B5-11CF-BB82-00AA00BDCE0B)
]
library MSHTML
{
importlib("stdole2.tlb");
/***************************************************************************** /*****************************************************************************
* IHTMLStyle interface * IHTMLStyle interface
*/ */
...@@ -13138,6 +13138,104 @@ coclass HTMLDocument ...@@ -13138,6 +13138,104 @@ coclass HTMLDocument
} }
/***************************************************************************** /*****************************************************************************
* DWebBridgeEvents dispinterface
*/
[
hidden,
uuid(a6d897ff-0a95-11d1-b0ba-006008166e11)
]
dispinterface DWebBridgeEvents
{
properties:
methods:
[id(DISPID_DWEBBRIDGEEVENTS_ONSCRIPTLETEVENT)]
void onscriptletevent([in] BSTR name,[in] VARIANT eventData);
[id(DISPID_DWEBBRIDGEEVENTS_ONREADYSTATECHANGE)]
void onreadystatechange();
[id(DISPID_DWEBBRIDGEEVENTS_ONCLICK)]
VARIANT_BOOL onclick();
[id(DISPID_DWEBBRIDGEEVENTS_ONDBLCLICK)]
VARIANT_BOOL ondblclick();
[id(DISPID_DWEBBRIDGEEVENTS_ONKEYDOWN)]
void onkeydown();
[id(DISPID_DWEBBRIDGEEVENTS_ONKEYUP)]
void onkeyup();
[id(DISPID_DWEBBRIDGEEVENTS_ONKEYPRESS)]
VARIANT_BOOL onkeypress();
[id(DISPID_DWEBBRIDGEEVENTS_ONMOUSEDOWN)]
void onmousedown();
[id(DISPID_DWEBBRIDGEEVENTS_ONMOUSEMOVE)]
void onmousemove();
[id(DISPID_DWEBBRIDGEEVENTS_ONMOUSEUP)]
void onmouseup();
}
/*****************************************************************************
* IWebBridge interface
*/
[
odl,
oleautomation,
dual,
uuid(ae24fdad-03c6-11d1-8b76-0080c744f389)
]
interface IWebBridge : IDispatch
{
[propput, id(DISPID_IWEBBRIDGE_URL)]
HRESULT URL([in] BSTR v);
[propget, id(DISPID_IWEBBRIDGE_URL)]
HRESULT URL([retval, out] BSTR * p);
[propput, id(DISPID_IWEBBRIDGE_SCROLLBAR)]
HRESULT Scrollbar([in] VARIANT_BOOL v);
[propget, id(DISPID_IWEBBRIDGE_SCROLLBAR)]
HRESULT Scrollbar([retval, out] VARIANT_BOOL * p);
[propput, id(DISPID_IWEBBRIDGE_EMBED)]
HRESULT embed([in] VARIANT_BOOL v);
[propget, id(DISPID_IWEBBRIDGE_EMBED)]
HRESULT embed([retval, out] VARIANT_BOOL * p);
[propget, id(DISPID_IWEBBRIDGE_EVENT)]
HRESULT event([retval, out] IDispatch* * p);
[propget, id(DISPID_IWEBBRIDGE_READYSTATE)]
HRESULT readyState([retval, out] long * p);
[id(DISPID_IWEBBRIDGE_ABOUTBOX)]
HRESULT AboutBox();
}
/*****************************************************************************
* Scriptlet coclass
*/
[
control,
helpstring("Microsoft Scriptlet Component"),
progid("ScriptBridge.ScriptBridge.1"),
vi_progid("ScriptBridge.ScriptBridge"),
threading(apartment),
uuid(ae24fdae-03c6-11d1-8b76-0080c744f389)
]
coclass Scriptlet
{
[default] interface IWebBridge;
[source, default] dispinterface DWebBridgeEvents;
}
/*****************************************************************************
* IHTMLEmbedElement interface * IHTMLEmbedElement interface
*/ */
[ [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment