diff options
Diffstat (limited to 'WebKit/win/Interfaces')
-rw-r--r-- | WebKit/win/Interfaces/IWebDatabaseManager.idl | 2 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebDesktopNotificationsDelegate.idl | 114 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebFrame.idl | 6 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate2.idl | 48 | ||||
-rwxr-xr-x | WebKit/win/Interfaces/IWebFramePrivate.idl | 2 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebInspectorPrivate.idl | 43 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebPluginHalterDelegate.idl | 43 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebPolicyDelegatePrivate.idl | 45 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebPreferencesPrivate.idl | 19 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebUIDelegate2.idl | 56 | ||||
-rwxr-xr-x | WebKit/win/Interfaces/IWebUIDelegatePrivate.idl | 36 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebView.idl | 6 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebViewPrivate.idl | 47 | ||||
-rw-r--r-- | WebKit/win/Interfaces/IWebWorkersPrivate.idl | 52 | ||||
-rw-r--r-- | WebKit/win/Interfaces/WebKit.idl | 13 |
15 files changed, 528 insertions, 4 deletions
diff --git a/WebKit/win/Interfaces/IWebDatabaseManager.idl b/WebKit/win/Interfaces/IWebDatabaseManager.idl index c877c03..4292dc6 100644 --- a/WebKit/win/Interfaces/IWebDatabaseManager.idl +++ b/WebKit/win/Interfaces/IWebDatabaseManager.idl @@ -59,4 +59,6 @@ interface IWebDatabaseManager : IUnknown HRESULT deleteAllDatabases(); HRESULT deleteOrigin([in] IWebSecurityOrigin* origin); HRESULT deleteDatabase([in] BSTR databaseName, [in] IWebSecurityOrigin* origin); + + HRESULT setQuota([in] BSTR originName, [in] unsigned long long quota); } diff --git a/WebKit/win/Interfaces/IWebDesktopNotificationsDelegate.idl b/WebKit/win/Interfaces/IWebDesktopNotificationsDelegate.idl new file mode 100644 index 0000000..20bb541 --- /dev/null +++ b/WebKit/win/Interfaces/IWebDesktopNotificationsDelegate.idl @@ -0,0 +1,114 @@ +/* + * Copyright (C) 2009 Google 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: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 THE COPYRIGHT + * OWNER OR 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 + +/*! + @category WebDesktopNotification + @discussion A class that represents a notification being shown + on the user's desktop. It provides the contents of the notification + and receives events related to the display. + @interface NSObject (WebDesktopNotificationProvider) +*/ +[ + object, + oleautomation, + uuid(0A0AAFA8-C698-4cff-BD28-39614622EEA4), + pointer_default(unique) +] +interface IWebDesktopNotification : IUnknown +{ + HRESULT isHTML([out, retval] BOOL* result); + HRESULT contentsURL([out, retval] BSTR* result); + HRESULT iconURL([out, retval] BSTR* result); + HRESULT title([out, retval] BSTR* result); + HRESULT text([out, retval] BSTR* result); + + HRESULT notifyDisplay(); + HRESULT notifyError(); + HRESULT notifyClose([in] BOOL xplicit); +} + +/*! + @category WebDesktopNotificationsDelegate + @discussion A class that implements WebDesktopNotificationProvider provides + methods that may be used by Javascript to display notifications ("toasts") + on the user's desktop. + @interface NSObject (WebDesktopNotificationProvider) +*/ +[ + object, + oleautomation, + uuid(09DA073E-38B3-466a-9828-B2915FDD2ECB), + pointer_default(unique) +] + +interface IWebDesktopNotificationsDelegate : IUnknown +{ + /*! + @method showDesktopNotification: + @abstract Show a notification. + @param notification The Notification to be shown. + */ + HRESULT showDesktopNotification([in] IWebDesktopNotification* notification); + + /*! + @method cancelDesktopNotification: + @abstract Cancel showing a notification (or take it down if it's shown). + @param notification The Notification to be canceled. + */ + HRESULT cancelDesktopNotification([in] IWebDesktopNotification* notification); + + /*! + @method notificationDestroyed: + @abstract Notify the presenter that the object has been destroyed. The + notification need not be un-shown, but events should not be invoked. + @param notification The Notification that was destroyed. + */ + HRESULT notificationDestroyed([in] IWebDesktopNotification* notification); + + /*! + @method checkNotificationPermission: + @abstract See if the origin context is allowed to show notifications. + @param origin The origin to be checked. + @param result A value from WebCore::NotificationProvider::Permission enum. + */ + HRESULT checkNotificationPermission([in] BSTR origin, [out, retval] int* result); + + /*! + @method requestNotificationPermission: + @abstract Request permission to show notifications on a given origin. + @param origin The origin to be requested. + */ + HRESULT requestNotificationPermission([in] BSTR origin); +} diff --git a/WebKit/win/Interfaces/IWebFrame.idl b/WebKit/win/Interfaces/IWebFrame.idl index 30af7b9..da2a78f 100644 --- a/WebKit/win/Interfaces/IWebFrame.idl +++ b/WebKit/win/Interfaces/IWebFrame.idl @@ -254,4 +254,10 @@ interface IWebFrame : IUnknown @param flag YES to mark the frame as not searchable */ HRESULT setExcludeFromTextSearch([in] BOOL flag); + + /*! + @method reloadFromOrigin + @discussion Performs HTTP/1.1 end-to-end reload. + */ + HRESULT reloadFromOrigin(); } diff --git a/WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate2.idl b/WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate2.idl new file mode 100644 index 0000000..d646528 --- /dev/null +++ b/WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate2.idl @@ -0,0 +1,48 @@ +/* + * 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 COMPUTER, INC. ``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 COMPUTER, INC. OR + * 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 "IWebFrame.idl"; +import "IWebView.idl"; +#endif + +interface IWebFrame; +interface IWebView; +interface IWebSecurityOrigin; + +[ + object, + oleautomation, + uuid(4148C9F8-94D9-479A-BCF1-C15E5269CCC1), + pointer_default(unique) +] +interface IWebFrameLoadDelegatePrivate2 : IWebFrameLoadDelegatePrivate +{ + HRESULT didDisplayInsecureContent([in] IWebView* sender); + + HRESULT didRunInsecureContent([in] IWebView* sender, [in] IWebSecurityOrigin* origin); +} diff --git a/WebKit/win/Interfaces/IWebFramePrivate.idl b/WebKit/win/Interfaces/IWebFramePrivate.idl index 96b42ab..a3366da 100755 --- a/WebKit/win/Interfaces/IWebFramePrivate.idl +++ b/WebKit/win/Interfaces/IWebFramePrivate.idl @@ -91,4 +91,6 @@ interface IWebFramePrivate : IUnknown HRESULT numberOfActiveAnimations([out, retval] UINT* number); HRESULT isDisplayingStandaloneImage([out, retval] BOOL* result); + + HRESULT allowsFollowingLink([in] BSTR url, [out, retval] BOOL* result); } diff --git a/WebKit/win/Interfaces/IWebInspectorPrivate.idl b/WebKit/win/Interfaces/IWebInspectorPrivate.idl new file mode 100644 index 0000000..74421bd --- /dev/null +++ b/WebKit/win/Interfaces/IWebInspectorPrivate.idl @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2007, 2008 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. + * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of + * its contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY APPLE 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 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(A5A31CD0-AEA9-11de-8A39-0800200C9A66), + pointer_default(unique) +] +interface IWebInspectorPrivate : IUnknown +{ + HRESULT evaluateInFrontend([in] ULONG callId, [in] BSTR script); +} diff --git a/WebKit/win/Interfaces/IWebPluginHalterDelegate.idl b/WebKit/win/Interfaces/IWebPluginHalterDelegate.idl new file mode 100644 index 0000000..f79e304 --- /dev/null +++ b/WebKit/win/Interfaces/IWebPluginHalterDelegate.idl @@ -0,0 +1,43 @@ +/* + * 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. ``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 + * 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 + +interface IDOMNode; +interface IWebView; + +[ + object, + oleautomation, + uuid(2e0e5d9e-ffc9-4185-aa15-e66868d548ee), + pointer_default(unique) +] +interface IWebPluginHalterDelegate : IUnknown +{ + HRESULT shouldHaltPlugin([in] IWebView* webView, [in] IDOMNode*, [out, retval] BOOL* result); +} diff --git a/WebKit/win/Interfaces/IWebPolicyDelegatePrivate.idl b/WebKit/win/Interfaces/IWebPolicyDelegatePrivate.idl new file mode 100644 index 0000000..4bb052c --- /dev/null +++ b/WebKit/win/Interfaces/IWebPolicyDelegatePrivate.idl @@ -0,0 +1,45 @@ +/* + * 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 COMPUTER, INC. ``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 COMPUTER, INC. OR + * 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 "IWebFrame.idl" +import "IWebView.idl" +#endif + +interface IWebView; +interface IWebFrame; + +[ + object, + oleautomation, + uuid(BA053E15-559F-46ee-A1D4-F8003EFFB658), + pointer_default(unique) +] +interface IWebPolicyDelegatePrivate : IUnknown +{ + HRESULT shouldLoadMediaURL([in] IWebView* webView, [in] BSTR url, [in] IWebFrame* frame, [out, retval] BOOL* retval); +} diff --git a/WebKit/win/Interfaces/IWebPreferencesPrivate.idl b/WebKit/win/Interfaces/IWebPreferencesPrivate.idl index 562a75b..d994211 100644 --- a/WebKit/win/Interfaces/IWebPreferencesPrivate.idl +++ b/WebKit/win/Interfaces/IWebPreferencesPrivate.idl @@ -78,4 +78,23 @@ interface IWebPreferencesPrivate : IUnknown HRESULT isXSSAuditorEnabled([out, retval] BOOL *enabled); HRESULT setXSSAuditorEnabled([in] BOOL enabled); + + HRESULT experimentalNotificationsEnabled([out, retval] BOOL *enabled); + HRESULT setExperimentalNotificationsEnabled([in] BOOL enabled); + + HRESULT experimentalWebSocketsEnabled([out, retval] BOOL *enabled); + HRESULT setExperimentalWebSocketsEnabled([in] BOOL enabled); + + HRESULT setShouldUseHighResolutionTimers([in] BOOL useHighResolutionTimers); + HRESULT shouldUseHighResolutionTimers([out, retval] BOOL* useHighResolutionTimers); + + // Used to set preference specified by a test via LayoutTestController.overridePreference(..). + // Used by DumpRenderTree. + HRESULT setPreferenceForTest([in] BSTR key, [in] BSTR value); + + HRESULT setPluginHalterEnabled([in] BOOL enabled); + HRESULT pluginHalterEnabled([out, retval] BOOL* enabled); + + HRESULT setPluginAllowedRunTime([in] UINT allowedRunTime); + HRESULT pluginAllowedRunTime([out, retval] UINT* allowedRunTime); } diff --git a/WebKit/win/Interfaces/IWebUIDelegate2.idl b/WebKit/win/Interfaces/IWebUIDelegate2.idl new file mode 100644 index 0000000..a413389 --- /dev/null +++ b/WebKit/win/Interfaces/IWebUIDelegate2.idl @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2009 Google 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: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 THE COPYRIGHT + * OWNER OR 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 + +/*! + @category WebUIDelegate2 + @discussion An extension of WebUIDelegate which additionally + provides access to a notification presenter. + @interface NSObject (WebUIDelegate2) +*/ +[ + object, + oleautomation, + uuid(C6DEF152-86CD-11de-8BF4-ADD456D89593), + pointer_default(unique) +] + +interface IWebUIDelegate2 : IWebUIDelegate +{ + /*! + @method desktopNotificationsDelegate: + @abstract Returns the notifications delegate object. + */ + HRESULT desktopNotificationsDelegate([out, retval] IWebDesktopNotificationsDelegate** result); +} diff --git a/WebKit/win/Interfaces/IWebUIDelegatePrivate.idl b/WebKit/win/Interfaces/IWebUIDelegatePrivate.idl index da8269b..e09aac4 100755 --- a/WebKit/win/Interfaces/IWebUIDelegatePrivate.idl +++ b/WebKit/win/Interfaces/IWebUIDelegatePrivate.idl @@ -48,8 +48,8 @@ interface IWebView; ] interface IWebUIDelegatePrivate : IUnknown { - HRESULT webViewResizerRect([in] IWebView* sender, [out, retval] RECT* rect); - HRESULT webViewDrawResizer([in] IWebView* sender, [in] HDC dc, [in] BOOL overlapsContent, [in] RECT* rect); + HRESULT unused1(); + HRESULT unused2(); HRESULT webViewScrolled([in] IWebView* sender); HRESULT webViewAddMessageToConsole([in] IWebView* sender, [in] BSTR message, [in] int lineNumber, [in] BSTR url, [in] BOOL isError); HRESULT webViewShouldInterruptJavaScript([in] IWebView* sender, [out, retval] BOOL* result); @@ -60,8 +60,38 @@ interface IWebUIDelegatePrivate : IUnknown HRESULT webViewPainted([in] IWebView* sender); HRESULT exceededDatabaseQuota([in] IWebView* sender, [in] IWebFrame* frame, [in] IWebSecurityOrigin* origin, [in] BSTR databaseIdentifier); HRESULT embeddedViewWithArguments([in] IWebView* sender, [in] IWebFrame* frame, [in] IPropertyBag* arguments, [out, retval] IWebEmbeddedView** view); - HRESULT webViewSendResizeMessage([in] UINT uMsg, [in] WPARAM wParam, [in] LPARAM lParam); + HRESULT unused3(); HRESULT webViewClosing([in] IWebView* sender); HRESULT webViewSetCursor([in] IWebView* sender, [in] OLE_HANDLE cursor); HRESULT webViewDidInvalidate([in] IWebView* sender); } + +cpp_quote("#define WebWindowFeaturesXKey L\"x\"") +cpp_quote("#define WebWindowFeaturesYKey L\"y\"") +cpp_quote("#define WebWindowFeaturesWidthKey L\"width\"") +cpp_quote("#define WebWindowFeaturesHeightKey L\"height\"") +cpp_quote("#define WebWindowFeaturesMenuBarVisibleKey L\"menuBarVisible\"") +cpp_quote("#define WebWindowFeaturesStatusBarVisibleKey L\"statusBarVisible\"") +cpp_quote("#define WebWindowFeaturesToolBarVisibleKey L\"toolBarVisible\"") +cpp_quote("#define WebWindowFeaturesScrollbarsVisibleKey L\"scrollbarsVisible\"") +cpp_quote("#define WebWindowFeaturesResizableKey L\"resizable\"") +cpp_quote("#define WebWindowFeaturesFullscreenKey L\"fullscreen\"") +cpp_quote("#define WebWindowFeaturesDialogKey L\"dialog\"") + +[ + object, + oleautomation, + uuid(b7d6a98e-9c4f-43f2-b6a7-0975a0b18421), + pointer_default(unique) +] +interface IWebUIDelegatePrivate2 : IWebUIDelegatePrivate +{ + // This function obsoletes IWebUIDelegate::createWebViewWithRequest and + // IWebUIDelegate::createModalDialog. Clients should determine whether to create a modal dialog + // based on whether WebWindowFeaturesDialogKey returns a TRUE value from the windowFeatures + // IPropertyBag. The keys of the windowFeatures IPropertyBag are the WebWindowFeatures*Key + // strings above. + HRESULT createWebViewWithRequest([in] IWebView* sender, [in] IWebURLRequest* request, [in] IPropertyBag* windowFeatures, [out, retval] IWebView** newWebView); + + HRESULT drawBackground([in] IWebView* sender, [in] OLE_HANDLE hdc, [in] const RECT* dirtyRect); +} diff --git a/WebKit/win/Interfaces/IWebView.idl b/WebKit/win/Interfaces/IWebView.idl index 04e996c..bec4df5 100644 --- a/WebKit/win/Interfaces/IWebView.idl +++ b/WebKit/win/Interfaces/IWebView.idl @@ -29,6 +29,7 @@ cpp_quote("enum WebViewCmd { Cut = 100, Copy, Paste, ForwardDelete, SelectAll, U cpp_quote("#define WebViewProgressStartedNotification TEXT(\"WebProgressStartedNotification\")") cpp_quote("#define WebViewProgressEstimateChangedNotification TEXT(\"WebProgressEstimateChangedNotification\")") cpp_quote("#define WebViewProgressFinishedNotification TEXT(\"WebProgressFinishedNotification\")") +cpp_quote("#define WebViewDidChangeSelectionNotification TEXT(\"WebViewDidChangeSelectionNotification\")") #ifndef DO_NO_IMPORTS import "oaidl.idl"; @@ -872,6 +873,11 @@ interface IWebIBActions : IUnknown - (IBAction)resetPageZoom:(id)sender; */ HRESULT resetPageZoom([in] IUnknown* sender); + + /* + - (IBAction)reloadFromOrigin:(id)sender; + */ + HRESULT reloadFromOrigin([in] IUnknown* sender); } /* diff --git a/WebKit/win/Interfaces/IWebViewPrivate.idl b/WebKit/win/Interfaces/IWebViewPrivate.idl index e4680a1..465d804 100644 --- a/WebKit/win/Interfaces/IWebViewPrivate.idl +++ b/WebKit/win/Interfaces/IWebViewPrivate.idl @@ -29,15 +29,26 @@ import "ocidl.idl"; import "IWebFormDelegate.idl"; import "IWebFrameLoadDelegatePrivate.idl"; import "IWebInspector.idl"; +import "IWebInspectorPrivate.idl"; #endif +// Sent when IWebView::close is called. No userInfo is associated with this notification. +cpp_quote("#define WebViewWillCloseNotification L\"WebViewWillCloseNotification\"") + interface IEnumTextMatches; interface IWebFormDelegate; interface IWebFrameLoadDelegatePrivate; interface IWebInspector; +interface IWebInspectorPrivate; +interface IWebPluginHalterDelegate; interface IWebURLRequest; interface IWebView; +typedef enum { + WebInjectAtDocumentStart = 0, + WebInjectAtDocumentEnd, +} WebUserScriptInjectionTime; + [ object, oleautomation, @@ -161,4 +172,40 @@ interface IWebViewPrivate : IUnknown HRESULT setJavaScriptURLsAreAllowed([in] BOOL areAllowed); HRESULT setCanStartPlugins([in] BOOL canStartPlugins); + + /*! + @method MIMETypeForExtension: + @abstract Returns the mime type for a certian file extension. + @param path The extension of the file to check. + @result The mime type of the specified extension. + + (BSTR)MIMETypeForPath:(NSString *)path; + */ + 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, + [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, + [in] unsigned whitelistCount, [in, size_is(whitelistCount)] BSTR* whitelist, + [in] unsigned blacklistCount, [in, size_is(blacklistCount)] BSTR* blacklist); + HRESULT removeUserContentWithURLFromGroup([in] BSTR groupName, [in] unsigned worldID, [in] BSTR url); + HRESULT removeUserContentFromGroup([in] BSTR groupName, [in] unsigned worldID); + HRESULT removeAllUserContentFromGroup([in] BSTR groupName); + + HRESULT setPluginHalterDelegate([in] IWebPluginHalterDelegate* d); + HRESULT pluginHalterDelegate([retval, out] IWebPluginHalterDelegate** d); + + // If rect is 0, the entire backing store will be invalidated. + HRESULT invalidateBackingStore([in] const RECT* rect); + + // Whitelists access from an origin (sourceOrigin) to a set of one or more origins described by the parameters: + // - destinationProtocol: The protocol to grant access to. + // - destinationHost: The host to grant access to. + // - allowDestinationSubdomains: If host is a domain, setting this to YES will whitelist host and all its subdomains, recursively. + HRESULT whiteListAccessFromOrigin([in] BSTR sourceOrigin, [in] BSTR destinationProtocol, [in] BSTR destinationHost, [in] BOOL allowDestinationSubdomains); + + // Removes all white list entries created with whiteListAccessFromOrigin. + HRESULT resetOriginAccessWhiteLists(); } diff --git a/WebKit/win/Interfaces/IWebWorkersPrivate.idl b/WebKit/win/Interfaces/IWebWorkersPrivate.idl new file mode 100644 index 0000000..990b8f7 --- /dev/null +++ b/WebKit/win/Interfaces/IWebWorkersPrivate.idl @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2009 Google 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: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 THE COPYRIGHT + * OWNER OR 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 + +/*! + @class WebWorkersPrivate + @discussion WebWorkersPrivate exposes internals about WebWorkers for use in + layout tests. +*/ +[ + object, + oleautomation, + hidden, + uuid(537069C5-389C-41ae-9A82-423ACA8B2C02), + pointer_default(unique) +] + +interface IWebWorkersPrivate : IUnknown +{ + HRESULT workerThreadCount([out, retval] UINT* number); +} diff --git a/WebKit/win/Interfaces/WebKit.idl b/WebKit/win/Interfaces/WebKit.idl index 3a6fd8d..c9b33cc 100644 --- a/WebKit/win/Interfaces/WebKit.idl +++ b/WebKit/win/Interfaces/WebKit.idl @@ -73,6 +73,7 @@ import "ocidl.idl"; #include "IWebCoreStatistics.idl" #include "IWebDataSource.idl" #include "IWebDatabaseManager.idl" +#include "IWebDesktopNotificationsDelegate.idl" #include "IWebDocument.idl" #include "IWebDownload.idl" #include "IWebEditingDelegate.idl" @@ -83,6 +84,7 @@ import "ocidl.idl"; #include "IWebFrame.idl" #include "IWebFrameLoadDelegate.idl" #include "IWebFrameLoadDelegatePrivate.idl" +#include "IWebFrameLoadDelegatePrivate2.idl" #include "IWebFramePrivate.idl" #include "IWebFrameView.idl" #include "IWebHTMLRepresentation.idl" @@ -94,13 +96,16 @@ import "ocidl.idl"; #include "IWebIconDatabase.idl" #include "IWebIconFetcher.idl" #include "IWebInspector.idl" +#include "IWebInspectorPrivate.idl" #include "IWebJavaScriptCollector.idl" #include "IWebKitStatistics.idl" #include "IWebMutableURLRequestPrivate.idl" #include "IWebNotification.idl" #include "IWebNotificationCenter.idl" #include "IWebNotificationObserver.idl" +#include "IWebPluginHalterDelegate.idl" #include "IWebPolicyDelegate.idl" +#include "IWebPolicyDelegatePrivate.idl" #include "IWebPreferences.idl" #include "IWebPreferencesPrivate.idl" #include "IWebResource.idl" @@ -111,6 +116,7 @@ import "ocidl.idl"; #include "IWebSecurityOrigin.idl" #include "IWebTextRenderer.idl" #include "IWebUIDelegate.idl" +#include "IWebUIDelegate2.idl" #include "IWebUIDelegatePrivate.idl" #include "IWebURLAuthenticationChallenge.idl" #include "IWebURLRequest.idl" @@ -121,6 +127,7 @@ import "ocidl.idl"; #include "IWebUndoTarget.idl" #include "IWebView.idl" #include "IWebViewPrivate.idl" +#include "IWebWorkersPrivate.idl" #include "IGEN_DOMObject.idl" #include "IGEN_DOMCharacterData.idl" @@ -357,6 +364,10 @@ library WebKit coclass WebCookieManager{ [default] interface IWebCookieManager; } -} + [uuid(0967AAFF-2FFE-4fcc-81F3-3FF2A9C6DCE2)] + coclass WebWorkersPrivate{ + [default] interface IWebWorkersPrivate; + } +} |