diff options
Diffstat (limited to 'WebKit/win/Interfaces')
-rw-r--r-- | WebKit/win/Interfaces/DOMHTML.idl | 5 | ||||
-rw-r--r-- | WebKit/win/Interfaces/DOMPrivate.idl | 10 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebFrameLoadDelegate.idl | 11 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate2.idl | 9 | ||||
-rwxr-xr-x | WebKit/win/Interfaces/IWebFramePrivate.idl | 9 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebInspector.idl | 3 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebPluginHalterDelegate.idl | 2 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebScriptWorld.idl | 38 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebSerializedJSValue.idl | 40 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebViewPrivate.idl | 13 | ||||
-rwxr-xr-x | WebKit/win/Interfaces/JavaScriptCoreAPITypes.idl | 40 | ||||
-rw-r--r-- | WebKit/win/Interfaces/WebKit.idl | 15 |
12 files changed, 169 insertions, 26 deletions
diff --git a/WebKit/win/Interfaces/DOMHTML.idl b/WebKit/win/Interfaces/DOMHTML.idl index 6c276aa..7ccb682 100644 --- a/WebKit/win/Interfaces/DOMHTML.idl +++ b/WebKit/win/Interfaces/DOMHTML.idl @@ -800,6 +800,11 @@ interface IDOMHTMLInputElement : IDOMElement // attribute long selectionEnd; HRESULT setSelectionEnd([in] long end); HRESULT selectionEnd([out, retval] long* end); + + /* + - (void)setValueForUser:(NSString *)value; + */ + HRESULT setValueForUser([in] BSTR value); } /* diff --git a/WebKit/win/Interfaces/DOMPrivate.idl b/WebKit/win/Interfaces/DOMPrivate.idl index 7210943..3365565 100644 --- a/WebKit/win/Interfaces/DOMPrivate.idl +++ b/WebKit/win/Interfaces/DOMPrivate.idl @@ -51,9 +51,8 @@ interface IDOMElementPrivate : IUnknown /* All the methods in this category are used by Safari forms autofill and should not be used for any other purpose. - They are stopgap measures until we finish transitioning form controls to not use NSView. Each one should become - replaceable by public DOM API, and when that happens Safari will switch to implementations using that public API, - and these will be deleted. + Each one should eventually be replaced by public DOM API, and when that happens Safari will switch to implementations + using that public API, and these will be deleted. @interface DOMHTMLInputElement(FormsAutoFillTransition) */ @@ -89,6 +88,11 @@ interface IFormsAutoFillTransition : IUnknown - (void)_setAutofilled:(BOOL)filled; */ HRESULT setAutofilled([in] BOOL filled); + + /* + - (BOOL)_isAutofilled; + */ + HRESULT isAutofilled([out, retval] BOOL* result); } /* diff --git a/WebKit/win/Interfaces/IWebFrameLoadDelegate.idl b/WebKit/win/Interfaces/IWebFrameLoadDelegate.idl index 66ac241..9847151 100644 --- a/WebKit/win/Interfaces/IWebFrameLoadDelegate.idl +++ b/WebKit/win/Interfaces/IWebFrameLoadDelegate.idl @@ -29,18 +29,9 @@ import "ocidl.idl"; import "IWebScriptObject.idl"; import "IWebView.idl"; import "IWebFrame.idl"; +import "JavaScriptCoreAPITypes.idl"; #endif -cpp_quote("// this is done to get midl to treat the JavaScriptCore API types as pointer types") -cpp_quote("#if 0") -typedef void* JSContextRef; -typedef void* JSObjectRef; -cpp_quote("#else") -cpp_quote("typedef struct OpaqueJSValue* JSObjectRef;") -cpp_quote("typedef const struct OpaqueJSContext* JSContextRef;") -cpp_quote("#endif") - - interface IWebError; interface IWebFrame; interface IWebScriptObject; diff --git a/WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate2.idl b/WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate2.idl index d646528..7e07c55 100644 --- a/WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate2.idl +++ b/WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate2.idl @@ -31,8 +31,9 @@ import "IWebView.idl"; #endif interface IWebFrame; -interface IWebView; +interface IWebScriptWorld; interface IWebSecurityOrigin; +interface IWebView; [ object, @@ -45,4 +46,10 @@ interface IWebFrameLoadDelegatePrivate2 : IWebFrameLoadDelegatePrivate HRESULT didDisplayInsecureContent([in] IWebView* sender); HRESULT didRunInsecureContent([in] IWebView* sender, [in] IWebSecurityOrigin* origin); + + HRESULT didClearWindowObjectForFrameInScriptWorld([in] IWebView* webView, [in] IWebFrame* frame, [in] IWebScriptWorld*); + + HRESULT didPushStateWithinPageForFrame([in] IWebView* webView, [in] IWebFrame* frame); + HRESULT didReplaceStateWithinPageForFrame([in] IWebView* webView, [in] IWebFrame* frame); + HRESULT didPopStateWithinPageForFrame([in] IWebView* webView, [in] IWebFrame* frame); } diff --git a/WebKit/win/Interfaces/IWebFramePrivate.idl b/WebKit/win/Interfaces/IWebFramePrivate.idl index d56239b..3ba71c8 100755 --- a/WebKit/win/Interfaces/IWebFramePrivate.idl +++ b/WebKit/win/Interfaces/IWebFramePrivate.idl @@ -32,6 +32,7 @@ import "IWebFrame.idl"; interface IWebFrame; interface IWebIconFetcher; interface IWebIconFetcherDelegate; +interface IWebScriptWorld; typedef enum { WebFrameLoadTypeStandard, @@ -57,7 +58,6 @@ typedef enum { interface IWebFramePrivate : IUnknown { HRESULT renderTreeAsExternalRepresentation([out, retval] BSTR* result); - HRESULT counterValueForElementById([in] BSTR id, [out, retval] BSTR* result); HRESULT scrollOffset([out, retval] SIZE* offset); // FIXME: This shouldn't be needed once IWebDocumentView is implemented. @@ -89,13 +89,16 @@ interface IWebFramePrivate : IUnknown HRESULT pauseAnimation([in] BSTR animationName, [in] IDOMNode* node, [in] double secondsFromNow, [out, retval] BOOL* animationWasRunning); HRESULT pauseTransition([in] BSTR propertyName, [in] IDOMNode* node, [in] double secondsFromNow, [out, retval] BOOL* transitionWasRunning); + HRESULT pauseSVGAnimation([in] BSTR elementId, [in] IDOMNode* node, [in] double secondsFromNow, [out, retval] BOOL* animationWasRunning); HRESULT numberOfActiveAnimations([out, retval] UINT* number); HRESULT isDisplayingStandaloneImage([out, retval] BOOL* result); HRESULT allowsFollowingLink([in] BSTR url, [out, retval] BOOL* result); - HRESULT stringByEvaluatingJavaScriptInIsolatedWorld([in] unsigned worldID, [in] OLE_HANDLE jsGlobalObject, [in] BSTR script, [out, retval] BSTR* result); + [local] HRESULT stringByEvaluatingJavaScriptInScriptWorld([in] IWebScriptWorld*, [in] JSObjectRef globalObject, [in] BSTR script, [out, retval] BSTR* result); + + [local] JSGlobalContextRef globalContextForScriptWorld([in] IWebScriptWorld*); - [local] JSGlobalContextRef contextForWorldID([in] unsigned worldID); + HRESULT counterValueForElementById([in] BSTR id, [out, retval] BSTR* result); } diff --git a/WebKit/win/Interfaces/IWebInspector.idl b/WebKit/win/Interfaces/IWebInspector.idl index e31376c..4523205 100644 --- a/WebKit/win/Interfaces/IWebInspector.idl +++ b/WebKit/win/Interfaces/IWebInspector.idl @@ -54,4 +54,7 @@ interface IWebInspector : IUnknown HRESULT isJavaScriptProfilingEnabled(BOOL* isProfilingEnabled); HRESULT setJavaScriptProfilingEnabled(BOOL enabled); + + HRESULT isTimelineProfilingEnabled(BOOL* isEnabled); + HRESULT setTimelineProfilingEnabled(BOOL enabled); } diff --git a/WebKit/win/Interfaces/IWebPluginHalterDelegate.idl b/WebKit/win/Interfaces/IWebPluginHalterDelegate.idl index f79e304..e113da8 100644 --- a/WebKit/win/Interfaces/IWebPluginHalterDelegate.idl +++ b/WebKit/win/Interfaces/IWebPluginHalterDelegate.idl @@ -39,5 +39,5 @@ interface IWebView; ] interface IWebPluginHalterDelegate : IUnknown { - HRESULT shouldHaltPlugin([in] IWebView* webView, [in] IDOMNode*, [out, retval] BOOL* result); + HRESULT shouldHaltPlugin([in] IWebView* webView, [in] IDOMNode*, [in] BOOL isWindowed, [in] BSTR pluginName, [out, retval] BOOL* result); } diff --git a/WebKit/win/Interfaces/IWebScriptWorld.idl b/WebKit/win/Interfaces/IWebScriptWorld.idl new file mode 100644 index 0000000..255255c --- /dev/null +++ b/WebKit/win/Interfaces/IWebScriptWorld.idl @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2009 Apple Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef DO_NO_IMPORTS +import "oaidl.idl"; +import "ocidl.idl"; +#endif + +[ + object, + oleautomation, + uuid(EBD45575-8184-4f22-B849-A5FE88336055), + pointer_default(unique) +] +interface IWebScriptWorld : IUnknown { + HRESULT standardWorld([out, retval] IWebScriptWorld**); +} diff --git a/WebKit/win/Interfaces/IWebSerializedJSValue.idl b/WebKit/win/Interfaces/IWebSerializedJSValue.idl new file mode 100644 index 0000000..eddef62 --- /dev/null +++ b/WebKit/win/Interfaces/IWebSerializedJSValue.idl @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2009 Apple Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef DO_NO_IMPORTS +import "oaidl.idl"; +import "ocidl.idl"; +import "JavaScriptCoreAPITypes.idl"; +#endif + +[ + object, + oleautomation, + uuid(13B3F50A-C996-61A7-2247-3DCC88FB0B84), + pointer_default(unique) +] +interface IWebSerializedJSValue : IUnknown { + [local] HRESULT serialize([in] JSContextRef context, [in] JSValueRef value, [out, retval] JSValueRef* exception); + [local] HRESULT deserialize([in] JSContextRef context, [out, retval] JSValueRef* value); +} diff --git a/WebKit/win/Interfaces/IWebViewPrivate.idl b/WebKit/win/Interfaces/IWebViewPrivate.idl index d95f92b..1c8cea2 100644 --- a/WebKit/win/Interfaces/IWebViewPrivate.idl +++ b/WebKit/win/Interfaces/IWebViewPrivate.idl @@ -184,18 +184,17 @@ interface IWebViewPrivate : IUnknown */ HRESULT MIMETypeForExtension([in] BSTR extension, [out, retval] BSTR* mimeType); - // For the following functions, 0 < worldID < UINT_MAX. - HRESULT addUserScriptToGroup([in] BSTR groupName, [in] unsigned worldID, [in] BSTR source, [in] BSTR url, + HRESULT addUserScriptToGroup([in] BSTR groupName, [in] IWebScriptWorld*, [in] BSTR source, [in] BSTR url, [in] unsigned whitelistCount, [in, size_is(whitelistCount)] BSTR* whitelist, [in] unsigned blacklistCount, [in, size_is(blacklistCount)] BSTR* blacklist, [in] WebUserScriptInjectionTime injectionTime); - HRESULT addUserStyleSheetToGroup([in] BSTR groupName, [in] unsigned worldID, [in] BSTR source, [in] BSTR url, + HRESULT addUserStyleSheetToGroup([in] BSTR groupName, [in] IWebScriptWorld*, [in] BSTR source, [in] BSTR url, [in] unsigned whitelistCount, [in, size_is(whitelistCount)] BSTR* whitelist, [in] unsigned blacklistCount, [in, size_is(blacklistCount)] BSTR* blacklist); - HRESULT removeUserScriptFromGroup([in] BSTR groupName, [in] unsigned worldID, [in] BSTR url); - HRESULT removeUserStyleSheetFromGroup([in] BSTR groupName, [in] unsigned worldID, [in] BSTR url); - HRESULT removeUserScriptsFromGroup([in] BSTR groupName, [in] unsigned worldID); - HRESULT removeUserStyleSheetsFromGroup([in] BSTR groupName, [in] unsigned worldID); + HRESULT removeUserScriptFromGroup([in] BSTR groupName, [in] IWebScriptWorld*, [in] BSTR url); + HRESULT removeUserStyleSheetFromGroup([in] BSTR groupName, [in] IWebScriptWorld*, [in] BSTR url); + HRESULT removeUserScriptsFromGroup([in] BSTR groupName, [in] IWebScriptWorld*); + HRESULT removeUserStyleSheetsFromGroup([in] BSTR groupName, [in] IWebScriptWorld*); HRESULT removeAllUserContentFromGroup([in] BSTR groupName); HRESULT setPluginHalterDelegate([in] IWebPluginHalterDelegate* d); diff --git a/WebKit/win/Interfaces/JavaScriptCoreAPITypes.idl b/WebKit/win/Interfaces/JavaScriptCoreAPITypes.idl new file mode 100755 index 0000000..f2ef1f1 --- /dev/null +++ b/WebKit/win/Interfaces/JavaScriptCoreAPITypes.idl @@ -0,0 +1,40 @@ +/*
+ * Copyright (C) 2009 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef DO_NO_IMPORTS
+import "oaidl.idl";
+import "ocidl.idl";
+#endif
+
+cpp_quote("// this is done to get midl to treat the JavaScriptCore API types as pointer types")
+cpp_quote("#if 0")
+typedef void* JSContextRef;
+typedef void* JSObjectRef;
+typedef void* JSValueRef;
+cpp_quote("#else")
+cpp_quote("typedef const struct OpaqueJSValue* JSValueRef;")
+cpp_quote("typedef struct OpaqueJSValue* JSObjectRef;")
+cpp_quote("typedef const struct OpaqueJSContext* JSContextRef;")
+cpp_quote("#endif")
+
diff --git a/WebKit/win/Interfaces/WebKit.idl b/WebKit/win/Interfaces/WebKit.idl index cdd24b3..7b308db 100644 --- a/WebKit/win/Interfaces/WebKit.idl +++ b/WebKit/win/Interfaces/WebKit.idl @@ -24,7 +24,7 @@ */ cpp_quote("/*") -cpp_quote(" * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.") +cpp_quote(" * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.") cpp_quote(" *") cpp_quote(" * Redistribution and use in source and binary forms, with or without") cpp_quote(" * modification, are permitted provided that the following conditions") @@ -56,6 +56,7 @@ import "oaidl.idl"; import "ocidl.idl"; #include "WebScrollbarTypes.idl" +#include "JavaScriptCoreAPITypes.idl" #include "IWebScriptObject.idl" #include "DOMCSS.idl" #include "DOMCore.idl" @@ -113,9 +114,11 @@ import "ocidl.idl"; #include "IWebResource.idl" #include "IWebResourceLoadDelegate.idl" #include "IWebResourceLoadDelegatePrivate.idl" +#include "IWebScriptWorld.idl" #include "IWebScrollBarDelegatePrivate.idl" #include "IWebScrollBarPrivate.idl" #include "IWebSecurityOrigin.idl" +#include "IWebSerializedJSValue.idl" #include "IWebTextRenderer.idl" #include "IWebUIDelegate.idl" #include "IWebUIDelegate2.idl" @@ -271,4 +274,14 @@ library WebKit coclass WebWorkersPrivate{ [default] interface IWebWorkersPrivate; } + + [uuid(D3C301EE-D59A-49c0-A43A-9EA01CDB1590)] + coclass WebScriptWorld { + [default] interface IWebScriptWorld; + } + + [uuid(13C45703-A3B3-8797-276B-75632F6165C3)] + coclass WebSerializedJSValue { + [default] interface IWebSerializedJSValue; + } } |