diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:41 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:41 -0800 |
commit | 648161bb0edfc3d43db63caed5cc5213bc6cb78f (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /WebKit/win/Interfaces | |
parent | a65af38181ac7d34544586bdb5cd004de93897ad (diff) | |
download | external_webkit-648161bb0edfc3d43db63caed5cc5213bc6cb78f.zip external_webkit-648161bb0edfc3d43db63caed5cc5213bc6cb78f.tar.gz external_webkit-648161bb0edfc3d43db63caed5cc5213bc6cb78f.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'WebKit/win/Interfaces')
70 files changed, 0 insertions, 11373 deletions
diff --git a/WebKit/win/Interfaces/DOMCSS.idl b/WebKit/win/Interfaces/DOMCSS.idl deleted file mode 100644 index 3727018..0000000 --- a/WebKit/win/Interfaces/DOMCSS.idl +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "DOMCore.idl"; -import "IWebScriptObject.idl"; -#endif - -interface IDOMObject; -interface IDOMCSSValue; -interface IDOMCSSStyleDeclaration; -interface IDOMCSSStyleSheet; -interface IDOMCSSRule; -interface IDOMElement; - -/* - @interface DOMDocument (DOMViewCSS) -*/ -[ - object, - oleautomation, - uuid(43EFE238-A4DF-400a-983D-FCE0C0F56BCD), - pointer_default(unique) -] -interface IDOMViewCSS : IUnknown -{ - /* - - (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt; - */ - HRESULT getComputedStyle([in] IDOMElement* elt, [in] BSTR pseudoElt, [out, retval] IDOMCSSStyleDeclaration** result); -} - -/* - @interface DOMCSSRuleList : DOMObject -*/ -[ - object, - oleautomation, - uuid(D45DA43D-5EDB-4315-A097-3ED3FA089193), - pointer_default(unique) -] -interface IDOMCSSRuleList : IDOMObject -{ - /* - - (unsigned)length; - */ - HRESULT length([out, retval] UINT* result); - - /* - - (DOMCSSRule *)item:(unsigned)index; - */ - HRESULT item([in] UINT index, [out, retval] IDOMCSSRule** result); -} - -/* - @interface DOMCSSRule : DOMObject -*/ -[ - object, - oleautomation, - uuid(05947A31-9E1C-4c98-8608-6688959D6542), - pointer_default(unique) -] -interface IDOMCSSRule : IDOMObject -{ - /* - - (unsigned short)type; - */ - HRESULT type([out, retval] unsigned short* result); - - /* - - (NSString *)cssText; - */ - HRESULT cssText([out, retval] BSTR* text); - - /* - - (void)setCssText:(NSString *)cssText; - */ - HRESULT setCssText([in] BSTR cssText); - - /* - - (DOMCSSStyleSheet *)parentStyleSheet; - */ - HRESULT parentStyleSheet([out, retval] IDOMCSSStyleSheet** sheet); - - /* - - (DOMCSSRule *)parentRule; - */ - HRESULT parentRule([out, retval] IDOMCSSRule** rule); -} - -/* - @interface DOMCSSStyleDeclaration : DOMObject -*/ -[ - object, - oleautomation, - uuid(DBBE9A6B-D505-4647-B4AB-40A7CF3EE63E), - pointer_default(unique) -] -interface IDOMCSSStyleDeclaration : IDOMObject -{ - /* - - (NSString *)cssText; - */ - HRESULT cssText([out, retval] BSTR* result); - - /* - - (void)setCssText:(NSString *)cssText; - */ - HRESULT setCssText([in] BSTR cssText); - - /* - - (NSString *)getPropertyValue:(NSString *)propertyName; - */ - HRESULT getPropertyValue([in] BSTR propertyName, [out, retval] BSTR* result); - - /* - - (DOMCSSValue *)getPropertyCSSValue:(NSString *)propertyName; - */ - HRESULT getPropertyCSSValue([in] BSTR propertyName, [out, retval] IDOMCSSValue** result); - - /* - - (NSString *)removeProperty:(NSString *)propertyName; - */ - HRESULT removeProperty([in] BSTR propertyName, [out, retval] BSTR* result); - - /* - - (NSString *)getPropertyPriority:(NSString *)propertyName; - */ - HRESULT getPropertyPriority([in] BSTR propertyName, [out, retval] BSTR* result); - - /* - - (void)setProperty:(NSString *)propertyName :(NSString *)value :(NSString *)priority; - */ - HRESULT setProperty([in] BSTR propertyName, [in] BSTR value, [in] BSTR priority); - - /* - - (unsigned)length; - */ - HRESULT length([out, retval] UINT* result); - - /* - - (NSString *)item:(unsigned)index; - */ - HRESULT item([in] UINT index, [out, retval] BSTR* result); - - /* - - (DOMCSSRule *)parentRule; - */ - HRESULT parentRule([out, retval] IDOMCSSRule** result); -} - -/* - @interface DOMCSSValue : DOMObject -*/ -[ - object, - oleautomation, - uuid(51D29553-2AF7-4f52-AFE6-3C59196A8BAA), - pointer_default(unique) -] -interface IDOMCSSValue : IDOMObject -{ - /* - - (NSString *)cssText; - */ - HRESULT cssText([out, retval] BSTR* text); - - /* - - (void)setCssText:(NSString *)cssText; - */ - HRESULT setCssText([in] BSTR text); - - /* - - (unsigned short)cssValueType; - */ - HRESULT cssValueType([out, retval] unsigned short *valueType); -} - -/* - @interface DOMCSSStyleSheet : DOMStyleSheet -*/ -[ - object, - oleautomation, - uuid(14B1C213-1458-48a1-AD8F-54BFE64F9ECF), - pointer_default(unique) -] -interface IDOMCSSStyleSheet : IDOMObject -{ - /* - - (DOMCSSRule *)ownerRule; - */ - HRESULT ownerRule([out, retval] IDOMCSSRule** rule); - - /* - - (DOMCSSRuleList *)cssRules; - */ - HRESULT cssRules([out, retval] IDOMCSSRuleList** ruleList); - - /* - - (unsigned)insertRule:(NSString *)rule :(unsigned)index; - */ - HRESULT insertRule([in] BSTR rule, [in] UINT index, [out, retval] UINT* result); - - /* - - (void)deleteRule:(unsigned)index; - */ - HRESULT deleteRule([in] UINT index); -} - -/* - @interface DOMElement (DOMElementCSSInlineStyle) -*/ -[ - object, - oleautomation, - uuid(585127E2-D698-44c4-83EC-4D1E6E07E90D), - pointer_default(unique) -] -interface IDOMElementCSSInlineStyle : IUnknown -{ - /* - - (DOMCSSStyleDeclaration *)style; - */ - HRESULT style([out, retval] IDOMCSSStyleDeclaration** result); -} diff --git a/WebKit/win/Interfaces/DOMCore.idl b/WebKit/win/Interfaces/DOMCore.idl deleted file mode 100644 index 09f61fb..0000000 --- a/WebKit/win/Interfaces/DOMCore.idl +++ /dev/null @@ -1,828 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebScriptObject.idl"; -#endif - -interface IWebScriptObject; -interface IDOMNodeList; -interface IDOMNamedNodeMap; -interface IDOMDocumentType; -interface IDOMElement; -interface IDOMDocumentFragment; -interface IDOMText; -interface IDOMComment; -interface IDOMCDATASection; -interface IDOMProcessingInstruction; -interface IDOMAttr; -interface IDOMEntityReference; -interface IDOMDocument; -interface IDOMCSSStyleDeclaration; -/* - @interface DOMObject : WebScriptObject <NSCopying> -*/ -[ - object, - oleautomation, - uuid(A27FA225-F34E-425d-88EB-A35BD105A527), - pointer_default(unique) -] -interface IDOMObject : IWebScriptObject -{ -} - -/* - @interface DOMImplementation : DOMObject -*/ -[ - object, - oleautomation, - uuid(6E48C25D-E542-4d1a-BC73-ACDC21E39C56), - pointer_default(unique) -] -interface IDOMImplementation : IDOMObject -{ - /* - - (BOOL)hasFeature:(NSString *)feature :(NSString *)version; - */ - HRESULT hasFeature([in] BSTR feature, [in] BSTR version, [out, retval] BOOL* result); - - /* - - (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName :(NSString *)publicId :(NSString *)systemId; - */ - HRESULT createDocumentType([in] BSTR qualifiedName, [in] BSTR publicId, [in] BSTR systemId, [out, retval] IDOMDocumentType** result); - - /* - - (DOMDocument *)createDocument:(NSString *)namespaceURI :(NSString *)qualifiedName :(DOMDocumentType *)doctype; - */ - HRESULT createDocument([in] BSTR namespaceURI, [in] BSTR qualifiedName, [in] IDOMDocumentType* doctype, [out, retval] IDOMDocument** result); -} - -/* - @interface DOMNode : DOMObject <DOMEventTarget> -*/ -[ - object, - oleautomation, - uuid(3EEA3E20-72DA-4be7-954F-79B5A14AD726), - pointer_default(unique) -] -interface IDOMNode : IDOMObject -{ - /* - - (NSString *)nodeName; - */ - HRESULT nodeName([out, retval] BSTR* result); - - /* - - (NSString *)nodeValue; - */ - HRESULT nodeValue([out, retval] BSTR* result); - - /* - - (void)setNodeValue:(NSString *)string; - */ - HRESULT setNodeValue([in] BSTR value); - - /* - - (unsigned short)nodeType; - */ - HRESULT nodeType([out, retval] unsigned short* result); - - /* - - (DOMNode *)parentNode; - */ - HRESULT parentNode([out, retval] IDOMNode** result); - - /* - - (DOMNodeList *)childNodes; - */ - HRESULT childNodes([out, retval] IDOMNodeList** result); - - /* - - (DOMNode *)firstChild; - */ - HRESULT firstChild([out, retval] IDOMNode** result); - - /* - - (DOMNode *)lastChild; - */ - HRESULT lastChild([out, retval] IDOMNode** result); - - /* - - (DOMNode *)previousSibling; - */ - HRESULT previousSibling([out, retval] IDOMNode** result); - - /* - - (DOMNode *)nextSibling; - */ - HRESULT nextSibling([out, retval] IDOMNode** result); - - /* - - (DOMNamedNodeMap *)attributes; - */ - HRESULT attributes([out, retval] IDOMNamedNodeMap** result); - - /* - - (DOMDocument *)ownerDocument; - */ - HRESULT ownerDocument([out, retval] IDOMDocument** result); - - /* - - (DOMNode *)insertBefore:(DOMNode *)newChild :(DOMNode *)refChild; - */ - HRESULT insertBefore([in] IDOMNode* newChild, [in] IDOMNode* refChild, [out, retval] IDOMNode** result); - - /* - - (DOMNode *)replaceChild:(DOMNode *)newChild :(DOMNode *)oldChild; - */ - HRESULT replaceChild([in] IDOMNode* newChild, [in] IDOMNode* oldChild, [out, retval] IDOMNode** result); - - /* - - (DOMNode *)removeChild:(DOMNode *)oldChild; - */ - HRESULT removeChild([in] IDOMNode* oldChild, [out, retval] IDOMNode** result); - - /* - - (DOMNode *)appendChild:(DOMNode *)newChild; - */ - HRESULT appendChild([in] IDOMNode* oldChild, [out, retval] IDOMNode** result); - - /* - - (BOOL)hasChildNodes; - */ - HRESULT hasChildNodes([out, retval] BOOL* result); - - /* - - (DOMNode *)cloneNode:(BOOL)deep; - */ - HRESULT cloneNode([in] BOOL deep, [out, retval] IDOMNode** result); - - /* - - (void)normalize; - */ - HRESULT normalize(); - - /* - - (BOOL)isSupported:(NSString *)feature :(NSString *)version; - */ - HRESULT isSupported([in] BSTR feature, [in] BSTR version, [out, retval] BOOL* result); - - /* - - (NSString *)namespaceURI; - */ - HRESULT namespaceURI([out, retval] BSTR* result); - - /* - - (NSString *)prefix; - */ - HRESULT prefix([out, retval] BSTR* result); - - /* - - (void)setPrefix:(NSString *)prefix; - */ - HRESULT setPrefix([in] BSTR prefix); - - /* - - (NSString *)localName; - */ - HRESULT localName([out, retval] BSTR* result); - - /* - - (BOOL)hasAttributes; - */ - HRESULT hasAttributes([out, retval] BOOL* result); - - /* - - (BOOL)isSameNode:(DOMNode *)other; - */ - HRESULT isSameNode([in] IDOMNode* other, [out, retval] BOOL* result); - - /* - - (BOOL)isEqualNode:(DOMNode *)other; - */ - HRESULT isEqualNode([in] IDOMNode* other, [out, retval] BOOL* result); - - /* - - (NSString *)textContent; - */ - HRESULT textContent([out, retval] BSTR* result); - - /* - - (void)setTextContent:(NSString *)text; - */ - HRESULT setTextContent([in] BSTR text); -} - -/* - @interface DOMNodeList : DOMObject -*/ -[ - object, - oleautomation, - uuid(10A05A96-CBD9-4493-83AD-FAFB952615CE), - pointer_default(unique) -] -interface IDOMNodeList : IDOMObject -{ - /* - - (DOMNode *)item:(unsigned)index; - */ - HRESULT item([in] UINT index, [out, retval] IDOMNode** result); - - /* - - (unsigned)length; - */ - HRESULT length([out, retval] UINT* result); -} - -/* - @interface DOMNamedNodeMap : DOMObject -*/ -[ - object, - oleautomation, - uuid(E6CBF396-C9F9-431b-A8D6-BCB525067E9F), - pointer_default(unique) -] -interface IDOMNamedNodeMap : IDOMObject -{ - /* - - (DOMNode *)getNamedItem:(NSString *)name; - */ - HRESULT getNamedItem([in] BSTR name, [out, retval] IDOMNode** result); - - /* - - (DOMNode *)setNamedItem:(DOMNode *)arg; - */ - HRESULT setNamedItem([in] IDOMNode* arg, [out, retval] IDOMNode** result); - - /* - - (DOMNode *)removeNamedItem:(NSString *)name; - */ - HRESULT removeNamedItem([in] BSTR name, [out, retval] IDOMNode** result); - - /* - - (DOMNode *)item:(unsigned)index; - */ - HRESULT item([in] UINT index, [out, retval] IDOMNode** result); - - /* - - (unsigned)length; - */ - HRESULT length([out, retval] UINT* result); - - /* - - (DOMNode *)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName; - */ - HRESULT getNamedItemNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMNode** result); - - /* - - (DOMNode *)setNamedItemNS:(DOMNode *)arg; - */ - HRESULT setNamedItemNS([in] IDOMNode* arg, [out, retval] IDOMNode** result); - - /* - - (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName; - */ - HRESULT removeNamedItemNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMNode** result); -} - -/* - @interface DOMDocument : IDOMNode -*/ -[ - object, - oleautomation, - uuid(A83C2C44-0BAC-45c7-8E17-6A49975D5CCA), - pointer_default(unique) -] -interface IDOMDocument : IDOMNode -{ - /* - - (DOMDocumentType *)doctype; - */ - HRESULT doctype([out, retval] IDOMDocumentType** result); - - /* - - (DOMImplementation *)implementation; - */ - HRESULT implementation([out, retval] IDOMImplementation** result); - - /* - - (DOMElement *)documentElement; - */ - HRESULT documentElement([out, retval] IDOMElement** result); - - /* - - (DOMElement *)createElement:(NSString *)tagName; - */ - HRESULT createElement([in] BSTR tagName, [out, retval] IDOMElement** result); - - /* - - (DOMDocumentFragment *)createDocumentFragment; - */ - HRESULT createDocumentFragment([out, retval] IDOMDocumentFragment** result); - - /* - - (DOMText *)createTextNode:(NSString *)data; - */ - HRESULT createTextNode([in] BSTR data, [out, retval] IDOMText** result); - - /* - - (DOMComment *)createComment:(NSString *)data; - */ - HRESULT createComment([in] BSTR data, [out, retval] IDOMComment** result); - - /* - - (DOMCDATASection *)createCDATASection:(NSString *)data; - */ - HRESULT createCDATASection([in] BSTR data, [out, retval] IDOMCDATASection** result); - - /* - - (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target :(NSString *)data; - */ - HRESULT createProcessingInstruction([in] BSTR target, [in] BSTR data, [out, retval] IDOMProcessingInstruction** result); - - /* - - (DOMAttr *)createAttribute:(NSString *)name; - */ - HRESULT createAttribute([in] BSTR name, [out, retval] IDOMAttr** result); - - /* - - (DOMEntityReference *)createEntityReference:(NSString *)name; - */ - HRESULT createEntityReference([in] BSTR name, [out, retval] IDOMEntityReference** result); - - /* - - (DOMNodeList *)getElementsByTagName:(NSString *)tagname; - */ - HRESULT getElementsByTagName([in] BSTR tagName, [out, retval] IDOMNodeList** result); - - /* - - (DOMNode *)importNode:(DOMNode *)importedNode :(BOOL)deep; - */ - HRESULT importNode([in] IDOMNode* importedNode, [in] BOOL deep, [out, retval] IDOMNode** result); - - /* - - (DOMElement *)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName; - */ - HRESULT createElementNS([in] BSTR namespaceURI, [in] BSTR qualifiedName, [out, retval] IDOMElement** result); - - /* - - (DOMAttr *)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName; - */ - HRESULT createAttributeNS([in] BSTR namespaceURI, [in] BSTR qualifiedName, [out, retval] IDOMAttr** result); - - /* - - (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName; - */ - HRESULT getElementsByTagNameNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMNodeList** result); - - /* - - (DOMElement *)getElementById:(NSString *)elementId; - */ - HRESULT getElementById([in] BSTR elementId, [out, retval] IDOMElement** result); -} - -/* - @interface DOMCharacterData : IDOMNode -*/ -[ - object, - oleautomation, - uuid(F4DED047-FE61-461a-BDBD-BB87F79DB713), - pointer_default(unique) -] -interface IDOMCharacterData : IDOMNode -{ - /* - - (NSString *)data; - */ - HRESULT data([out, retval] BSTR* result); - - /* - - (void)setData:(NSString *)data; - */ - HRESULT setData([in] BSTR data); - - /* - - (unsigned)length; - */ - HRESULT length([out, retval] UINT* result); - - /* - - (NSString *)substringData:(unsigned)offset :(unsigned)count; - */ - HRESULT substringData([in] UINT offset, [in] UINT count, [out, retval] BSTR* result); - - /* - - (void)appendData:(NSString *)arg; - */ - HRESULT appendData([in] BSTR arg); - - /* - - (void)insertData:(unsigned)offset :(NSString *)arg; - */ - HRESULT insertData([in] UINT offset, [in] BSTR arg); - - /* - - (void)deleteData:(unsigned)offset :(unsigned) count; - */ - HRESULT deleteData([in] UINT offset, [in] UINT count); - - /* - - (void)replaceData:(unsigned)offset :(unsigned)count :(NSString *)arg; - */ - HRESULT replaceData([in] UINT offset, [in] UINT count, [in] BSTR arg); -} - -/* - @interface DOMAttr : IDOMNode -*/ -[ - object, - oleautomation, - uuid(B587E098-8206-4b5a-A7DB-422F218571A0), - pointer_default(unique) -] -interface IDOMAttr : IDOMNode -{ - /* - - (NSString *)name; - */ - HRESULT name([out, retval] BSTR* result); - - /* - - (BOOL)specified; - */ - HRESULT specified([out, retval] BOOL* result); - - /* - - (NSString *)value; - */ - HRESULT value([out, retval] BSTR* value); - - /* - - (void)setValue:(NSString *)value; - */ - HRESULT setValue([in] BSTR value); - - /* - - (DOMElement *)ownerElement; - */ - HRESULT ownerElement([out, retval] IDOMElement** result); -} - -/* - @interface DOMElement : IDOMNode -*/ -[ - object, - oleautomation, - uuid(E053A35B-7775-4859-80EA-C35D02D145A2), - pointer_default(unique) -] -interface IDOMElement : IDOMNode -{ - /* - - (NSString *)tagName; - */ - HRESULT tagName([out, retval] BSTR* result); - - /* - - (NSString *)getAttribute:(NSString *)name; - */ - HRESULT getAttribute([in] BSTR name, [out, retval] BSTR* result); - - /* - - (void)setAttribute:(NSString *)name :(NSString *)value; - */ - HRESULT setAttribute([in] BSTR name, [in] BSTR value); - - /* - - (void)removeAttribute:(NSString *)name; - */ - HRESULT removeAttribute([in] BSTR name); - - /* - - (DOMAttr *)getAttributeNode:(NSString *)name; - */ - HRESULT getAttributeNode([in] BSTR name, [out, retval] IDOMAttr** result); - - /* - - (DOMAttr *)setAttributeNode:(DOMAttr *)newAttr; - */ - HRESULT setAttributeNode([in] IDOMAttr* newAttr, [out, retval] IDOMAttr** result); - - /* - - (DOMAttr *)removeAttributeNode:(DOMAttr *)oldAttr; - */ - HRESULT removeAttributeNode([in] IDOMAttr* oldAttr, [out, retval] IDOMAttr** result); - - /* - - (DOMNodeList *)getElementsByTagName:(NSString *)name; - */ - HRESULT getElementsByTagName([in] BSTR name, [out, retval] IDOMNodeList** result); - - /* - - (NSString *)getAttributeNS:(NSString *)namespaceURI :(NSString *)localName; - */ - HRESULT getAttributeNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] BSTR* result); - - /* - - (void)setAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName :(NSString *)value; - */ - HRESULT setAttributeNS([in] BSTR namespaceURI, [in] BSTR qualifiedName, [in] BSTR value); - - /* - - (void)removeAttributeNS:(NSString *)namespaceURI :(NSString *)localName; - */ - HRESULT removeAttributeNS([in] BSTR namespaceURI, [in] BSTR localName); - - /* - - (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI :(NSString *)localName; - */ - HRESULT getAttributeNodeNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMAttr** result); - - /* - - (DOMAttr *)setAttributeNodeNS:(DOMAttr *)newAttr; - */ - HRESULT setAttributeNodeNS([in] IDOMAttr* newAttr, [out, retval] IDOMAttr** result); - - /* - - (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName; - */ - HRESULT getElementsByTagNameNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMNodeList** result); - - /* - - (BOOL)hasAttribute:(NSString *)name; - */ - HRESULT hasAttribute([in] BSTR name, [out, retval] BOOL* result); - - /* - - (BOOL)hasAttributeNS:(NSString *)namespaceURI :(NSString *)localName; - */ - HRESULT hasAttributeNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] BOOL* result); - - /* - - (void)focus; - */ - HRESULT focus(); - - /* - - (void)blur; - */ - HRESULT blur(); -} - -/* - @interface DOMElement (DOMElementExtensions) -*/ -[ - object, - oleautomation, - uuid(98E481F5-4405-4c2a-BF77-1CE95FE5F992), - pointer_default(unique) -] -interface IDOMElementExtensions : IUnknown -{ - /* - - (int)offsetLeft; - */ - HRESULT offsetLeft([out, retval] int* result); - - /* - - (int)offsetTop; - */ - HRESULT offsetTop([out, retval] int* result); - - /* - - (int)offsetWidth; - */ - HRESULT offsetWidth([out, retval] int* result); - - /* - - (int)offsetHeight; - */ - HRESULT offsetHeight([out, retval] int* result); - - /* - - (DOMElement *)offsetParent; - */ - HRESULT offsetParent([out, retval] IDOMElement** result); - - /* - - (int)clientWidth; - */ - HRESULT clientWidth([out, retval] int* result); - - /* - - (int)clientHeight; - */ - HRESULT clientHeight([out, retval] int* result); - - /* - - (int)scrollLeft; - */ - HRESULT scrollLeft([out, retval] int* result); - - /* - - (void)setScrollLeft:(int)newScrollLeft; - */ - HRESULT setScrollLeft([in] int newScrollLeft); - - /* - - (int)scrollTop; - */ - HRESULT scrollTop([out, retval] int* result); - - /* - - (void)setScrollTop:(int)newScrollTop; - */ - HRESULT setScrollTop([in] int newScrollTop); - - /* - - (int)scrollWidth; - */ - HRESULT scrollWidth([out, retval] int* result); - - /* - - (int)scrollHeight; - */ - HRESULT scrollHeight([out, retval] int* result); - - /* - - (void)scrollIntoView:(BOOL)alignWithTop; - */ - HRESULT scrollIntoView([in] BOOL alignWithTop); - - /* - - (void)scrollIntoViewIfNeeded:(BOOL)centerIfNeeded; - */ - HRESULT scrollIntoViewIfNeeded([in] BOOL centerIfNeeded); -} - -/* - @interface DOMText : DOMCharacterData -*/ -[ - object, - oleautomation, - uuid(74638F45-1AA0-4db5-958C-82066E00BD2B), - pointer_default(unique) -] -interface IDOMText : IDOMCharacterData -{ - /* - - (DOMText *)splitText:(unsigned)offset; - */ - HRESULT splitText([in] UINT offset, [out, retval] IDOMText** result); -} - -/* - @interface DOMComment : DOMCharacterData -*/ -[ - object, - oleautomation, - uuid(118002E8-847F-4b1a-968C-B25A6AC7B128), - pointer_default(unique) -] -interface IDOMComment : IDOMCharacterData -{ -} - -/* - @interface DOMCDATASection : DOMText -*/ -[ - object, - oleautomation, - uuid(31B506C1-45A3-4d72-815A-311B0A897E58), - pointer_default(unique) -] -interface IDOMCDATASection : IDOMText -{ -} - -/* - @interface DOMDocumentType : IDOMNode -*/ -[ - object, - oleautomation, - uuid(17FCE6EA-4164-4bd4-9DBF-0395FBF37FD3), - pointer_default(unique) -] -interface IDOMDocumentType : IDOMNode -{ - /* - - (NSString *)name; - */ - HRESULT name([out, retval] BSTR* result); - - /* - - (DOMNamedNodeMap *)entities; - */ - HRESULT entities([out, retval] IDOMNamedNodeMap** result); - - /* - - (DOMNamedNodeMap *)notations; - */ - HRESULT notations([out, retval] IDOMNamedNodeMap** result); - - /* - - (NSString *)publicId; - */ - HRESULT publicId([out, retval] BSTR* result); - - /* - - (NSString *)systemId; - */ - HRESULT systemId([out, retval] BSTR* result); - - /* - - (NSString *)internalSubset; - */ - HRESULT internalSubset([out, retval] BSTR* result); -} - -/* - @interface DOMEntityReference : IDOMNode -*/ -[ - object, - oleautomation, - uuid(0593CE45-15B2-44af-BBD0-5A1654F8240E), - pointer_default(unique) -] -interface IDOMEntityReference : IDOMNode -{ -} - -/* - @interface DOMProcessingInstruction : IDOMNode -*/ -[ - object, - oleautomation, - uuid(D99D2F48-ABF3-426a-9339-54681E1AFCA9), - pointer_default(unique) -] -interface IDOMProcessingInstruction : IDOMNode -{ - /* - - (NSString *)target; - */ - HRESULT target([out, retval] BSTR* result); - - /* - - (NSString *)data; - */ - HRESULT data([out, retval] BSTR* result); - - /* - - (void)setData:(NSString *)data; - */ - HRESULT setData([in] BSTR data); -} - -/* - @interface DOMDocumentFragment : IDOMNode -*/ -[ - object, - oleautomation, - uuid(09D35665-8396-4868-949E-8AA2407A6E10), - pointer_default(unique) -] -interface IDOMDocumentFragment : IDOMNode -{ -} diff --git a/WebKit/win/Interfaces/DOMEvents.idl b/WebKit/win/Interfaces/DOMEvents.idl deleted file mode 100644 index 3ff7fce..0000000 --- a/WebKit/win/Interfaces/DOMEvents.idl +++ /dev/null @@ -1,478 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "DOMCore.idl"; -import "DOMWindow.idl"; -#endif - -interface IDOMEvent; -interface IDOMEventException; -interface IDOMEventTarget; -interface IDOMKeyboardEvent; -interface IDOMMouseEvent; -interface IDOMMutationEvent; -interface IDOMNode; -interface IDOMOverflowEvent; -interface IDOMUIEvent; -interface IDOMWheelEvent; -interface IDOMWindow; - -typedef long long DOMTimeStamp; - -[ - object, - oleautomation, - uuid(7f8a0a96-f864-44fb-87fb-c5f03666e8e6), - pointer_default(unique) -] -interface IDOMEventListener : IDOMObject -{ - //void handleEvent(in Event evt); - HRESULT handleEvent([in] IDOMEvent* evt); -} - -[ - object, - oleautomation, - uuid(62343a9e-a779-4e91-818a-14fc178cf4c2), - pointer_default(unique) -] -interface IDOMEvent : IDOMObject -{ - // DOM PhaseType - const unsigned short DOMEVENT_CAPTURING_PHASE = 1; - const unsigned short DOMEVENT_AT_TARGET = 2; - const unsigned short DOMEVENT_BUBBLING_PHASE = 3; - - // Reverse-engineered from Netscape - const unsigned short DOMEVENT_MOUSEDOWN = 1; - const unsigned short DOMEVENT_MOUSEUP = 2; - const unsigned short DOMEVENT_MOUSEOVER = 4; - const unsigned short DOMEVENT_MOUSEOUT = 8; - const unsigned short DOMEVENT_MOUSEMOVE = 16; - const unsigned short DOMEVENT_MOUSEDRAG = 32; - const unsigned short DOMEVENT_CLICK = 64; - const unsigned short DOMEVENT_DBLCLICK = 128; - const unsigned short DOMEVENT_KEYDOWN = 256; - const unsigned short DOMEVENT_KEYUP = 512; - const unsigned short DOMEVENT_KEYPRESS = 1024; - const unsigned short DOMEVENT_DRAGDROP = 2048; - const unsigned short DOMEVENT_FOCUS = 4096; - const unsigned short DOMEVENT_BLUR = 8192; - const unsigned short DOMEVENT_SELECT = 16384; - const unsigned short DOMEVENT_CHANGE = 32768; - - //readonly attribute DOMString type; - HRESULT type([out, retval] BSTR* result); - - //readonly attribute EventTarget target; - HRESULT target([out, retval] IDOMEventTarget** result); - - //readonly attribute EventTarget currentTarget; - HRESULT currentTarget([out, retval] IDOMEventTarget** result); - - //readonly attribute unsigned short eventPhase; - HRESULT eventPhase([out, retval] unsigned short* result); - - //readonly attribute boolean bubbles; - HRESULT bubbles([out, retval] BOOL* result); - - //readonly attribute boolean cancelable; - HRESULT cancelable([out, retval] BOOL* result); - - //readonly attribute DOMTimeStamp timeStamp; - HRESULT timeStamp([out, retval] DOMTimeStamp* result); - - //void stopPropagation(); - HRESULT stopPropagation(); - - //void preventDefault(); - HRESULT preventDefault(); - - //[OldStyleObjC] void initEvent(in DOMString eventTypeArg, - // in boolean canBubbleArg, - // in boolean cancelableArg); - HRESULT initEvent([in] BSTR eventTypeArg, [in] BOOL canBubbleArg, [in] BOOL cancelableArg); -} - -[ - object, - oleautomation, - uuid(c7cf7d84-d755-40bc-b664-84bc79eff709), - pointer_default(unique) -] -interface IDOMEventTarget : IUnknown -{ - //void addEventListener(in DOMString type, - // in EventListener listener, - // in boolean useCapture); - HRESULT addEventListener([in] BSTR type, [in] IDOMEventListener* listener, [in] BOOL useCapture); - - //void removeEventListener(in DOMString type, - // in EventListener listener, - // in boolean useCapture); - HRESULT removeEventListener([in] BSTR type, [in] IDOMEventListener* listener, [in] BOOL useCapture); - - //boolean dispatchEvent(in Event event) - HRESULT dispatchEvent([in] IDOMEvent* event, [out, retval] BOOL* result); -} - -[ - object, - oleautomation, - uuid(55AAF192-68CD-409f-A551-89710DC7240A), - pointer_default(unique) -] -interface IDOMDocumentEvent : IUnknown -{ - //Event createEvent(in DOMString eventType) - // raises(DOMException); - HRESULT createEvent([in] BSTR eventType, [out, retval] IDOMEvent** result); -} - -[ - object, - oleautomation, - uuid(76bc4e46-67df-40d3-89b0-a94dcc2ed507), - pointer_default(unique) -] -interface IDOMKeyboardEvent : IDOMUIEvent -{ - // KeyLocationCode - const unsigned long DOMKEYBOARDEVENT_KEY_LOCATION_STANDARD = 0x00; - const unsigned long DOMKEYBOARDEVENT_KEY_LOCATION_LEFT = 0x01; - const unsigned long DOMKEYBOARDEVENT_KEY_LOCATION_RIGHT = 0x02; - const unsigned long DOMKEYBOARDEVENT_KEY_LOCATION_NUMPAD = 0x03; - - //readonly attribute DOMString keyIdentifier; - HRESULT keyIdentifier([out, retval] BSTR* result); - - //readonly attribute unsigned long keyLocation; - HRESULT keyLocation([out, retval] unsigned long* result); - - //readonly attribute boolean ctrlKey; - HRESULT ctrlKey([out, retval] BOOL* result); - - //readonly attribute boolean shiftKey; - HRESULT shiftKey([out, retval] BOOL* result); - - //readonly attribute boolean altKey; - HRESULT altKey([out, retval] BOOL* result); - - //readonly attribute boolean metaKey; - HRESULT metaKey([out, retval] BOOL* result); - - //readonly attribute boolean altGraphKey; - HRESULT altGraphKey([out, retval] BOOL* result); - - //boolean getModifierState(in DOMString keyIdentifierArg); - HRESULT getModifierState([in] BSTR keyIdentifierArg, [out, retval] BOOL* result); - - // FIXME: this does not match the version in the DOM spec. - //void initKeyboardEvent(in AtomicString type, - // in boolean canBubble, - // in boolean cancelable, - // in DOMWindow view, - // in DOMString keyIdentifier, - // in unsigned long keyLocation, - // in boolean ctrlKey, - // in boolean altKey, - // in boolean shiftKey, - // in boolean metaKey, - // in boolean altGraphKey); - HRESULT initKeyboardEvent([in] BSTR type, [in] BOOL canBubble, [in] BOOL cancelable, [in] IDOMWindow* view, [in] BSTR keyIdentifier, [in] unsigned long keyLocation, [in] BOOL ctrlKey, [in] BOOL altKey, [in] BOOL shiftKey, [in] BOOL metaKey, [in] BOOL graphKey); - - // WebKit Extensions - //readonly attribute long keyCode; - //HRESULT keyCode([out, retval] long* result); - - //readonly attribute long charCode; - //HRESULT charCode([out, retval] long* result); - - //void initKeyboardEvent(in AtomicString type, - // in boolean canBubble, - // in boolean cancelable, - // in DOMWindow view, - // in DOMString keyIdentifier, - // in unsigned long keyLocation, - // in boolean ctrlKey, - // in boolean altKey, - // in boolean shiftKey, - // in boolean metaKey); -} - -[ - object, - oleautomation, - uuid(bdd97151-5f6a-4ba4-a902-9b008392eb54), - pointer_default(unique) -] -interface IDOMMouseEvent : IDOMUIEvent -{ - //readonly attribute long screenX; - HRESULT screenX([out, retval] long* result); - - //readonly attribute long screenY; - HRESULT screenY([out, retval] long* result); - - //readonly attribute long clientX; - HRESULT clientX([out, retval] long* result); - - //readonly attribute long clientY; - HRESULT clientY([out, retval] long* result); - - //readonly attribute boolean ctrlKey; - HRESULT ctrlKey([out, retval] BOOL* result); - - //readonly attribute boolean shiftKey; - HRESULT shiftKey([out, retval] BOOL* result); - - //readonly attribute boolean altKey; - HRESULT altKey([out, retval] BOOL* result); - - //readonly attribute boolean metaKey; - HRESULT metaKey([out, retval] BOOL* result); - - //readonly attribute unsigned short button; - HRESULT button([out, retval] unsigned short* result); - - //readonly attribute EventTarget relatedTarget; - HRESULT relatedTarget([out, retval] IDOMEventTarget** result); - - //[OldStyleObjC] void initMouseEvent(in AtomicString type, - // in boolean canBubble, - // in boolean cancelable, - // in DOMWindow view, - // in long detail, - // in long screenX, - // in long screenY, - // in long clientX, - // in long clientY, - // in boolean ctrlKey, - // in boolean altKey, - // in boolean shiftKey, - // in boolean metaKey, - // in unsigned short button, - // in EventTarget relatedTarget); - HRESULT initMouseEvent([in] BSTR type, [in] BOOL canBubble, [in] BOOL cancelable, [in] IDOMWindow* view, [in] long detail, [in] long screenX, [in] long screenY, [in] long clientX, [in] long clientY, [in] BOOL ctrlKey, [in] BOOL altKey, [in] BOOL shiftKey, [in] BOOL metaKey, [in] unsigned short button, [in] IDOMEventTarget* relatedTarget); - - // extensions - //readonly attribute long offsetX; - HRESULT offsetX([out, retval] long* result); - - //readonly attribute long offsetY; - HRESULT offsetY([out, retval] long* result); - - //readonly attribute long x; - HRESULT x([out, retval] long* result); - - //readonly attribute long y; - HRESULT y([out, retval] long* result); - - //readonly attribute Node fromElement; - HRESULT fromElement([out, retval] IDOMNode** result); - - //readonly attribute Node toElement; - HRESULT toElement([out, retval] IDOMNode** result); -} - -[ - object, - oleautomation, - uuid(6345d228-ea67-48ee-93c8-ff6e9c6356e9), - pointer_default(unique) -] -interface IDOMMutationEvent : IDOMEvent -{ - // attrChangeType - const unsigned short DOMMUTATIONEVENT_MODIFICATION = 1; - const unsigned short DOMMUTATIONEVENT_ADDITION = 2; - const unsigned short DOMMUTATIONEVENT_REMOVAL = 3; - - //readonly attribute Node relatedNode; - HRESULT relatedNode([out, retval] IDOMNode** result); - - //readonly attribute DOMString prevValue; - HRESULT prevValue([out, retval] BSTR* result); - - //readonly attribute DOMString newValue; - HRESULT newValue([out, retval] BSTR* result); - - //readonly attribute DOMString attrName; - HRESULT attrName([out, retval] BSTR* result); - - //readonly attribute unsigned short attrChange; - HRESULT attrChange([out, retval] unsigned short* result); - - //[OldStyleObjC] void initMutationEvent(in AtomicString type, - // in boolean canBubble, - // in boolean cancelable, - // in Node relatedNode, - // in DOMString prevValue, - // in DOMString newValue, - // in DOMString attrName, - // in unsigned short attrChange); - HRESULT initMutationEvent([in] BSTR type, [in] BOOL canBubble, [in] BOOL cancelable, [in] IDOMNode* relatedNode, [in] BSTR prevValue, [in] BSTR newValue, [in] BSTR attrName, [in] unsigned short attrChange); -} - -[ - object, - oleautomation, - uuid(6048369e-e444-401b-950d-c9daef9384d2), - pointer_default(unique) -] -interface IDOMOverflowEvent : IDOMEvent -{ - const unsigned short DOMOVERFLOWEVENT_HORIZONTAL = 0; - const unsigned short DOMOVERFLOWEVENT_VERTICAL = 1; - const unsigned short DOMOVERFLOWEVENT_BOTH = 2; - - //readonly attribute unsigned short orient; - HRESULT orient([out, retval] unsigned short* result); - - //readonly attribute boolean horizontalOverflow; - HRESULT horizontalOverflow([out, retval] BOOL* result); - - //readonly attribute boolean verticalOverflow; - HRESULT verticalOverflow([out, retval] BOOL* result); -} - -[ - object, - oleautomation, - uuid(b928261d-7c9e-4156-af71-6f698bd97788), - pointer_default(unique) -] -interface IDOMUIEvent : IDOMEvent -{ - //readonly attribute DOMWindow view; - HRESULT view([out, retval] IDOMWindow** result); - - //readonly attribute long detail; - HRESULT detail([out, retval] long* result); - - //[OldStyleObjC] void initUIEvent(in AtomicString type, - // in boolean canBubble, - // in boolean cancelable, - // in DOMWindow view, - // in long detail); - HRESULT initUIEvent([in] BSTR type, [in] BOOL canBubble, [in] BOOL cancelable, [in] IDOMWindow* view, [in] long detail); - - // extentsions - //readonly attribute long keyCode; - HRESULT keyCode([out, retval] long* result); - - //readonly attribute long charCode; - HRESULT charCode([out, retval] long* result); - - //readonly attribute long layerX; - HRESULT layerX([out, retval] long* result); - - //readonly attribute long layerY; - HRESULT layerY([out, retval] long* result); - - //readonly attribute long pageX; - HRESULT pageX([out, retval] long* result); - - //readonly attribute long pageY; - HRESULT pageY([out, retval] long* result); - - //readonly attribute long which; - HRESULT which([out, retval] long* result); -} - -[ - object, - oleautomation, - uuid(5404e6d9-a2bb-4c74-8070-ce9d2599bd00), - pointer_default(unique) -] -interface IDOMWheelEvent : IDOMUIEvent -{ - //readonly attribute long screenX; - HRESULT screenX([out, retval] long* result); - - //readonly attribute long screenY; - HRESULT screenY([out, retval] long* result); - - //readonly attribute long clientX; - HRESULT clientX([out, retval] long* result); - - //readonly attribute long clientY; - HRESULT clientY([out, retval] long* result); - - //readonly attribute boolean ctrlKey; - HRESULT ctrlKey([out, retval] BOOL* result); - - //readonly attribute boolean shiftKey; - HRESULT shiftKey([out, retval] BOOL* result); - - //readonly attribute boolean altKey; - HRESULT altKey([out, retval] BOOL* result); - - //readonly attribute boolean metaKey; - HRESULT metaKey([out, retval] BOOL* result); - - //readonly attribute long wheelDelta; - HRESULT wheelDelta([out, retval] long* result); - - //readonly attribute long wheelDeltaX; - HRESULT wheelDeltaX([out, retval] long* result); - - //readonly attribute long wheelDeltaY; - HRESULT wheelDeltaY([out, retval] long* result); - - // WebKit Extensions - //readonly attribute long offsetX; - HRESULT offsetX([out, retval] long* result); - - //readonly attribute long offsetY; - HRESULT offsetY([out, retval] long* result); - - //readonly attribute long x; - HRESULT x([out, retval] long* result); - - //readonly attribute long y; - HRESULT y([out, retval] long* result); - - //readonly attribute boolean isHorizontal; - HRESULT isHorizontal([out, retval] BOOL* result); - - //void initWheelEvent(in long wheelDeltaX, - // in long wheelDeltaY, - // in DOMWindow view, - // in long screenX, - // in long screenY, - // in long clientX, - // in long clientY, - // in boolean ctrlKey, - // in boolean altKey, - // in boolean shiftKey, - // in boolean metaKey); - HRESULT initWheelEvent([in] long wheelDeltaX, [in] long wheelDeltaY, [in] IDOMWindow* view, [in] long screenX, [in] long screenY, [in] long clientX, [in] long clientY, [in] BOOL ctrlKey, [in] BOOL altKey, [in] BOOL shiftKey, [in] BOOL metaKey); -} diff --git a/WebKit/win/Interfaces/DOMExtensions.idl b/WebKit/win/Interfaces/DOMExtensions.idl deleted file mode 100644 index 83c26d7..0000000 --- a/WebKit/win/Interfaces/DOMExtensions.idl +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -[ - object, - oleautomation, - uuid(E6CEE774-41C6-4c1b-8832-798E49245E6B), - pointer_default(unique) -] -interface IDOMNodeExtensions : IUnknown -{ - /* - - (NSRect)boundingBox - */ - HRESULT boundingBox([out, retval] LPRECT rect); - - /* - - (NSArray *)lineBoxRects - */ - HRESULT lineBoxRects([in, size_is(cRects)] RECT* rects, [in] int cRects); -} diff --git a/WebKit/win/Interfaces/DOMHTML.idl b/WebKit/win/Interfaces/DOMHTML.idl deleted file mode 100644 index 6c276aa..0000000 --- a/WebKit/win/Interfaces/DOMHTML.idl +++ /dev/null @@ -1,930 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "DOMCore.idl"; -#endif - -interface IDOMHTMLElement; -interface IDOMHTMLFormElement; -interface IDOMHTMLTableCaptionElement; -interface IDOMHTMLTableSectionElement; -interface IDOMDocument; -interface IDOMElement; -interface IDOMNode; -interface IDOMNodeList; - -/* - @interface DOMHTMLCollection : DOMObject -*/ -[ - object, - oleautomation, - uuid(DD8E4E33-D1D4-48e7-BB23-6DC3D7CCEC42), - pointer_default(unique) -] -interface IDOMHTMLCollection : IDOMObject -{ - /* - - (unsigned)length; - */ - HRESULT length([out, retval] UINT* result); - - /* - - (DOMNode *)item:(unsigned)index; - */ - HRESULT item([in] UINT index, [out, retval] IDOMNode** node); - - /* - - (DOMNode *)namedItem:(NSString *)name; - */ - HRESULT namedItem([in] BSTR name, [out, retval] IDOMNode** node); -} - -/* - @interface DOMHTMLOptionsCollection : DOMObject -*/ -[ - object, - oleautomation, - uuid(1AD98D99-163C-4c04-B6EE-85A3DD31F5C4), - pointer_default(unique) -] -interface IDOMHTMLOptionsCollection : IDOMObject -{ - /* - - (unsigned)length; - */ - HRESULT length([out, retval] unsigned int* result); - - /* - - (void)setLength:(unsigned)length; - */ - HRESULT setLength([in] unsigned int length); - - /* - - (DOMNode *)item:(unsigned)index; - */ - HRESULT item([in] unsigned int index, [out, retval] IDOMNode** result); - - /* - - (DOMNode *)namedItem:(NSString *)name; - */ - HRESULT namedItem([in] BSTR name, [out, retval] IDOMNode** result); -} - -/* - @interface DOMHTMLDocument : DOMDocument -*/ -[ - object, - oleautomation, - uuid(A7DF8485-25B7-4a98-B70C-1E29CAA00597), - pointer_default(unique) -] -interface IDOMHTMLDocument : IDOMDocument -{ - /* - - (NSString *)title; - */ - HRESULT title([out, retval] BSTR* result); - - /* - - (void)setTitle:(NSString *)title; - */ - HRESULT setTitle([in] BSTR title); - - /* - - (NSString *)referrer; - */ - HRESULT referrer([out, retval] BSTR* result); - - /* - - (NSString *)domain; - */ - HRESULT domain([out, retval] BSTR* result); - - /* - - (NSString *)URL; - */ - HRESULT URL([out, retval] BSTR* result); - - /* - - (DOMHTMLElement *)body; - */ - HRESULT body([out, retval] IDOMHTMLElement** bodyElement); - - /* - - (void)setBody:(DOMHTMLElement *)body; - */ - HRESULT setBody([in] IDOMHTMLElement* body); - - /* - - (DOMHTMLCollection *)images; - */ - HRESULT images([out, retval] IDOMHTMLCollection** collection); - - /* - - (DOMHTMLCollection *)applets; - */ - HRESULT applets([out, retval] IDOMHTMLCollection** collection); - - /* - - (DOMHTMLCollection *)links; - */ - HRESULT links([out, retval] IDOMHTMLCollection** collection); - - /* - - (DOMHTMLCollection *)forms; - */ - HRESULT forms([out, retval] IDOMHTMLCollection** collection); - - /* - - (DOMHTMLCollection *)anchors; - */ - HRESULT anchors([out, retval] IDOMHTMLCollection** collection); - - /* - - (NSString *)cookie; - */ - HRESULT cookie([out, retval] BSTR* result); - - /* - - (void)setCookie:(NSString *)cookie; - */ - HRESULT setCookie([in] BSTR cookie); - - /* - - (void)open; - */ - HRESULT open(); - - /* - - (void)close; - */ - HRESULT close(); - - /* - - (void)write:(NSString *)text; - */ - HRESULT write([in] BSTR text); - - /* - - (void)writeln:(NSString *)text; - */ - HRESULT writeln([in] BSTR text); - - /* - - (DOMElement *)getElementById:(NSString *)elementId; - */ - HRESULT getElementById_([in] BSTR elementId, [out, retval] IDOMElement** element); - - /* - - (DOMNodeList *)getElementsByName:(NSString *)elementName; - */ - HRESULT getElementsByName([in] BSTR elementName, [out, retval] IDOMNodeList** nodeList); -} - -/* - @interface DOMHTMLElement : DOMElement -*/ -[ - object, - oleautomation, - uuid(EBD5F41D-FF65-41d8-97C9-FCE3A3D4CC3E), - pointer_default(unique) -] -interface IDOMHTMLElement : IDOMElement -{ - /* - - (NSString *)idName; - */ - HRESULT idName([out, retval] BSTR* result); - - /* - - (void)setIdName:(NSString *)idName; - */ - HRESULT setIdName([in] BSTR idName); - - /* - - (NSString *)title; - */ - HRESULT title([out, retval] BSTR* result); - - /* - - (void)setTitle:(NSString *)title; - */ - HRESULT setTitle([in] BSTR title); - - /* - - (NSString *)lang; - */ - HRESULT lang([out, retval] BSTR* result); - - /* - - (void)setLang:(NSString *)lang; - */ - HRESULT setLang([in] BSTR lang); - - /* - - (NSString *)dir; - */ - HRESULT dir([out, retval] BSTR* result); - - /* - - (void)setDir:(NSString *)dir; - */ - HRESULT setDir([in] BSTR dir); - - /* - - (NSString *)className; - */ - HRESULT className([out, retval] BSTR* result); - - /* - - (void)setClassName:(NSString *)className; - */ - HRESULT setClassName([in] BSTR className); - - /* - - (NSString *)innerHTML; - */ - HRESULT innerHTML([out, retval] BSTR* result); - - /* - - (void)setInnerHTML:(NSString *)innerHTML; - */ - HRESULT setInnerHTML([in] BSTR html); - - /* - - (NSString *)innerHTML; - */ - HRESULT innerText([out, retval] BSTR* result); - - /* - - (void)setInnerText:(NSString *)innerText; - */ - HRESULT setInnerText([in] BSTR text); -} - -/* - @interface DOMHTMLFormElement : DOMHTMLElement -*/ -[ - object, - oleautomation, - uuid(DF5C0054-DDDB-4888-9198-7A4E4EBF8D69), - pointer_default(unique) -] -interface IDOMHTMLFormElement : IDOMHTMLElement -{ - /* - - (DOMHTMLCollection *)elements; - */ - HRESULT elements([out, retval] IDOMHTMLCollection** result); - - /* - - (int)length; - */ - HRESULT length([out, retval] int* result); - - /* - - (NSString *)name; - */ - HRESULT name([out, retval] BSTR* result); - - /* - - (void)setName:(NSString *)name; - */ - HRESULT setName([in] BSTR name); - - /* - - (NSString *)acceptCharset; - */ - HRESULT acceptCharset([out, retval] BSTR* result); - /* - - (void)setAcceptCharset:(NSString *)acceptCharset; - */ - HRESULT setAcceptCharset([in] BSTR acceptCharset); - - /* - - (NSString *)action; - */ - HRESULT action([out, retval] BSTR* result); - - /* - - (void)setAction:(NSString *)action; - */ - HRESULT setAction([in] BSTR action); - - /* - - (NSString *)enctype; - */ - HRESULT encType([out, retval] BSTR* result); - - /* - - (void)setEnctype:(NSString *)enctype; - */ - HRESULT setEnctype([out, retval] BSTR* encType); - - /* - - (NSString *)method; - */ - HRESULT method([out, retval] BSTR* method); - - /* - - (void)setMethod:(NSString *)method; - */ - HRESULT setMethod([in] BSTR method); - - /* - - (NSString *)target; - */ - HRESULT target([out, retval] BSTR* result); - - /* - - (void)setTarget:(NSString *)target; - */ - HRESULT setTarget([in] BSTR target); - - /* - - (void)submit; - */ - HRESULT submit(); - - /* - - (void)reset; - */ - HRESULT reset(); -} - -/* - @interface DOMHTMLSelectElement : DOMHTMLElement -*/ -[ - object, - oleautomation, - uuid(3825AA04-B38F-4399-95BB-F5410B29594A), - pointer_default(unique) -] -interface IDOMHTMLSelectElement : IDOMHTMLElement -{ - /* - - (NSString *)type; - */ - HRESULT type([out, retval] BSTR* result); - - /* - - (int)selectedIndex; - */ - HRESULT selectedIndex([out, retval] int* result); - - /* - - (void)setSelectedIndex:(int)selectedIndex; - */ - HRESULT setSelectedIndx([in] int selectedIndex); - - /* - - (NSString *)value; - */ - HRESULT value([out, retval] BSTR* result); - - /* - - (void)setValue:(NSString *)value; - */ - HRESULT setValue([in] BSTR value); - - /* - - (int)length; - */ - HRESULT length([out, retval] int* result); - - /* - - (DOMHTMLFormElement *)form; - */ - HRESULT form([out, retval] IDOMHTMLFormElement** result); - - /* - - (DOMHTMLOptionsCollection *)options; - */ - HRESULT options([out, retval] IDOMHTMLOptionsCollection** result); - - /* - - (BOOL)disabled; - */ - HRESULT disabled([out, retval] BOOL* result); - - /* - - (void)setDisabled:(BOOL)disabled; - */ - HRESULT setDisabled([in] BOOL disabled); - - /* - - (BOOL)multiple; - */ - HRESULT multiple([out, retval] BOOL* result); - - /* - - (void)setMultiple:(BOOL)multiple; - */ - HRESULT setMultiple([in] BOOL multiple); - - /* - - (NSString *)name; - */ - HRESULT name([out, retval] BSTR* result); - - /* - - (void)setName:(NSString *)name; - */ - HRESULT setName([in] BSTR name); - - /* - - (int)size; - */ - HRESULT size([out, retval] int* size); - - /* - - (void)setSize:(int)size; - */ - HRESULT setSize([in] int size); - - /* - - (int)tabIndex; - */ - HRESULT tabIndex([out, retval] int* result); - - /* - - (void)setTabIndex:(int)tabIndex; - */ - HRESULT setTabIndex([in] int tabIndex); - - /* - - (void)add:(DOMHTMLElement *)element :(DOMHTMLElement *)before; - */ - HRESULT add([in] IDOMHTMLElement* element, [in] IDOMHTMLElement* before); - - /* - - (void)remove:(int)index; - */ - HRESULT remove([in] int index); - - /* - - (void)blur; - */ - HRESULT blur(); - - /* - - (void)focus; - */ - HRESULT focus(); -} - -/* - @interface DOMHTMLOptionElement : DOMHTMLElement -*/ -[ - object, - oleautomation, - uuid(0E1EF5AB-4008-4d83-9135-D4DC1B4603D4), - pointer_default(unique) -] -interface IDOMHTMLOptionElement : IDOMHTMLElement -{ - /* - - (DOMHTMLFormElement *)form; - */ - HRESULT form([out, retval] IDOMHTMLFormElement** result); - - /* - - (BOOL)defaultSelected; - */ - HRESULT defaultSelected([out, retval] BOOL* result); - - /* - - (void)setDefaultSelected:(BOOL)defaultSelected; - */ - HRESULT setDefaultSelected([in] BOOL defaultSelected); - - /* - - (NSString *)text; - */ - HRESULT text([out, retval] BSTR* result); - - /* - - (int)index; - */ - HRESULT index([out, retval] int* result); - - /* - - (BOOL)disabled; - */ - HRESULT disabled([out, retval] BOOL* result); - - /* - - (void)setDisabled:(BOOL)disabled; - */ - HRESULT setDisabled([in] BOOL disabled); - - /* - - (NSString *)label; - */ - HRESULT label([out, retval] BSTR* result); - - /* - - (void)setLabel:(NSString *)label; - */ - HRESULT setLabel([in] BSTR label); - - /* - - (BOOL)selected; - */ - HRESULT selected([out, retval] BOOL* result); - - /* - - (void)setSelected:(BOOL)selected; - */ - HRESULT setSelected([in] BOOL selected); - - /* - - (NSString *)value; - */ - HRESULT value([out, retval] BSTR* result); - - /* - - (void)setValue:(NSString *)value; - */ - HRESULT setValue([in] BSTR value); -} - -/* - @interface DOMHTMLInputElement : DOMHTMLElement -*/ -[ - object, - oleautomation, - uuid(80C40AC5-1755-4894-812F-479269C262A2), - pointer_default(unique) -] -/* FIXME: The Safari app currently relies on IDOMHTMLInputElement inheriting from - IDOMElement. This can't be changed until a version of SafariWin which no longer - makes this assumption is released. -*/ -interface IDOMHTMLInputElement : IDOMElement -{ - /* - - (NSString *)defaultValue; - */ - HRESULT defaultValue([out, retval] BSTR* result); - - /* - - (void)setDefaultValue:(NSString *)defaultValue; - */ - HRESULT setDefaultValue([in] BSTR val); - - /* - - (BOOL)defaultChecked; - */ - HRESULT defaultChecked([out, retval] BOOL* result); - - /* - - (void)setDefaultChecked:(BOOL)defaultChecked; - */ - HRESULT setDefaultChecked([in] BSTR checked); - - /* - - (DOMHTMLFormElement *)form; - */ - HRESULT form([out, retval] IDOMHTMLElement** result); - - /* - - (NSString *)accept; - */ - HRESULT accept([out, retval] BSTR* result); - - /* - - (void)setAccept:(NSString *)accept; - */ - HRESULT setAccept([in] BSTR accept); - - /* - - (NSString *)accessKey; - */ - HRESULT accessKey([out, retval] BSTR* result); - - /* - - (void)setAccessKey:(NSString *)accessKey; - */ - HRESULT setAccessKey([in] BSTR key); - - /* - - (NSString *)align; - */ - HRESULT align([out, retval] BSTR* result); - - /* - - (void)setAlign:(NSString *)align; - */ - HRESULT setAlign([in] BSTR align); - - /* - - (NSString *)alt; - */ - HRESULT alt([out, retval] BSTR* result); - - /* - - (void)setAlt:(NSString *)alt; - */ - HRESULT setAlt([in] BSTR alt); - - /* - - (BOOL)checked; - */ - HRESULT checked([out, retval] BOOL* result); - - /* - - (void)setChecked:(BOOL)checked; - */ - HRESULT setChecked([in] BOOL checked); - - /* - - (BOOL)disabled; - */ - HRESULT disabled([out, retval] BOOL* result); - - /* - - (void)setDisabled:(BOOL)disabled; - */ - HRESULT setDisabled([in] BOOL disabled); - - /* - - (int)maxLength; - */ - HRESULT maxLength([out, retval] int* result); - - /* - - (void)setMaxLength:(int)maxLength; - */ - HRESULT setMaxLength([in] int maxLength); - - /* - - (NSString *)name; - */ - HRESULT name([out, retval] BSTR* name); - - /* - - (void)setName:(NSString *)name; - */ - HRESULT setName([in] BSTR name); - - /* - - (BOOL)readOnly; - */ - HRESULT readOnly([out, retval] BOOL* result); - - /* - - (void)setReadOnly:(BOOL)readOnly; - */ - HRESULT setReadOnly([in] BOOL readOnly); - - /* - - (unsigned)size; - */ - HRESULT size([out, retval] unsigned int *result); - - /* - - (void)setSize:(unsigned)size; - */ - HRESULT setSize([in] unsigned int size); - - /* - - (NSString *)src; - */ - HRESULT src([out, retval] BSTR* result); - - /* - - (void)setSrc:(NSString *)src; - */ - HRESULT setSrc([in] BSTR src); - - /* - - (int)tabIndex; - */ - HRESULT tabIndex([out, retval] int* result); - - /* - - (void)setTabIndex:(int)tabIndex; - */ - HRESULT setTabIndex([in] int tabIndex); - - /* - - (NSString *)type; - */ - HRESULT type([out, retval] BSTR* result); - - /* - - (void)setType:(NSString *)type; - */ - HRESULT setType([in] BSTR type); - - /* - - (NSString *)useMap; - */ - HRESULT useMap([out, retval] BSTR* result); - - /* - - (void)setUseMap:(NSString *)useMap; - */ - HRESULT setUseMap([in] BSTR useMap); - - /* - - (NSString *)value; - */ - HRESULT value([out, retval] BSTR* result); - - /* - - (void)setValue:(NSString *)value; - */ - HRESULT setValue([in] BSTR value); - - /* - - (void)blur; - */ - HRESULT blur(); - - /* - - (void)focus; - */ - HRESULT focus(); - - /* - - (void)select; - */ - HRESULT select(); - - /* - - (void)click; - */ - HRESULT click(); - - // FIXME - this is not in objC bindings at the moment - // attribute long selectionStart; - HRESULT setSelectionStart([in] long start); - HRESULT selectionStart([out, retval] long* start); - - // FIXME - thisis not in the objC bindings at the moment - // attribute long selectionEnd; - HRESULT setSelectionEnd([in] long end); - HRESULT selectionEnd([out, retval] long* end); -} - -/* - @interface DOMHTMLTextAreaElement : DOMHTMLElement -*/ -[ - object, - oleautomation, - uuid(298B02B7-3EB5-4ba4-AD3F-7FA53241AADE), - pointer_default(unique) -] -interface IDOMHTMLTextAreaElement : IDOMHTMLElement -{ - /* - - (NSString *)defaultValue; - */ - HRESULT defaultValue([out, retval] BSTR* result); - - /* - - (void)setDefaultValue:(NSString *)defaultValue; - */ - HRESULT setDefaultValue([in] BSTR val); - - /* - - (DOMHTMLFormElement *)form; - */ - HRESULT form([out, retval] IDOMHTMLElement** result); - - /* - - (NSString *)accessKey; - */ - HRESULT accessKey([out, retval] BSTR* result); - - /* - - (void)setAccessKey:(NSString *)accessKey; - */ - HRESULT setAccessKey([in] BSTR key); - - /* - - (int)cols; - */ - HRESULT cols([out, retval] int* result); - - /* - - (void)setCols:(int)cols; - */ - HRESULT setCols([in] int cols); - - /* - - (BOOL)disabled; - */ - HRESULT disabled([out, retval] BOOL* result); - - /* - - (void)setDisabled:(BOOL)disabled; - */ - HRESULT setDisabled([in] BOOL disabled); - - /* - - (NSString *)name; - */ - HRESULT name([out, retval] BSTR* name); - - /* - - (void)setName:(NSString *)name; - */ - HRESULT setName([in] BSTR name); - - /* - - (BOOL)readOnly; - */ - HRESULT readOnly([out, retval] BOOL* result); - - /* - - (void)setReadOnly:(BOOL)readOnly; - */ - HRESULT setReadOnly([in] BOOL readOnly); - - /* - - (int)rows; - */ - HRESULT rows([out, retval] int* result); - - /* - - (void)setRows:(int)rows; - */ - HRESULT setRows([in] int rows); - - /* - - (int)tabIndex; - */ - HRESULT tabIndex([out, retval] int* result); - - /* - - (void)setTabIndex:(int)tabIndex; - */ - HRESULT setTabIndex([in] int tabIndex); - - /* - - (NSString *)type; - */ - HRESULT type([out, retval] BSTR* result); - - /* - - (NSString *)value; - */ - HRESULT value([out, retval] BSTR* result); - - /* - - (void)setValue:(NSString *)value; - */ - HRESULT setValue([in] BSTR value); - - /* - - (void)blur; - */ - HRESULT blur(); - - /* - - (void)focus; - */ - HRESULT focus(); - - /* - - (void)select; - */ - HRESULT select(); -} diff --git a/WebKit/win/Interfaces/DOMPrivate.idl b/WebKit/win/Interfaces/DOMPrivate.idl deleted file mode 100644 index dcacac2..0000000 --- a/WebKit/win/Interfaces/DOMPrivate.idl +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "DOMCore.idl"; -#endif - -interface IDOMElement; - -typedef struct WebFontDescription WebFontDescription; - -[ - object, - oleautomation, - uuid(7FF28EC8-6DA1-498d-9A43-7E67C2D3128F), - pointer_default(unique) -] -interface IDOMElementPrivate : IUnknown -{ - [local] HRESULT coreElement(void** element); - HRESULT isEqual([in] IDOMElement* other, [out, retval] BOOL* result); - HRESULT isFocused([out, retval] BOOL* result); - HRESULT innerText([out, retval] BSTR* result); - [local] HRESULT font(WebFontDescription* webFontDescription); -} - -/* - 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. - - @interface DOMHTMLInputElement(FormsAutoFillTransition) -*/ -[ - object, - oleautomation, - uuid(2DF339BC-B48E-4d35-B93A-299756ED0B4B), - pointer_default(unique) -] -interface IFormsAutoFillTransition : IUnknown -{ - /* - - (BOOL)_isTextField; - */ - HRESULT isTextField([out, retval] BOOL* result); - - /* - - (NSRect)_rectOnScreen; // bounding box of the text field, in screen coordinates - */ - HRESULT rectOnScreen([out, retval] LPRECT rect); - - /* - - (void)_replaceCharactersInRange:(NSRange)targetRange withString:(NSString *)replacementString selectingFromIndex:(int)index; - */ - HRESULT replaceCharactersInRange([in] int startTarget, [in] int endTarget, [in] BSTR replacementString, [in] int index); - - /* - - (NSRange)_selectedRange; - */ - HRESULT selectedRange([out] int* start, [out] int* end); - - /* - - (void)_setAutofilled:(BOOL)filled; - */ - HRESULT setAutofilled([in] BOOL filled); -} - -/* - // These changes are necessary to detect whether a form input was modified by a user - // or javascript - @interface DOMHTMLInputElement (FormPromptAdditions) - - @interface DOMHTMLTextAreaElement (FormPromptAdditions) -*/ -[ - object, - oleautomation, - uuid(C8C5F0CD-07B0-4a32-BFA8-AE465E80DD3C), - pointer_default(unique) -] -interface IFormPromptAdditions : IUnknown -{ - /* - - (BOOL)_isUserEdited; - */ - HRESULT isUserEdited([out, retval] BOOL* result); -} - -/* - 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. - - @interface DOMHTMLSelectElement(FormsAutoFillTransition) -*/ -[ - object, - oleautomation, - uuid(6959F712-1563-4661-8D8C-F4C739C55839), - pointer_default(unique) -] -interface IFormsAutoFillTransitionSelect : IUnknown -{ - /* - - (void)_activateItemAtIndex:(int)index; - */ - HRESULT activateItemAtIndex([in] int index); -} diff --git a/WebKit/win/Interfaces/DOMRange.idl b/WebKit/win/Interfaces/DOMRange.idl deleted file mode 100644 index 58dd54d..0000000 --- a/WebKit/win/Interfaces/DOMRange.idl +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "DOMCore.idl"; -#endif - -interface IDOMNode; -interface IDOMDocumentFragment; - -typedef enum _WebSelectionAffinity { - WebSelectionAffinityUpstream = 0, - WebSelectionAffinityDownstream = 1 -} WebSelectionAffinity; - -enum { - // - // DOM range exception codes - // - DOM_BAD_BOUNDARYPOINTS_ERR = 1, - DOM_INVALID_NODE_TYPE_ERR = 2, -}; - -enum { - // - // DOM Range comparison codes - // - DOM_START_TO_START = 0, - DOM_START_TO_END = 1, - DOM_END_TO_END = 2, - DOM_END_TO_START = 3, -}; - -/* - @interface DOMRange : DOMObject -*/ -[ - object, - oleautomation, - uuid(2F33E42C-0B39-48b3-B7B6-E910CDB325AD), - pointer_default(unique) -] -interface IDOMRange : IDOMObject -{ - /* - - (DOMNode *)startContainer; - */ - HRESULT startContainer([out, retval] IDOMNode** node); - - /* - - (int)startOffset; - */ - HRESULT startOffset([out, retval] int* offset); - - /* - - (DOMNode *)endContainer; - */ - HRESULT endContainer([out, retval] IDOMNode** node); - - /* - - (int)endOffset; - */ - HRESULT endOffset([out, retval] int* offset); - - /* - - (BOOL)collapsed; - */ - HRESULT collapsed([out, retval] BOOL* result); - - /* - - (DOMNode *)commonAncestorContainer; - */ - HRESULT commonAncestorContainer([out, retval] IDOMNode** container); - - /* - - (void)setStart:(DOMNode *)refNode :(int)offset; - */ - HRESULT setStart([in] IDOMNode* refNode, [in] int offset); - - /* - - (void)setEnd:(DOMNode *)refNode :(int)offset; - */ - HRESULT setEnd([in] IDOMNode* refNode, [in] int offset); - - /* - - (void)setStartBefore:(DOMNode *)refNode; - */ - HRESULT setStartBefore([in] IDOMNode* refNode); - - /* - - (void)setStartAfter:(DOMNode *)refNode; - */ - HRESULT setStartAfter([in] IDOMNode* refNode); - - /* - - (void)setEndBefore:(DOMNode *)refNode; - */ - HRESULT setEndBefore([in] IDOMNode* refNode); - - /* - - (void)setEndAfter:(DOMNode *)refNode; - */ - HRESULT setEndAfter([in] IDOMNode* refNode); - - /* - - (void)collapse:(BOOL)toStart; - */ - HRESULT collapse([in] BOOL toStart); - - /* - - (void)selectNode:(DOMNode *)refNode; - */ - HRESULT selectNode([in] IDOMNode* refNode); - - /* - - (void)selectNodeContents:(DOMNode *)refNode; - */ - HRESULT selectNodeContents([in] IDOMNode* refNode); - - /* - - (short)compareBoundaryPoints:(unsigned short)how :(DOMRange *)sourceRange; - */ - HRESULT compareBoundaryPoints([in] unsigned short how, [in] IDOMRange* sourceRange); - - /* - - (void)deleteContents; - */ - HRESULT deleteContents(); - - /* - - (DOMDocumentFragment *)extractContents; - */ - HRESULT extractContents([out, retval] IDOMDocumentFragment** fragment); - - /* - - (DOMDocumentFragment *)cloneContents; - */ - HRESULT cloneContents([out, retval] IDOMDocumentFragment** fragment); - - /* - - (void)insertNode:(DOMNode *)newNode; - */ - HRESULT insertNode([in] IDOMNode* newNode); - - /* - - (void)surroundContents:(DOMNode *)newParent; - */ - HRESULT surroundContents([in] IDOMNode* newParent); - - /* - - (DOMRange *)cloneRange; - */ - HRESULT cloneRange([out, retval] IDOMRange** range); - - /* - - (NSString *)toString; - */ - HRESULT toString([out, retval] BSTR* str); - - /* - - (void)detach; - */ - HRESULT detach(); -} diff --git a/WebKit/win/Interfaces/DOMWindow.idl b/WebKit/win/Interfaces/DOMWindow.idl deleted file mode 100755 index 6c24811..0000000 --- a/WebKit/win/Interfaces/DOMWindow.idl +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "DOMCore.idl"; -import "DOMCSS.idl"; -#endif - -interface IDOMCSSRuleList; -interface IDOMDocument; -interface IDOMElement; - -[ - object, - oleautomation, - uuid(19126DDF-E82F-46c0-A2F9-16879D7DADC5), - pointer_default(unique) -] -interface IDOMWindow : IDOMObject -{ - // DOM Level 2 AbstractView Interface - //readonly attribute Document document; - HRESULT document([out, retval] IDOMDocument** result); - - // DOM Level 2 Style Interface - //CSSStyleDeclaration getComputedStyle(in Element element, - // in DOMString pseudoElement); - HRESULT getComputedStyle([in] IDOMElement* element, [in] BSTR pseudoElement); - - // WebKit extensions - //CSSRuleList getMatchedCSSRules(in Element element, - // in DOMString pseudoElement, - // in [Optional] boolean authorOnly); - HRESULT getMatchedCSSRules([in] IDOMElement* element, [in] BSTR pseudoElement, [in] BOOL authorOnly, [out, retval] IDOMCSSRuleList** result); - - //readonly attribute double devicePixelRatio; - HRESULT devicePixelRatio([out, retval] double* result); - - // Global constructors - //attribute CSSPrimitiveValueConstructor CSSPrimitiveValue; - //attribute CSSRuleConstructor CSSRule; - //attribute CSSStyleDeclarationConstructor CSSStyleDeclaration; - //attribute CSSValueConstructor CSSValue; - //attribute DocumentConstructor Document; - //attribute DocumentFragmentConstructor DocumentFragment; - //attribute DOMParserConstructor DOMParser; - //attribute ElementConstructor Element; - //attribute EventConstructor Event; - //attribute HTMLElementConstructor HTMLElement; - //attribute HTMLDocumentConstructor HTMLDocument; - //attribute MutationEventConstructor MutationEvent; - //attribute NodeConstructor Node; - //attribute NodeFilterConstructor NodeFilter; - //attribute RangeConstructor Range; - //attribute RangeExceptionConstructor RangeException; - - // Mozilla has a separate XMLDocument object for XML documents. - // We just use Document for this. - //attribute DocumentConstructor XMLDocument; - - //attribute XMLSerializerConstructor XMLSerializer; - - //#ifdef XPATH_SUPPORT - //attribute XPathEvaluatorConstructor XPathEvaluator; - //attribute XPathResultConstructor XPathResult; - //#endif -} diff --git a/WebKit/win/Interfaces/IGEN_DOMObject.idl b/WebKit/win/Interfaces/IGEN_DOMObject.idl deleted file mode 100644 index a1efbf4..0000000 --- a/WebKit/win/Interfaces/IGEN_DOMObject.idl +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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(19DD35E3-BFEC-40f5-A69F-02C5D76791E4), - pointer_default(unique) -] -interface IGEN_DOMObject : IUnknown -{ -} diff --git a/WebKit/win/Interfaces/IWebArchive.idl b/WebKit/win/Interfaces/IWebArchive.idl deleted file mode 100644 index 3168467..0000000 --- a/WebKit/win/Interfaces/IWebArchive.idl +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "DOMCore.idl"; -import "IWebResource.idl"; -#endif - -interface IWebResource; - -/*! - @class WebArchive - @discussion WebArchive represents a main resource as well as all the subresources and subframes associated with the main resource. - The main resource can be an entire web page, a portion of a web page, or some other kind of data such as an image. - This class can be used for saving standalone web pages, representing portions of a web page on the pasteboard, or any other - application where one class is needed to represent rich web content. -*/ -[ - object, - oleautomation, - uuid(F07D5252-F66E-4a4d-B9DC-33BD11DCC138), - pointer_default(unique) -] -interface IWebArchive : IUnknown -{ - /*! - @method initWithMainResource:subresources:subframeArchives: - @abstract The initializer for WebArchive. - @param mainResource The main resource of the archive. - @param subresources The subresources of the archive (can be nil). - @param subframeArchives The archives representing the subframes of the archive (can be nil). - @result An initialized WebArchive. - - (id)initWithMainResource:(WebResource *)mainResource subresources:(NSArray *)subresources subframeArchives:(NSArray *)subframeArchives; - */ - HRESULT initWithMainResource([in] IWebResource* mainResource, [in, size_is(cSubResources)] IWebResource** subResources, [in] int cSubResources, [in, size_is(cSubFrameArchives)] IWebArchive** subFrameArchives, [in] int cSubFrameArchives); - - /*! - @method initWithData: - @abstract The initializer for creating a WebArchive from data. - @param data The data representing the archive. This can be obtained using WebArchive's data method. - @result An initialized WebArchive. - - (id)initWithData:(NSData *)data; - */ - HRESULT initWithData([in] IStream* data); - - /*! - @method initWithData: - @abstract The initializer for creating a WebArchive from data. - @param data The data representing the archive. This can be obtained using WebArchive's data method. - @result An initialized WebArchive. - - (id)initWithData:(NSData *)data; - */ - HRESULT initWithNode([in] IDOMNode* node); - - /*! - @method mainResource - @result The main resource of the archive. - - (WebResource *)mainResource; - */ - HRESULT mainResource([out, retval] IWebResource** resource); - - /*! - @method subresources - @result The subresource of the archive (can be nil). - - (NSArray *)subresources; - */ - HRESULT subResources([out, retval] IEnumVARIANT** enumResources); - - /*! - @method subframeArchives - @result The archives representing the subframes of the archive (can be nil). - - (NSArray *)subframeArchives; - */ - HRESULT subframeArchives([out, retval] IEnumVARIANT** enumSubframes); - - /*! - @method data - @result The data representation of the archive. - @discussion The data returned by this method can be used to save a web archive to a file or to place a web archive on the pasteboard - using WebArchivePboardType. To create a WebArchive using the returned data, call initWithData:. - - (NSData *)data; - */ - HRESULT data([out, retval] IStream** stream); -} diff --git a/WebKit/win/Interfaces/IWebBackForwardList.idl b/WebKit/win/Interfaces/IWebBackForwardList.idl deleted file mode 100644 index 83d4cfb..0000000 --- a/WebKit/win/Interfaces/IWebBackForwardList.idl +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebHistoryItem.idl"; -#endif - -interface IWebHistoryItem; - -/*! - @class WebBackForwardList - WebBackForwardList holds an ordered list of WebHistoryItems that comprises the back and - forward lists. - - Note that the methods which modify instances of this class do not cause - navigation to happen in other layers of the stack; they are only for maintaining this data - structure. -*/ -[ - object, - oleautomation, - uuid(C278A16D-B502-4131-B551-DCE3F4ED2B36), - pointer_default(unique) -] -interface IWebBackForwardList : IUnknown -{ - /*! - @method addItem: - @abstract Adds an entry to the list. - @param entry The entry to add. - @discussion The added entry is inserted immediately after the current entry. - If the current position in the list is not at the end of the list, elements in the - forward list will be dropped at this point. In addition, entries may be dropped to keep - the size of the list within the maximum size. - - (void)addItem:(WebHistoryItem *)item; - */ - HRESULT addItem([in] IWebHistoryItem* item); - - /*! - @method goBack - @abstract Move the current pointer back to the entry before the current entry. - - (void)goBack; - */ - HRESULT goBack(); - - /*! - @method goForward - @abstract Move the current pointer ahead to the entry after the current entry. - - (void)goForward; - */ - HRESULT goForward(); - - /*! - @method goToItem: - @abstract Move the current pointer to the given entry. - @param item The history item to move the pointer to - - (void)goToItem:(WebHistoryItem *)item; - */ - HRESULT goToItem([in] IWebHistoryItem* item); - - /*! - @method backItem - @abstract Returns the entry right before the current entry. - @result The entry right before the current entry, or nil if there isn't one. - - (WebHistoryItem *)backItem; - */ - HRESULT backItem([out, retval] IWebHistoryItem** item); - - /*! - @method currentItem - @abstract Returns the current entry. - @result The current entry. - - (WebHistoryItem *)currentItem; - */ - HRESULT currentItem([out, retval] IWebHistoryItem** item); - - /*! - @method forwardItem - @abstract Returns the entry right after the current entry. - @result The entry right after the current entry, or nil if there isn't one. - - (WebHistoryItem *)forwardItem; - */ - HRESULT forwardItem([out, retval] IWebHistoryItem** item); - - /*! - @method backListWithLimit: - @abstract Returns a portion of the list before the current entry. - @param limit A cap on the size of the array returned. - @result An array of items before the current entry, or nil if there are none. The entries are in the order that they were originally visited. - - (NSArray *)backListWithLimit:(int)limit; - */ - HRESULT backListWithLimit([in] int limit, [out] int* listCount, [in] IWebHistoryItem** list); - - /*! - @method forwardListWithLimit: - @abstract Returns a portion of the list after the current entry. - @param limit A cap on the size of the array returned. - @result An array of items after the current entry, or nil if there are none. The entries are in the order that they were originally visited. - - (NSArray *)forwardListWithLimit:(int)limit; - */ - HRESULT forwardListWithLimit([in] int limit, [out] int* listCount, [in] IWebHistoryItem** list); - - /*! - @method capacity - @abstract Returns the list's maximum size. - @result The list's maximum size. - - (int)capacity; - */ - HRESULT capacity([out, retval] int* result); - - /*! - @method setCacpacity - @abstract Sets the list's maximum size. - @param size The new maximum size for the list. - - (void)setCapacity:(int)size; - */ - HRESULT setCapacity([in] int size); - - /*! - @method backListCount - @abstract Returns the back list's current count. - @result The number of items in the list. - - (int)backListCount; - */ - HRESULT backListCount([out, retval] int* count); - - /*! - @method forwardListCount - @abstract Returns the forward list's current count. - @result The number of items in the list. - - (int)forwardListCount; - */ - HRESULT forwardListCount([out, retval] int* sizecount); - - /*! - @method containsItem: - @param item The item that will be checked for presence in the WebBackForwardList. - @result Returns YES if the item is in the list. - - (BOOL)containsItem:(WebHistoryItem *)item; - */ - HRESULT containsItem([in] IWebHistoryItem* item, [out, retval] BOOL* result); - - /*! - @method itemAtIndex: - @abstract Returns an entry the given distance from the current entry. - @param index Index of the desired list item relative to the current item; 0 is current item, -1 is back item, 1 is forward item, etc. - @result The entry the given distance from the current entry. If index exceeds the limits of the list, nil is returned. - - (WebHistoryItem *)itemAtIndex:(int)index; - */ - HRESULT itemAtIndex([in] int index, [out, retval] IWebHistoryItem** item); -} diff --git a/WebKit/win/Interfaces/IWebBackForwardListPrivate.idl b/WebKit/win/Interfaces/IWebBackForwardListPrivate.idl deleted file mode 100755 index a9c14f3..0000000 --- a/WebKit/win/Interfaces/IWebBackForwardListPrivate.idl +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebHistoryItem.idl"; -#endif - -interface IWebHistoryItem; - -[ - object, - oleautomation, - uuid(0296A841-F6B1-4334-B146-7F9542CF24C3), - pointer_default(unique) -] -interface IWebBackForwardListPrivate : IUnknown -{ - HRESULT removeItem([in] IWebHistoryItem* item); -} diff --git a/WebKit/win/Interfaces/IWebCache.idl b/WebKit/win/Interfaces/IWebCache.idl deleted file mode 100644 index 3d2bf14..0000000 --- a/WebKit/win/Interfaces/IWebCache.idl +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -[ - object, - oleautomation, - hidden, - uuid(0673E6F5-AE63-4871-AAC6-6A1E0E6A99AB), - pointer_default(unique) -] -interface IWebCache : IUnknown -{ - HRESULT statistics([in, out] int* count, [in] IPropertyBag** s); - HRESULT empty(); - HRESULT setDisabled([in] BOOL disabled); - HRESULT disabled([out, retval] BOOL*); -} diff --git a/WebKit/win/Interfaces/IWebCookieManager.idl b/WebKit/win/Interfaces/IWebCookieManager.idl deleted file mode 100644 index 1c87ec0..0000000 --- a/WebKit/win/Interfaces/IWebCookieManager.idl +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 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. - * - * 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 - -cpp_quote("// this is done to get midl to treat the CFHTTPCookieStorageRef as pointer types") -cpp_quote("#if 0") -typedef void* CFHTTPCookieStorageRef; -cpp_quote("#else") -cpp_quote("typedef struct OpaqueCFHTTPCookieStorage* CFHTTPCookieStorageRef;") -cpp_quote("#endif") - -interface IWebCookieStorageObserver; - -[ - object, - oleautomation, - hidden, - uuid(7053FE94-3623-444f-A298-209A90879A8C), - pointer_default(unique) -] -interface IWebCookieManager : IUnknown -{ - [local] HRESULT cookieStorage([out, retval] CFHTTPCookieStorageRef* storage); - - [local] HRESULT setCookieStorage([in] CFHTTPCookieStorageRef storage); -} diff --git a/WebKit/win/Interfaces/IWebCoreStatistics.idl b/WebKit/win/Interfaces/IWebCoreStatistics.idl deleted file mode 100644 index 0001a10..0000000 --- a/WebKit/win/Interfaces/IWebCoreStatistics.idl +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 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. - * - * 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 - -[ - object, - oleautomation, - hidden, - uuid(9607001D-6EEF-4c2c-AD22-94E9DA587973), - pointer_default(unique) -] -interface IWebCoreStatistics : IUnknown -{ - HRESULT javaScriptObjectsCount([out, retval] UINT* count); - HRESULT javaScriptGlobalObjectsCount([out, retval] UINT* count); - HRESULT javaScriptProtectedObjectsCount([out, retval] UINT* count); - HRESULT javaScriptProtectedGlobalObjectsCount([out, retval] UINT* count); - - HRESULT iconPageURLMappingCount([out, retval] UINT* count); - HRESULT iconRetainedPageURLCount([out, retval] UINT* count); - HRESULT iconRecordCount([out, retval] UINT* count); - HRESULT iconsWithDataCount([out, retval] UINT* count); - - HRESULT cachedFontDataCount([out, retval] UINT* count); - HRESULT cachedFontDataInactiveCount([out, retval] UINT* count); - HRESULT purgeInactiveFontData(); - HRESULT glyphPageCount([out, retval] UINT* count); - - HRESULT javaScriptProtectedObjectTypeCounts([out, retval] IPropertyBag2** typeNamesAndCounts); -} diff --git a/WebKit/win/Interfaces/IWebDataSource.idl b/WebKit/win/Interfaces/IWebDataSource.idl deleted file mode 100644 index 15bea1a..0000000 --- a/WebKit/win/Interfaces/IWebDataSource.idl +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebMutableURLRequest.idl"; -import "IWebURLResponse.idl"; -import "IWebResource.idl"; -import "IWebArchive.idl"; -import "IWebDocument.idl"; -import "IWebFrame.idl"; -#endif - -interface IWebMutableURLRequest; -interface IWebURLConnection; -interface IWebURLRequest; -interface IWebURLResponse; -interface IWebArchive; -interface IWebDataSourcePrivate; -interface IWebError; -interface IWebFrame; -interface IWebResource; - -interface IWebDocumentRepresentation; - -/*! - @class WebDataSource - @discussion A WebDataSource represents the data associated with a web page. - A datasource has a WebDocumentRepresentation which holds an appropriate - representation of the data. WebDataSources manage a hierarchy of WebFrames. - WebDataSources are typically related to a view by their containing WebFrame. -*/ -[ - object, - oleautomation, - uuid(5221A975-AE09-4a7b-A4DF-E3B1B5F38A21), - pointer_default(unique) -] -interface IWebDataSource : IUnknown -{ - /*! - @method initWithRequest: - @abstract The designated initializer for WebDataSource. - @param request The request to use in creating a datasource. - @result Returns an initialized WebDataSource. - - (id)initWithRequest:(NSURLRequest *)request; - */ - HRESULT initWithRequest([in] IWebURLRequest* request); - - /*! - @method data - @discussion The data will be incomplete until the datasource has completely loaded. - @result Returns the raw data associated with the datasource. Returns nil - if the datasource hasn't loaded any data. - - (NSData *)data; - */ - HRESULT data([out, retval] IStream** stream); - - /*! - @method representation - @discussion A representation holds a type specific representation - of the datasource's data. The representation class is determined by mapping - a MIME type to a class. The representation is created once the MIME type - of the datasource content has been determined. - @result Returns the representation associated with this datasource. - Returns nil if the datasource hasn't created it's representation. - - (id <WebDocumentRepresentation>)representation; - */ - HRESULT representation([out, retval] IWebDocumentRepresentation** rep); - - /*! - @method webFrame - @result Return the frame that represents this data source. - - (WebFrame *)webFrame; - */ - HRESULT webFrame([out, retval] IWebFrame** frame); - - /*! - @method initialRequest - @result Returns a reference to the original request that created the - datasource. This request will be unmodified by WebKit. - - (NSURLRequest *)initialRequest; - */ - HRESULT initialRequest([out, retval] IWebURLRequest** request); - - /*! - @method request - @result Returns the request that was used to create this datasource. - - (NSMutableURLRequest *)request; - */ - HRESULT request([out, retval] IWebMutableURLRequest** request); - - /*! - @method response - @result returns the WebResourceResponse for the data source. - - (NSURLResponse *)response; - */ - HRESULT response([out, retval] IWebURLResponse** response); - - /*! - @method textEncodingName - @result Returns either the override encoding, as set on the WebView for this - dataSource or the encoding from the response. - - (NSString *)textEncodingName; - */ - HRESULT textEncodingName([out, retval] BSTR* name); - - /*! - @method isLoading - @discussion Returns YES if there are any pending loads. - - (BOOL)isLoading; - */ - HRESULT isLoading([out, retval] BOOL* loading); - - /*! - @method pageTitle - @result Returns nil or the page title. - - (NSString *)pageTitle; - */ - HRESULT pageTitle([out, retval] BSTR* title); - - /*! - @method unreachableURL - @discussion This will be non-nil only for dataSources created by calls to the - WebFrame method loadAlternateHTMLString:baseURL:forUnreachableURL:. - @result returns the unreachableURL for which this dataSource is showing alternate content, or nil - - (NSURL *)unreachableURL; - */ - HRESULT unreachableURL([out, retval] BSTR* url); - - /*! - @method webArchive - @result A WebArchive representing the data source, its subresources and child frames. - @description This method constructs a WebArchive using the original downloaded data. - In the case of HTML, if the current state of the document is preferred, webArchive should be - called on the DOM document instead. - - (WebArchive *)webArchive; - */ - HRESULT webArchive([out, retval] IWebArchive** archive); - - /*! - @method mainResource - @result A WebResource representing the data source. - @description This method constructs a WebResource using the original downloaded data. - This method can be used to construct a WebArchive in case the archive returned by - WebDataSource's webArchive isn't sufficient. - - (WebResource *)mainResource; - */ - HRESULT mainResource([out, retval] IWebResource** resource); - - /*! - @method subresources - @abstract Returns all the subresources associated with the data source. - @description The returned array only contains subresources that have fully downloaded. - - (NSArray *)subresources; - */ - HRESULT subresources([out, retval] IEnumVARIANT** enumResources); - - /*! - method subresourceForURL: - @abstract Returns a subresource for a given URL. - @param URL The URL of the subresource. - @description Returns non-nil if the data source has fully downloaded a subresource with the given URL. - - (WebResource *)subresourceForURL:(NSURL *)URL; - */ - HRESULT subresourceForURL([in] BSTR url, [out, retval] IWebResource** resource); - - /*! - @method addSubresource: - @abstract Adds a subresource to the data source. - @param subresource The subresource to be added. - @description addSubresource: adds a subresource to the data source's list of subresources. - Later, if something causes the data source to load the URL of the subresource, the data source - will load the data from the subresource instead of from the network. For example, if one wants to add - an image that is already downloaded to a web page, addSubresource: can be called so that the data source - uses the downloaded image rather than accessing the network. NOTE: If the data source already has a - subresource with the same URL, addSubresource: will replace it. - - (void)addSubresource:(WebResource *)subresource; - */ - HRESULT addSubresource([in] IWebResource* subresource); -} - -[ - object, - oleautomation, - uuid(4B80B7D4-98D7-4a80-AF46-2AF84B2F2E8F), - pointer_default(unique) -] -interface IWebDataSourcePrivate : IUnknown -{ - HRESULT overrideEncoding([out, retval] BSTR* encoding); - HRESULT setOverrideEncoding([in] BSTR encoding); - HRESULT mainDocumentError([out, retval] IWebError** error); -} diff --git a/WebKit/win/Interfaces/IWebDatabaseManager.idl b/WebKit/win/Interfaces/IWebDatabaseManager.idl deleted file mode 100644 index c877c03..0000000 --- a/WebKit/win/Interfaces/IWebDatabaseManager.idl +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -interface IWebSecurityOrigin; - -cpp_quote("#define WebDatabaseDisplayNameKey TEXT(\"WebDatabaseDisplayNameKey\")") -cpp_quote("#define WebDatabaseExpectedSizeKey TEXT(\"WebDatabaseExpectedSizeKey\")") -cpp_quote("#define WebDatabaseUsageKey TEXT(\"WebDatabaseUsageKey\")") - -cpp_quote("#define WebDatabaseDidModifyOriginNotification TEXT(\"WebDatabaseDidModifyOriginNotification\")") -cpp_quote("#define WebDatabaseDidModifyDatabaseNotification TEXT(\"WebDatabaseDidModifyDatabaseNotification\")") -cpp_quote("#define WebDatabaseNameKey TEXT(\"WebDatabaseNameKey\")") - -#ifndef DO_NO_IMPORTS -import "IWebSecurityOrigin.idl"; -#endif - -[ - object, - oleautomation, - uuid(5724f010-a77b-4a42-8f89-a5095b61d469), - pointer_default(unique) -] -interface IWebDatabaseManager : IUnknown -{ - HRESULT sharedWebDatabaseManager([out, retval] IWebDatabaseManager** result); - - HRESULT origins([out, retval] IEnumVARIANT** result); - HRESULT databasesWithOrigin([in] IWebSecurityOrigin* origin, [out, retval] IEnumVARIANT** result); - HRESULT detailsForDatabase([in] BSTR databaseName, [in] IWebSecurityOrigin* origin, [out, retval] IPropertyBag **result); - - HRESULT deleteAllDatabases(); - HRESULT deleteOrigin([in] IWebSecurityOrigin* origin); - HRESULT deleteDatabase([in] BSTR databaseName, [in] IWebSecurityOrigin* origin); -} diff --git a/WebKit/win/Interfaces/IWebDocument.idl b/WebKit/win/Interfaces/IWebDocument.idl deleted file mode 100644 index 24097ce..0000000 --- a/WebKit/win/Interfaces/IWebDocument.idl +++ /dev/null @@ -1,245 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebError.idl"; -import "IWebDataSource.idl"; -#endif - -interface IWebError; -interface IWebDataSource; - -/*! - @protocol WebDocumentView - @discussion Protocol implemented by the document view of WebFrameView - - @protocol WebDocumentView <NSObject> -*/ -[ - object, - oleautomation, - uuid(0A6397A7-90FE-49a0-B9C1-44693DD779F7), - pointer_default(unique) -] -interface IWebDocumentView : IUnknown -{ - /*! - @method setDataSource: - @abstract Called when the corresponding data source has been created. - @param dataSource The corresponding data source. - - (void)setDataSource:(WebDataSource *)dataSource; - */ - HRESULT setDataSource([in] IWebDataSource* dataSource); - - /*! - @method dataSourceUpdated: - @abstract Called when the corresponding data source has received data. - @param dataSource The corresponding data source. - - (void)dataSourceUpdated:(WebDataSource *)dataSource; - */ - HRESULT dataSourceUpdated([in] IWebDataSource* dataSource); - - /*! - @method setNeedsLayout: - @discussion Called when WebKit has determined that the document view needs to layout. - This method should simply set a flag and call layout from drawRect if the flag is YES. - @param flag YES to cause a layout, no to not cause a layout. - - (void)setNeedsLayout:(BOOL)flag; - */ - HRESULT setNeedsLayout([in] BOOL flag); - - /*! - @method layout - @discussion Called when the document view must immediately layout. For simple views, - setting the frame is a sufficient implementation of this method. - - (void)layout; - */ - HRESULT layout(); - - /*! - @method viewWillMoveToHostWindow: - @param hostWindow The host window for the document view. - @abstract Called before the host window is set on the parent web view. - - (void)viewWillMoveToHostWindow:(NSWindow *)hostWindow; - */ - HRESULT viewWillMoveToHostWindow([in] OLE_HANDLE hwnd); - - /*! - @method viewDidMoveToHostWindow - @abstract Called after the host window is set on the parent web view. - - (void)viewDidMoveToHostWindow; - */ - HRESULT viewDidMoveToHostWindow(); -} - -/*! - @protocol WebDocumentSearching - @discussion Optional protocol for searching document view of WebFrameView. - - @protocol WebDocumentSearching <NSObject> -*/ -[ - object, - oleautomation, - uuid(0213643B-8DF9-4ba4-9534-61D92CB75007), - pointer_default(unique) -] -interface IWebDocumentSearching : IUnknown -{ - /*! - @method searchFor:direction:caseSensitive:wrap: - @abstract Searches a document view for a string and highlights the string if it is found. - @param string The string to search for. - @param forward YES to search forward, NO to seach backwards. - @param caseFlag YES to for case-sensitive search, NO for case-insensitive search. - @param wrapFlag YES to wrap around, NO to avoid wrapping. - @result YES if found, NO if not found. - - (BOOL)searchFor:(NSString *)string direction:(BOOL)forward caseSensitive:(BOOL)caseFlag wrap:(BOOL)wrapFlag; - */ - HRESULT searchFor([in] BSTR str, [in] BOOL forwardDirection, [in] BOOL caseSensitive, [in] BOOL wrap, [out, retval] BOOL* result); -} - -/*! - @protocol WebDocumentText - @discussion Optional protocol for supporting text operations. - - @protocol WebDocumentText <NSObject> -*/ -[ - object, - oleautomation, - uuid(B6282B92-6F31-4948-A3A0-89763C56BBBF), - pointer_default(unique) -] -interface IWebDocumentText : IUnknown -{ - /*! - @method supportsTextEncoding - @result YES if the document view support text encoding, NO if it doesn't. - - (BOOL)supportsTextEncoding; - */ - HRESULT supportsTextEncoding([out, retval] BOOL* result); - - /*! - @method string - @result String that represents the entire document. - - (NSString *)string; - */ - HRESULT string([out, retval] BSTR* result); - - /*! - @method selectedString - @result String that represents the current selection. - - (NSString *)selectedString; - */ - HRESULT selectedString([out, retval] BSTR* result); - - /*! - @method selectAll - @abstract Selects all the text in the document. - - (void)selectAll; - */ - HRESULT selectAll(); - - /*! - @method deselectText - @abstract Causes a text selection to lose its selection. - - (void)deselectAll; - */ - HRESULT deselectAll(); -} - -/*! - @protocol WebDocumentRepresentation - @discussion Protocol implemented by the document representation of a data source. - - @protocol WebDocumentRepresentation <NSObject> -*/ -[ - object, - oleautomation, - uuid(3C9F6251-CFD8-447a-B429-6B6AE627436C), - pointer_default(unique) -] -interface IWebDocumentRepresentation : IUnknown -{ - /*! - @method setDataSource: - @abstract Called soon after the document representation is created. - @param dataSource The data source that is set. - - (void)setDataSource:(WebDataSource *)dataSource; - */ - HRESULT setDataSource([in] IWebDataSource* dataSource); - - /*! - @method receivedData:withDataSource: - @abstract Called when the data source has received data. - @param data The data that the data source has received. - @param dataSource The data source that has received data. - - (void)receivedData:(NSData *)data withDataSource:(WebDataSource *)dataSource; - */ - HRESULT receivedData([in] IStream* data, [in] IWebDataSource* dataSource); - - /*! - @method receivedError:withDataSource: - @abstract Called when the data source has received an error. - @param error The error that the data source has received. - @param dataSource The data source that has received the error. - - (void)receivedError:(NSError *)error withDataSource:(WebDataSource *)dataSource; - */ - HRESULT receivedError([in] IWebError* error, [in] IWebDataSource* dataSource); - - /*! - @method finishedLoadingWithDataSource: - @abstract Called when the data source has finished loading. - @param dataSource The datasource that has finished loading. - - (void)finishedLoadingWithDataSource:(WebDataSource *)dataSource; - */ - HRESULT finishedLoadingWithDataSource([in] IWebDataSource* dataSource); - - /*! - @method canProvideDocumentSource - @result Returns true if the representation can provide document source. - - (BOOL)canProvideDocumentSource; - */ - HRESULT canProvideDocumentSource([out, retval] BOOL* result); - - /*! - @method documentSource - @result Returns the textual source representation of the document. For HTML documents - this is the original HTML source. - - (NSString *)documentSource; - */ - HRESULT documentSource([out, retval] BSTR* source); - - /*! - @method title - @result Return the title for the document. - - (NSString *)title; - */ - HRESULT title([out, retval] BSTR* docTitle); -} diff --git a/WebKit/win/Interfaces/IWebDownload.idl b/WebKit/win/Interfaces/IWebDownload.idl deleted file mode 100644 index eb644ef..0000000 --- a/WebKit/win/Interfaces/IWebDownload.idl +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. - * 2007 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 "IWebError.idl"; -import "IWebMutableURLRequest.idl"; -import "IWebURLAuthenticationChallenge.idl"; -import "IWebURLResponse.idl"; -import "IWebURLRequest.idl"; -#endif - -interface IWebDownloadDelegate; -interface IWebError; -interface IWebMutableURLRequest; -interface IWebURLAuthenticationChallenge; -interface IWebURLRequest; -interface IWebURLResponse; - -/*! - @class WebDownload - @discussion A WebDownload works just like an NSURLDownload, with - one extra feature: if you do not implement the - authentication-related delegate methods, it will automatically - prompt for authentication using the standard WebKit authentication - panel, as either a sheet or window. It provides no extra methods, - but does have one additional delegate method. -*/ - -[ - object, - oleautomation, - hidden, - uuid(65EFE83B-A9E4-4516-8F3B-BAA25DA90FFD), - pointer_default(unique) -] -interface IWebDownload : IUnknown -{ - /* - + (BOOL)canResumeDownloadDecodedWithEncodingMIMEType:(NSString *)MIMEType - */ - HRESULT canResumeDownloadDecodedWithEncodingMIMEType([in] BSTR mimeType, [out, retval] BOOL* result); - - /* - - (void)cancel - */ - HRESULT cancel(); - - /* - - (void)cancelForResume(); - */ - HRESULT cancelForResume(); - - /* - - (void)start - */ - HRESULT start(); - - /* - - (BOOL)deletesFileUponFailure - */ - HRESULT deletesFileUponFailure([out, retval] BOOL* result); - - /* - - (id)initWithRequest:(NSURLRequest *)request delegate:(id)delegate - */ - HRESULT initWithRequest([in] IWebURLRequest* request, [in] IWebDownloadDelegate* delegate); - - /* - - (id)initWithResumeData:(NSData *)resumeData delegate:(id)delegate path:(NSString *)path - */ - HRESULT initToResumeWithBundle([in] BSTR bundlePath, [in] IWebDownloadDelegate* delegate); - - /* - - (String)bundlePathForTargetPath:(String)targetPath - */ - HRESULT bundlePathForTargetPath([in] BSTR target, [out, retval] BSTR* bundle); - - /* - - (NSURLRequest *)request - */ - HRESULT request([out, retval] IWebURLRequest** request); - - /* - - (void)setDeletesFileUponFailure:(BOOL)deletesFileUponFailure - */ - HRESULT setDeletesFileUponFailure([in] BOOL deletesFileUponFailure); - - /* - - (void)setDestination:(NSString *)path allowOverwrite:(BOOL)allowOverwrite - */ - HRESULT setDestination([in] BSTR path, [in] BOOL allowOverwrite); -} - - -/*! - @protocol WebDownloadDelegate - @discussion The WebDownloadDelegate delegate has one extra method used to choose - the right window when automatically prompting with a sheet. - @interface NSObject (WebDownloadDelegate) -*/ - -[ - object, - oleautomation, - uuid(16A32AE6-C862-40cd-9225-2CAF823F40F9), - pointer_default(unique) -] -interface IWebDownloadDelegate : IUnknown -{ - HRESULT decideDestinationWithSuggestedFilename([in] IWebDownload* download, [in] BSTR filename); - - HRESULT didCancelAuthenticationChallenge([in] IWebDownload* download, [in] IWebURLAuthenticationChallenge* challenge); - - HRESULT didCreateDestination([in] IWebDownload* download, [in] BSTR destination); - - HRESULT didFailWithError([in] IWebDownload* download, [in] IWebError* error); - - HRESULT didReceiveAuthenticationChallenge([in] IWebDownload* download, [in] IWebURLAuthenticationChallenge* challenge); - - HRESULT didReceiveDataOfLength([in] IWebDownload* download, [in] unsigned length); - - HRESULT didReceiveResponse([in] IWebDownload* download, [in] IWebURLResponse* response); - - HRESULT shouldDecodeSourceDataOfMIMEType([in] IWebDownload* download, [in] BSTR encodingType, [out, retval] BOOL* shouldDecode); - - HRESULT willResumeWithResponse([in] IWebDownload* download, [in] IWebURLResponse* response, [in] long long fromByte); - - HRESULT willSendRequest([in] IWebDownload* download, [in] IWebMutableURLRequest* request, [in] IWebURLResponse* redirectResponse, [out] IWebMutableURLRequest** finalRequest); - - HRESULT didBegin([in] IWebDownload* download); - - HRESULT didFinish([in] IWebDownload* download); -} diff --git a/WebKit/win/Interfaces/IWebEditingDelegate.idl b/WebKit/win/Interfaces/IWebEditingDelegate.idl deleted file mode 100644 index b92aad2..0000000 --- a/WebKit/win/Interfaces/IWebEditingDelegate.idl +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebNotification.idl"; -import "DOMCore.idl"; -import "DOMCSS.idl"; -import "DOMRange.idl"; -import "IWebUndoManager.idl"; -import "IWebView.idl"; -#endif - -interface IDOMCSSStyleDeclaration; -interface IDOMNode; -interface IDOMRange; -interface IWebView; -interface IWebNotification; -interface IWebUndoManager; - -typedef enum _WebViewInsertAction { - WebViewInsertActionTyped, - WebViewInsertActionPasted, - WebViewInsertActionDropped, -} WebViewInsertAction; - -[ - object, - oleautomation, - uuid(B0F960E7-FB81-447f-A958-E02DA02ADBB7), - pointer_default(unique) -] -interface IEnumSpellingGuesses : IUnknown -{ - HRESULT Next(ULONG celt, [out] BSTR* guess, [out] ULONG* pceltFetched); - HRESULT Skip(ULONG celt); - HRESULT Reset(void); - HRESULT Clone([out, retval] IEnumSpellingGuesses** ppenum); -}; - -[ - object, - oleautomation, - uuid(8B95C1B3-E1B3-4f97-80D6-2240417E3E0C), - pointer_default(unique) -] -interface IWebGrammarDetail : IUnknown -{ - HRESULT location([out, retval] int* value); - HRESULT length([out, retval] int* value); - HRESULT userDescription([out, retval] BSTR* value); - HRESULT guesses([out, retval] IEnumSpellingGuesses** guesses); -} - -[ - object, - oleautomation, - uuid(FABCC69A-5917-4242-A19A-42E8B62227A7), - pointer_default(unique) -] -interface IEnumWebGrammarDetails : IUnknown -{ - HRESULT Next(ULONG celt, [out] IWebGrammarDetail** detail, [out] ULONG* pceltFetched); - HRESULT Skip(ULONG celt); - HRESULT Reset(void); - HRESULT Clone([out, retval] IEnumSpellingGuesses** ppenum); -}; - -/* - @interface NSObject (WebViewEditingDelegate) -*/ -[ - object, - oleautomation, - uuid(2C75A1E3-EE9D-45c8-A385-19DE68AC5675), - pointer_default(unique) -] -interface IWebEditingDelegate : IUnknown -{ - /* - - (BOOL)webView:(WebView *)webView shouldBeginEditingInDOMRange:(DOMRange *)range; - */ - HRESULT shouldBeginEditingInDOMRange([in] IWebView* webView, [in] IDOMRange* range, [out, retval] BOOL* result); - - /* - - (BOOL)webView:(WebView *)webView shouldEndEditingInDOMRange:(DOMRange *)range; - */ - HRESULT shouldEndEditingInDOMRange([in] IWebView* webView, [in] IDOMRange* range, [out, retval] BOOL* result); - - /* - - (BOOL)webView:(WebView *)webView shouldInsertNode:(DOMNode *)node replacingDOMRange:(DOMRange *)range givenAction:(WebViewInsertAction)action; - */ - HRESULT shouldInsertNode([in] IWebView* webView, [in] IDOMNode* node, [in] IDOMRange* range, [in] WebViewInsertAction action); - - /* - - (BOOL)webView:(WebView *)webView shouldInsertText:(NSString *)text replacingDOMRange:(DOMRange *)range givenAction:(WebViewInsertAction)action; - */ - HRESULT shouldInsertText([in] IWebView* webView, [in] BSTR text, [in] IDOMRange* range, [in] WebViewInsertAction action, [out, retval] BOOL* result); - - /* - - (BOOL)webView:(WebView *)webView shouldDeleteDOMRange:(DOMRange *)range; - */ - HRESULT shouldDeleteDOMRange([in] IWebView* webView, [in] IDOMRange* range, [out, retval] BOOL* result); - - /* - - (BOOL)webView:(WebView *)webView shouldChangeSelectedDOMRange:(DOMRange *)currentRange toDOMRange:(DOMRange *)proposedRange affinity:(NSSelectionAffinity)selectionAffinity stillSelecting:(BOOL)flag; - */ - HRESULT shouldChangeSelectedDOMRange([in] IWebView* webView, [in] IDOMRange* currentRange, [in] IDOMRange* proposedRange, [in] WebSelectionAffinity selectionAffinity, [in] BOOL stillSelecting, [out, retval] BOOL* result); - /* - - (BOOL)webView:(WebView *)webView shouldApplyStyle:(DOMCSSStyleDeclaration *)style toElementsInDOMRange:(DOMRange *)range; - */ - HRESULT shouldApplyStyle([in] IWebView* webView, [in] IDOMCSSStyleDeclaration* style, [in] IDOMRange* range, [out, retval] BOOL* result); - - /* - - (BOOL)webView:(WebView *)webView shouldChangeTypingStyle:(DOMCSSStyleDeclaration *)currentStyle toStyle:(DOMCSSStyleDeclaration *)proposedStyle; - */ - HRESULT shouldChangeTypingStyle([in] IWebView* webView, [in] IDOMCSSStyleDeclaration* currentStyle, [in] IDOMCSSStyleDeclaration* proposedStyle, [out, retval] BOOL* result); - - /* - - (BOOL)webView:(WebView *)webView doCommandBySelector:(SEL)selector; - */ - HRESULT doPlatformCommand([in] IWebView* webView, [in] BSTR command, [out, retval] BOOL* result); - - /* - - (void)webViewDidBeginEditing:(NSNotification *)notification; - */ - HRESULT webViewDidBeginEditing([in] IWebNotification* notification); - - /* - - (void)webViewDidChange:(NSNotification *)notification; - */ - HRESULT webViewDidChange([in] IWebNotification* notification); - - /* - - (void)webViewDidEndEditing:(NSNotification *)notification; - */ - HRESULT webViewDidEndEditing([in] IWebNotification* notification); - - /* - - (void)webViewDidChangeTypingStyle:(NSNotification *)notification; - */ - HRESULT webViewDidChangeTypingStyle([in] IWebNotification* notification); - - /* - - (void)webViewDidChangeSelection:(NSNotification *)notification; - */ - HRESULT webViewDidChangeSelection([in] IWebNotification* notification); - - /* - - (NSUndoManager *)undoManagerForWebView:(WebView *)webView; - */ - HRESULT undoManagerForWebView([in] IWebView* webView, [out, retval] IWebUndoManager** undoManager); - - HRESULT ignoreWordInSpellDocument([in] IWebView* view, [in] BSTR word); - HRESULT learnWord([in] BSTR word); - HRESULT checkSpellingOfString([in] IWebView* view, [in] LPCTSTR text, [in] int length, [out] int* misspellingLocation, [out] int* misspellingLength); - HRESULT checkGrammarOfString([in] IWebView* view, [in] LPCTSTR text, [in] int length, [out] IEnumWebGrammarDetails** grammarDetails, [out] int* badGrammarLocation, [out] int* badGrammarLength); - HRESULT updateSpellingUIWithGrammarString([in] BSTR string, [in] int location, [in] int length, [in] BSTR userDescription, [in] BSTR* guesses, [in] int guessesCount); - HRESULT updateSpellingUIWithMisspelledWord([in] BSTR word); - HRESULT showSpellingUI([in] BOOL show); - HRESULT spellingUIIsShowing([out, retval] BOOL* result); - HRESULT guessesForWord([in] BSTR word, [out, retval] IEnumSpellingGuesses** guesses); - HRESULT closeSpellDocument([in] IWebView* view); - HRESULT sharedSpellCheckerExists([out, retval] BOOL* exists); - HRESULT preflightChosenSpellServer(); - HRESULT updateGrammar(); -} diff --git a/WebKit/win/Interfaces/IWebEmbeddedView.idl b/WebKit/win/Interfaces/IWebEmbeddedView.idl deleted file mode 100644 index 0a65ff7..0000000 --- a/WebKit/win/Interfaces/IWebEmbeddedView.idl +++ /dev/null @@ -1,41 +0,0 @@ -/*
- * Copyright (C) 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.
- *
- * 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
-
-[
- object,
- oleautomation,
- uuid(F2771780-84C2-4684-8D52-D4F923E67F71),
- pointer_default(unique)
-]
-interface IWebEmbeddedView : IUnknown
-{
- HRESULT createViewWindow([in] OLE_HANDLE parentWindow, [in] LPSIZE pluginSize, [out, retval] OLE_HANDLE* window);
-}
diff --git a/WebKit/win/Interfaces/IWebError.idl b/WebKit/win/Interfaces/IWebError.idl deleted file mode 100644 index 4353ac6..0000000 --- a/WebKit/win/Interfaces/IWebError.idl +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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. - */ - -cpp_quote("#define WebURLErrorDomain TEXT(\"CFURLErrorDomain\")") -/*! - @enum NSURL-related Error Codes - @abstract Constants used by NSError to indicate errors in the WebFoundation domain - @discussion Documentation on each constant forthcoming. -*/ -enum -{ - WebURLErrorUnknown = -1, - WebURLErrorCancelled = -999, - WebURLErrorBadURL = -1000, - WebURLErrorTimedOut = -1001, - WebURLErrorUnsupportedURL = -1002, - WebURLErrorCannotFindHost = -1003, - WebURLErrorCannotConnectToHost = -1004, - WebURLErrorNetworkConnectionLost = -1005, - WebURLErrorDNSLookupFailed = -1006, - WebURLErrorHTTPTooManyRedirects = -1007, - WebURLErrorResourceUnavailable = -1008, - WebURLErrorNotConnectedToInternet = -1009, - WebURLErrorRedirectToNonExistentLocation = -1010, - WebURLErrorBadServerResponse = -1011, - WebURLErrorUserCancelledAuthentication = -1012, - WebURLErrorUserAuthenticationRequired = -1013, - WebURLErrorZeroByteResource = -1014, - WebURLErrorFileDoesNotExist = -1100, - WebURLErrorFileIsDirectory = -1101, - WebURLErrorNoPermissionsToReadFile = -1102, - WebURLErrorSecureConnectionFailed = -1200, - WebURLErrorServerCertificateHasBadDate = -1201, - WebURLErrorServerCertificateUntrusted = -1202, - WebURLErrorServerCertificateHasUnknownRoot = -1203, - WebURLErrorServerCertificateNotYetValid = -1204, - WebURLErrorClientCertificateRejected = -1205, - WebURLErrorClientCertificateRequired = -1206, - WebURLErrorCannotLoadFromNetwork = -2000, - - // Download and file I/O errors - WebURLErrorCannotCreateFile = -3000, - WebURLErrorCannotOpenFile = -3001, - WebURLErrorCannotCloseFile = -3002, - WebURLErrorCannotWriteToFile = -3003, - WebURLErrorCannotRemoveFile = -3004, - WebURLErrorCannotMoveFile = -3005, - WebURLErrorDownloadDecodingFailedMidStream = -3006, - WebURLErrorDownloadDecodingFailedToComplete =-3007, -}; - -cpp_quote("#define WebKitErrorDomain TEXT(\"WebKitErrorDomain\")") -/*! - @enum - @abstract Policy errors - @constant WebKitErrorCannotShowMIMEType - @constant WebKitErrorCannotShowURL - @constant WebKitErrorFrameLoadInterruptedByPolicyChange -*/ -enum { - WebKitErrorCannotShowMIMEType = 100, - WebKitErrorCannotShowURL = 101, - WebKitErrorFrameLoadInterruptedByPolicyChange = 102, - WebKitErrorCannotUseRestrictedPort = 103, -}; - -/*! - @enum - @abstract Plug-in and java errors - @constant WebKitErrorCannotFindPlugIn - @constant WebKitErrorCannotLoadPlugIn - @constant WebKitErrorJavaUnavailable -*/ -enum { - WebKitErrorCannotFindPlugIn = 200, - WebKitErrorCannotLoadPlugIn = 201, - WebKitErrorJavaUnavailable = 202, -}; - -cpp_quote("#define WebKitErrorMIMETypeKey TEXT(\"WebKitErrorMIMETypeKey\")") -cpp_quote("#define WebKitErrorPlugInNameKey TEXT(\"WebKitErrorPlugInNameKey\")") -cpp_quote("#define WebKitErrorPlugInPageURLStringKey TEXT(\"WebKitErrorPlugInPageURLStringKey\")") - -cpp_quote("#define WebPOSIXErrorDomain TEXT(\"NSPOSIXErrorDomain\")") -cpp_quote("#define WebPOSIXErrorECONNRESET 54") - -#ifndef DO_NO_IMPORTS -import "oaidl.idl"; -import "ocidl.idl"; -#endif - -[ - object, - oleautomation, - hidden, - uuid(89E3B189-0B60-4d6b-A87A-3F1172CB5538), - pointer_default(unique) -] -interface IWebError : IUnknown -{ - HRESULT init([in] BSTR domain, [in] int code, [in] BSTR url); - - /* - - (int)code - */ - HRESULT code([out, retval] int* result); - - /* - - (NSString *)domain - */ - HRESULT domain([out, retval] BSTR* result); - - /* - - (NSString *)localizedDescription - */ - HRESULT localizedDescription([out, retval] BSTR* result); - - /* - - (NSString *)localizedFailureReason - */ - HRESULT localizedFailureReason([out, retval] BSTR* result); - - /* - - (NSArray *)localizedRecoveryOptions - */ - HRESULT localizedRecoveryOptions([out, retval] IEnumVARIANT** enumOptions); - - /* - - (NSString *)localizedRecoverySuggestion - */ - HRESULT localizedRecoverySuggestion([out, retval] BSTR* result); - - /* - - (id)recoverAttempter - */ - HRESULT recoverAttempter([out, retval] IUnknown** result); - - /* - - (NSDictionary *)userInfo - */ - HRESULT userInfo([out, retval] IPropertyBag** result); - - HRESULT failingURL([out, retval] BSTR* result); - - HRESULT isPolicyChangeError([out, retval] BOOL* result); -} diff --git a/WebKit/win/Interfaces/IWebErrorPrivate.idl b/WebKit/win/Interfaces/IWebErrorPrivate.idl deleted file mode 100644 index d450c88..0000000 --- a/WebKit/win/Interfaces/IWebErrorPrivate.idl +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - * - * 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. - */ - -cpp_quote("#define WebKitErrorPlugInCancelledConnection 203") -cpp_quote("// FIXME: WebKitErrorPlugInWillHandleLoad is used for the cancel we do to prevent loading plugin content twice. See <rdar://problem/4258008>") -cpp_quote("#define WebKitErrorPlugInWillHandleLoad 204") - -cpp_quote("#define WebErrorFailingURLKey TEXT(\"WebErrorFailingURLKey\")") - -#ifndef DO_NO_IMPORTS -import "oaidl.idl"; -import "ocidl.idl"; -#endif - -[ - object, - oleautomation, - uuid(19FED49C-7016-48a6-B5C6-07ADE116531B), - pointer_default(unique) -] - -interface IWebErrorPrivate : IUnknown -{ - HRESULT sslPeerCertificate([out, retval] OLE_HANDLE* result); -} diff --git a/WebKit/win/Interfaces/IWebFormDelegate.idl b/WebKit/win/Interfaces/IWebFormDelegate.idl deleted file mode 100644 index bf103c4..0000000 --- a/WebKit/win/Interfaces/IWebFormDelegate.idl +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "DOMHTML.idl"; -import "IWebFrame.idl"; -#endif - -interface IDOMElement; -interface IDOMHTMLInputElement; -interface IDOMHTMLTextAreaElement; -interface IWebFrame; - -/*! - @protocol WebFormSubmissionListener - @discussion . -*/ -[ - object, - oleautomation, - uuid(1911D650-035E-4204-8746-ABECF77A4C9B), - pointer_default(unique) -] -interface IWebFormSubmissionListener : IUnknown -{ - HRESULT continueSubmit(); -} - -/*! - @class WebFormDelegate - @discussion The WebFormDelegate class responds to all WebFormDelegate protocol - methods by doing nothing. It's provided for the convenience of clients who only want - to implement some of the above methods and ignore others. -*/ -/*! - @protocol WebFormDelegate - @discussion . - - Various methods send by controls that edit text to their delegates, which are all - analogous to similar methods in AppKit/NSControl.h. - These methods are forwarded from widgets used in forms to the WebFormDelegate. -*/ -[ - object, - oleautomation, - uuid(4CBEC1BD-ABC3-4bdb-8E5E-4D3BCF9E8C1E), - pointer_default(unique) -] -interface IWebFormDelegate : IUnknown -{ - //- (void)textFieldDidBeginEditing:(DOMHTMLInputElement *)element inFrame:(WebFrame *)frame; - HRESULT textFieldDidBeginEditing([in] IDOMHTMLInputElement* element, [in] IWebFrame* frame); - - //- (void)textFieldDidEndEditing:(DOMHTMLInputElement *)element inFrame:(WebFrame *)frame; - HRESULT textFieldDidEndEditing([in] IDOMHTMLInputElement* element, [in] IWebFrame* frame); - - //- (void)textDidChangeInTextField:(DOMHTMLInputElement *)element inFrame:(WebFrame *)frame; - HRESULT textDidChangeInTextField([in] IDOMHTMLInputElement* element, [in] IWebFrame* frame); - - //- (void)textDidChangeInTextArea:(DOMHTMLTextAreaElement *)element inFrame:(WebFrame *)frame; - HRESULT textDidChangeInTextArea([in] IDOMHTMLTextAreaElement* element, [in] IWebFrame* frame); - - //- (BOOL)textField:(DOMHTMLInputElement *)element doCommandBySelector:(SEL)commandSelector inFrame:(WebFrame *)frame; - HRESULT doPlatformCommand([in] IDOMHTMLInputElement* element, [in] BSTR command, [in] IWebFrame* frame, [out, retval] BOOL* result); - - //- (BOOL)textField:(DOMHTMLInputElement *)element shouldHandleEvent:(NSEvent *)event inFrame:(WebFrame *)frame; - [local] HRESULT shouldHandleEvent([in] IDOMHTMLInputElement* element, [in] void* event, [in] IWebFrame* frame, [out, retval] BOOL* result); - - // Sent when a form is just about to be submitted (before the load is started) - // listener must be sent continue when the delegate is done. - //- (void)frame:(WebFrame *)frame sourceFrame:(WebFrame *)sourceFrame willSubmitForm:(DOMElement *)form withValues:(NSDictionary *)values submissionListener:(id <WebFormSubmissionListener>)listener; - HRESULT willSubmitForm([in] IWebFrame* frame, [in] IWebFrame* sourceFrame, [in] IDOMElement* form, [in] IPropertyBag* values, [in] IWebFormSubmissionListener* listener); -} diff --git a/WebKit/win/Interfaces/IWebFrame.idl b/WebKit/win/Interfaces/IWebFrame.idl deleted file mode 100644 index 30af7b9..0000000 --- a/WebKit/win/Interfaces/IWebFrame.idl +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "DOMHTML.idl"; -import "IWebArchive.idl"; -import "IWebFrameView.idl"; -import "IWebView.idl"; -import "IWebURLRequest.idl"; -import "DOMCore.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* JSGlobalContextRef; -cpp_quote("#else") -cpp_quote("typedef struct OpaqueJSContext* JSGlobalContextRef;") -cpp_quote("#endif") - -interface IDOMDocument; -interface IDOMElement; -interface IDOMHTMLElement; -interface IWebURLRequest; -interface IWebArchive; -interface IWebDataSource; -interface IWebFramePrivate; -interface IWebFrameView; -interface IWebView; - -/*! - @class WebFrame - @discussion Every web page is represented by at least one WebFrame. A WebFrame - has a WebFrameView and a WebDataSource. - @interface WebFrame : NSObject -*/ -[ - object, - oleautomation, - uuid(B4B22EF7-DD43-4d01-A992-99C4A8B1F845), - pointer_default(unique) -] -interface IWebFrame : IUnknown -{ - /*! - @method name - @result The frame name. - - (NSString *)name; - */ - HRESULT name([out, retval] BSTR* frameName); - - /*! - @method webView - @result Returns the WebView for the document that includes this frame. - - (WebView *)webView; - */ - HRESULT webView([out, retval] IWebView** view); - - /*! - @method frameView - @result The WebFrameView for this frame. - - (WebFrameView *)frameView; - */ - HRESULT frameView([out, retval] IWebFrameView** view); - - /*! - @method DOMDocument - @abstract Returns the DOM document of the frame. - @description Returns nil if the frame does not contain a DOM document such as a standalone image. - - (DOMDocument *)DOMDocument; - */ - HRESULT DOMDocument([out, retval] IDOMDocument** document); - - /*! - @method frameElement - @abstract Returns the frame element of the frame. - @description The class of the result is either DOMHTMLFrameElement, DOMHTMLIFrameElement or DOMHTMLObjectElement. - Returns nil if the frame is the main frame since there is no frame element for the frame in this case. - - (DOMHTMLElement *)frameElement; - */ - HRESULT frameElement([out, retval] IDOMHTMLElement** frameElement); - - /*! - @method loadRequest: - @param request The web request to load. - - (void)loadRequest:(NSURLRequest *)request; - */ - HRESULT loadRequest([in] IWebURLRequest* request); - - /*! - @method loadData:MIMEType:textEncodingName:baseURL: - @param data The data to use for the main page of the document. - @param MIMEType The MIME type of the data. - @param encodingName The encoding of the data. - @param URL The base URL to apply to relative URLs within the document. - - (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)encodingName baseURL:(NSURL *)URL; - */ - HRESULT loadData([in] IStream* data, [in] BSTR mimeType, [in] BSTR textEncodingName, [in] BSTR url); - - /*! - @method loadHTMLString:baseURL: - @param string The string to use for the main page of the document. - @param URL The base URL to apply to relative URLs within the document. - - (void)loadHTMLString:(NSString *)string baseURL:(NSURL *)URL; - */ - HRESULT loadHTMLString([in] BSTR string, [in] BSTR baseURL); - - /*! - @method loadAlternateHTMLString:baseURL:forUnreachableURL: - @abstract Loads a page to display as a substitute for a URL that could not be reached. - @discussion This allows clients to display page-loading errors in the webview itself. - This is typically called while processing the WebFrameLoadDelegate method - -webView:didFailProvisionalLoadWithError:forFrame: or one of the the WebPolicyDelegate methods - -webView:decidePolicyForMIMEType:request:frame:decisionListener: or - -webView:unableToImplementPolicyWithError:frame:. If it is called from within one of those - three delegate methods then the back/forward list will be maintained appropriately. - @param string The string to use for the main page of the document. - @param baseURL The baseURL to apply to relative URLs within the document. - @param unreachableURL The URL for which this page will serve as alternate content. - - (void)loadAlternateHTMLString:(NSString *)string baseURL:(NSURL *)baseURL forUnreachableURL:(NSURL *)unreachableURL; - */ - HRESULT loadAlternateHTMLString([in] BSTR str, [in] BSTR baseURL, [in] BSTR unreachableURL); - - /*! - @method loadArchive: - @abstract Causes WebFrame to load a WebArchive. - @param archive The archive to be loaded. - - (void)loadArchive:(WebArchive *)archive; - */ - HRESULT loadArchive([in] IWebArchive* archive); - - /*! - @method dataSource - @discussion Returns the committed data source. Will return nil if the - provisional data source hasn't yet been loaded. - @result The datasource for this frame. - - (WebDataSource *)dataSource; - */ - HRESULT dataSource([out, retval] IWebDataSource** source); - - /*! - @method provisionalDataSource - @discussion Will return the provisional data source. The provisional data source will - be nil if no data source has been set on the frame, or the data source - has successfully transitioned to the committed data source. - @result The provisional datasource of this frame. - - (WebDataSource *)provisionalDataSource; - */ - HRESULT provisionalDataSource([out, retval] IWebDataSource** source); - - /*! - @method stopLoading - @discussion Stop any pending loads on the frame's data source, - and its children. - - (void)stopLoading; - */ - HRESULT stopLoading(); - - /*! - @method reload - - (void)reload; - */ - HRESULT reload(); - - /*! - @method findFrameNamed: - @discussion This method returns a frame with the given name. findFrameNamed returns self - for _self and _current, the parent frame for _parent and the main frame for _top. - findFrameNamed returns self for _parent and _top if the receiver is the mainFrame. - findFrameNamed first searches from the current frame to all descending frames then the - rest of the frames in the WebView. If still not found, findFrameNamed searches the - frames of the other WebViews. - @param name The name of the frame to find. - @result The frame matching the provided name. nil if the frame is not found. - - (WebFrame *)findFrameNamed:(NSString *)name; - */ - HRESULT findFrameNamed([in] BSTR name, [out, retval] IWebFrame** frame); - - /*! - @method parentFrame - @result The frame containing this frame, or nil if this is a top level frame. - - (WebFrame *)parentFrame; - */ - HRESULT parentFrame([out, retval] IWebFrame** frame); - - /*! - @method childFrames - @discussion The frames in the array are associated with a frame set or iframe. - @result Returns an array of WebFrame. - - (NSArray *)childFrames; - */ - HRESULT childFrames([out, retval] IEnumVARIANT** enumFrames); - - - /* This is a DOMElement on mac, but maybe should be a DOMHTMLFrameElement? */ - HRESULT currentForm([out, retval] IDOMElement** frameElement); - - /*! - @method setAllowsScrolling: - @abstract Sets whether the WebFrameView allows its document to be scrolled - @param flag YES to allow the document to be scrolled, NO to disallow scrolling - - (void)setAllowsScrolling:(BOOL)flag; - */ - HRESULT setAllowsScrolling([in] BOOL flag); - - /*! - @method allowsScrolling - @abstract Returns whether the WebFrameView allows its document to be scrolled - @result YES if the document is allowed to scroll, otherwise NO - - (BOOL)allowsScrolling; - */ - HRESULT allowsScrolling([out, retval] BOOL* flag); - - /*! - @method globalContext - @result The frame's global JavaScript execution context. Use this method to - bridge between the WebKit and JavaScriptCore APIs. - */ - [local] JSGlobalContextRef globalContext(); - - /*! - @method setIsDisconnected - @abstract Set whether a frame is disconnected - @param flag YES to mark the frame as disconnected, NO keeps it a regular frame - */ - HRESULT setIsDisconnected([in] BOOL flag); - - /*! - @method setExcludeFromTextSearch - @abstract Set whether a frame should be excluded from text search - @param flag YES to mark the frame as not searchable - */ - HRESULT setExcludeFromTextSearch([in] BOOL flag); -} diff --git a/WebKit/win/Interfaces/IWebFrameLoadDelegate.idl b/WebKit/win/Interfaces/IWebFrameLoadDelegate.idl deleted file mode 100644 index b46ca6d..0000000 --- a/WebKit/win/Interfaces/IWebFrameLoadDelegate.idl +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebScriptObject.idl"; -import "IWebView.idl"; -import "IWebFrame.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; -interface IWebView; - -/*! - @category WebFrameLoadDelegate - @discussion A WebView's WebFrameLoadDelegate tracks the loading progress of its frames. - When a data source of a frame starts to load, the data source is considered "provisional". - Once at least one byte is received, the data source is considered "committed". This is done - so the contents of the frame will not be lost if the new data source fails to successfully load. - @interface NSObject (WebFrameLoadDelegate) -*/ - -[ - object, - oleautomation, - uuid(4CD809C2-73A5-44ee-B0D7-D1863DFE9F57), - pointer_default(unique) -] -interface IWebFrameLoadDelegate : IUnknown -{ - /*! - @method webView:didStartProvisionalLoadForFrame: - @abstract Notifies the delegate that the provisional load of a frame has started - @param webView The WebView sending the message - @param frame The frame for which the provisional load has started - @discussion This method is called after the provisional data source of a frame - has started to load. - - (void)webView:(WebView *)sender didStartProvisionalLoadForFrame:(WebFrame *)frame; - */ - HRESULT didStartProvisionalLoadForFrame([in] IWebView* webView, [in] IWebFrame* frame); - - /*! - @method webView:didReceiveServerRedirectForProvisionalLoadForFrame: - @abstract Notifies the delegate that a server redirect occurred during the provisional load - @param webView The WebView sending the message - @param frame The frame for which the redirect occurred - - (void)webView:(WebView *)sender didReceiveServerRedirectForProvisionalLoadForFrame:(WebFrame *)frame; - */ - HRESULT didReceiveServerRedirectForProvisionalLoadForFrame([in] IWebView* webView, [in] IWebFrame* frame); - - /*! - @method webView:didFailProvisionalLoadWithError:forFrame: - @abstract Notifies the delegate that the provisional load has failed - @param webView The WebView sending the message - @param error The error that occurred - @param frame The frame for which the error occurred - @discussion This method is called after the provisional data source has failed to load. - The frame will continue to display the contents of the committed data source if there is one. - - (void)webView:(WebView *)sender didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)frame; - */ - HRESULT didFailProvisionalLoadWithError([in] IWebView* webView, [in] IWebError* error, [in] IWebFrame* frame); - - /*! - @method webView:didCommitLoadForFrame: - @abstract Notifies the delegate that the load has changed from provisional to committed - @param webView The WebView sending the message - @param frame The frame for which the load has committed - @discussion This method is called after the provisional data source has become the - committed data source. - - In some cases, a single load may be committed more than once. This happens - in the case of multipart/x-mixed-replace, also known as "server push". In this case, - a single location change leads to multiple documents that are loaded in sequence. When - this happens, a new commit will be sent for each document. - - (void)webView:(WebView *)sender didCommitLoadForFrame:(WebFrame *)frame; - */ - HRESULT didCommitLoadForFrame([in] IWebView* webView, [in] IWebFrame* frame); - - /*! - @method webView:didReceiveTitle:forFrame: - @abstract Notifies the delegate that the page title for a frame has been received - @param webView The WebView sending the message - @param title The new page title - @param frame The frame for which the title has been received - @discussion The title may update during loading; clients should be prepared for this. - - (void)webView:(WebView *)sender didReceiveTitle:(NSString *)title forFrame:(WebFrame *)frame; - */ - HRESULT didReceiveTitle([in] IWebView* webView, [in] BSTR title, [in] IWebFrame* frame); - - /*! - @method webView:didReceiveIcon:forFrame: - @abstract Notifies the delegate that a page icon image for a frame has been received - @param webView The WebView sending the message - @param image The icon image. Also known as a "favicon". - @param frame The frame for which a page icon has been received - - (void)webView:(WebView *)sender didReceiveIcon:(NSImage *)image forFrame:(WebFrame *)frame; - */ - HRESULT didReceiveIcon([in] IWebView* webView, [in] OLE_HANDLE hBitmap, [in] IWebFrame* frame); - - /*! - @method webView:didFinishLoadForFrame: - @abstract Notifies the delegate that the committed load of a frame has completed - @param webView The WebView sending the message - @param frame The frame that finished loading - @discussion This method is called after the committed data source of a frame has successfully loaded - and will only be called when all subresources such as images and stylesheets are done loading. - Plug-In content and JavaScript-requested loads may occur after this method is called. - - (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame; - */ - HRESULT didFinishLoadForFrame([in] IWebView* webView, [in] IWebFrame* frame); - - /*! - @method webView:didFailLoadWithError:forFrame: - @abstract Notifies the delegate that the committed load of a frame has failed - @param webView The WebView sending the message - @param error The error that occurred - @param frame The frame that failed to load - @discussion This method is called after a data source has committed but failed to completely load. - - (void)webView:(WebView *)sender didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame; - */ - HRESULT didFailLoadWithError([in] IWebView* webView, [in] IWebError* error, [in] IWebFrame* forFrame); - - /*! - @method webView:didChangeLocationWithinPageForFrame: - @abstract Notifies the delegate that the scroll position in a frame has changed - @param webView The WebView sending the message - @param frame The frame that scrolled - @discussion This method is called when anchors within a page have been clicked. - - (void)webView:(WebView *)sender didChangeLocationWithinPageForFrame:(WebFrame *)frame; - */ - HRESULT didChangeLocationWithinPageForFrame([in] IWebView* webView, [in] IWebFrame* frame); - - /*! - @method webView:willPerformClientRedirectToURL:delay:fireDate:forFrame: - @abstract Notifies the delegate that a frame will perform a client-side redirect - @param webView The WebView sending the message - @param URL The URL to be redirected to - @param seconds Seconds in which the redirect will happen - @param date The fire date - @param frame The frame on which the redirect will occur - @discussion This method can be used to continue progress feedback while a client-side - redirect is pending. - - (void)webView:(WebView *)sender willPerformClientRedirectToURL:(NSURL *)URL delay:(NSTimeInterval)seconds fireDate:(NSDate *)date forFrame:(WebFrame *)frame; - */ - HRESULT willPerformClientRedirectToURL([in] IWebView* webView, [in] BSTR url, [in] double delaySeconds, [in] DATE fireDate, [in] IWebFrame* frame); - - /*! - @method webView:didCancelClientRedirectForFrame: - @abstract Notifies the delegate that a pending client-side redirect has been cancelled - @param webView The WebView sending the message - @param frame The frame for which the pending redirect was cancelled - @discussion A client-side redirect can be cancelled if a frame changes location before the timeout. - - (void)webView:(WebView *)sender didCancelClientRedirectForFrame:(WebFrame *)frame; - */ - HRESULT didCancelClientRedirectForFrame([in] IWebView* webView, [in] IWebFrame* frame); - - /*! - @method webView:willCloseFrame: - @abstract Notifies the delegate that a frame will be closed - @param webView The WebView sending the message - @param frame The frame that will be closed - @discussion This method is called right before WebKit is done with the frame - and the objects that it contains. - - (void)webView:(WebView *)sender willCloseFrame:(WebFrame *)frame; - */ - HRESULT willCloseFrame([in] IWebView* webView, [in] IWebFrame* frame); - - /*! - @method webView:windowScriptObjectAvailable: - @abstract Notifies the delegate that the scripting object for a page is available. This is called - before the page is loaded. It may be useful to allow delegates to bind native objects to the window. - @param webView The webView sending the message. - @param windowScriptObject The WebScriptObject for the window in the scripting environment. - - (void)webView:(WebView *)webView windowScriptObjectAvailable:(WebScriptObject *)windowScriptObject; - */ - [local] HRESULT windowScriptObjectAvailable([in] IWebView* webView, [in] JSContextRef context, [in] JSObjectRef windowScriptObject); -} - -[ - object, - oleautomation, - uuid(3354665B-84BA-4fdf-B35E-BF5CF9D96026), - pointer_default(unique) -] -interface IWebFrameLoadDelegate2 : IWebFrameLoadDelegate -{ - [local] HRESULT didClearWindowObject([in] IWebView* webView, [in] JSContextRef context, [in] JSObjectRef windowScriptObject, [in] IWebFrame* frame); -} diff --git a/WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate.idl b/WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate.idl deleted file mode 100644 index 79707a3..0000000 --- a/WebKit/win/Interfaces/IWebFrameLoadDelegatePrivate.idl +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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; - -[ - object, - oleautomation, - uuid(32DC2531-948D-400e-A82F-FE6668B61A0B), - pointer_default(unique) -] -interface IWebFrameLoadDelegatePrivate : IUnknown -{ - //- (void)webView:(WebView *)sender didFinishDocumentLoadForFrame:(WebFrame *)frame; - HRESULT didFinishDocumentLoadForFrame([in] IWebView* sender, [in] IWebFrame* frame); - - //- (void)webView:(WebView *)sender didFirstLayoutInFrame:(WebFrame *)frame; - HRESULT didFirstLayoutInFrame([in] IWebView* sender, [in] IWebFrame* frame); - - // Addresses 4192534. Private API for now. - //- (void)webView:(WebView *)sender didHandleOnloadEventsForFrame:(WebFrame *)frame; - HRESULT didHandleOnloadEventsForFrame([in] IWebView* sender, [in] IWebFrame* frame); -} diff --git a/WebKit/win/Interfaces/IWebFramePrivate.idl b/WebKit/win/Interfaces/IWebFramePrivate.idl deleted file mode 100755 index bd7c0b6..0000000 --- a/WebKit/win/Interfaces/IWebFramePrivate.idl +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -interface IWebFrame; -interface IWebIconFetcher; -interface IWebIconFetcherDelegate; - -typedef enum { - WebFrameLoadTypeStandard, - WebFrameLoadTypeBack, - WebFrameLoadTypeForward, - WebFrameLoadTypeIndexedBackForward, // a multi-item hop in the backforward list - WebFrameLoadTypeReload, - WebFrameLoadTypeReloadAllowingStaleData, - WebFrameLoadTypeSame, // user loads same URL again (but not reload button) - WebFrameLoadTypeRedirectWithLockedHistory, - WebFrameLoadTypeReplace -} WebFrameLoadType; - -[ - object, - oleautomation, - uuid(A1657D07-4881-4475-9D10-76548731D448), - pointer_default(unique) -] - -interface IWebFramePrivate : IUnknown -{ - HRESULT renderTreeAsExternalRepresentation([out, retval] BSTR* result); - HRESULT scrollOffset([out, retval] SIZE* offset); - - // FIXME: This shouldn't be needed once IWebDocumentView is implemented. - HRESULT layout(); - HRESULT firstLayoutDone([out, retval] BOOL* result); - HRESULT loadType([out, retval] WebFrameLoadType* type); - - HRESULT setInPrintingMode([in] BOOL value, [in] HDC printDC); - HRESULT getPrintedPageCount([in] HDC printDC, [out, retval] UINT* pageCount); - [local] HRESULT spoolPages([in] HDC printDC, [in] UINT startPage, [in] UINT endPage, [out, retval] void* ctx); - - HRESULT isFrameSet([out, retval] BOOL* result); - HRESULT string([out, retval] BSTR* result); - - HRESULT size([out, retval] SIZE* size); - HRESULT hasScrollBars([out, retval] BOOL* result); - HRESULT contentBounds([out, retval] RECT* result); - HRESULT frameBounds([out, retval] RECT* result); - - HRESULT isDescendantOfFrame([in] IWebFrame* ancestor, [out, retval] BOOL* result); - - HRESULT pendingFrameUnloadEventCount([out, retval] UINT* result); - - HRESULT fetchApplicationIcon([in] IWebIconFetcherDelegate* delegate, [out, retval] IWebIconFetcher** result); - - HRESULT paintDocumentRectToContext([in] RECT rect, [in] OLE_HANDLE deviceContext); - - HRESULT elementDoesAutoComplete([in] IDOMElement* element, [out, retval] BOOL* result); -} diff --git a/WebKit/win/Interfaces/IWebFrameView.idl b/WebKit/win/Interfaces/IWebFrameView.idl deleted file mode 100644 index d5c82a1..0000000 --- a/WebKit/win/Interfaces/IWebFrameView.idl +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebDocument.idl"; -#endif - -/*! - @class WebFrameView - @interface WebFrameView : NSView -*/ -interface IWebFrame; -interface IWebDocumentView; - -[ - object, - oleautomation, - uuid(E23E1B15-78F6-4e89-AD2E-49992A040A35), - pointer_default(unique) -] -interface IWebFrameView : IUnknown -{ - /*! - @method webFrame - @abstract Returns the WebFrame associated with this WebFrameView - @result The WebFrameView's frame. - - (WebFrame *)webFrame; - */ - HRESULT webFrame([out, retval] IWebFrame** frame); - - /*! - @method documentView - @abstract Returns the WebFrameView's document subview - @result The subview that renders the WebFrameView's contents - - (NSView <WebDocumentView> *)documentView; - */ - HRESULT documentView([out, retval] IWebDocumentView** view); - - /*! - @method setAllowsScrolling: - @abstract Sets whether the WebFrameView allows its document to be scrolled - @param flag YES to allow the document to be scrolled, NO to disallow scrolling - - (void)setAllowsScrolling:(BOOL)flag; - */ - HRESULT setAllowsScrolling([in] BOOL flag); - - /*! - @method allowsScrolling - @abstract Returns whether the WebFrameView allows its document to be scrolled - @result YES if the document is allowed to scroll, otherwise NO - - (BOOL)allowsScrolling; - */ - HRESULT allowsScrolling([out, retval] BOOL* flag); -} diff --git a/WebKit/win/Interfaces/IWebHTMLRepresentation.idl b/WebKit/win/Interfaces/IWebHTMLRepresentation.idl deleted file mode 100644 index 7fbd451..0000000 --- a/WebKit/win/Interfaces/IWebHTMLRepresentation.idl +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "DOMCore.idl"; -#endif - -interface IDOMElement; -interface IDOMNode; - -/*! - @class WebHTMLRepresentation -*/ -[ - object, - oleautomation, - uuid(E043542A-9545-4de3-8DF0-794FD6811CB1), - pointer_default(unique) -] -interface IWebHTMLRepresentation : IUnknown -{ - /* - + (NSArray *)supportedMIMETypes; - */ - HRESULT supportedMIMETypes([in, out] BSTR* types, [in, out] int* cTypes); - - /* - + (NSArray *)supportedNonImageMIMETypes; - */ - HRESULT supportedNonImageMIMETypes([in, out] BSTR* types, [in, out] int* cTypes); - - /* - + (NSArray *)supportedImageMIMETypes; - */ - HRESULT supportedImageMIMETypes([in, out] BSTR* types, [in, out] int* cTypes); - - /* - - (NSAttributedString *)attributedStringFrom:(DOMNode *)startNode startOffset:(int)startOffset to:(DOMNode *)endNode endOffset:(int)endOffset; - */ - HRESULT attributedStringFromDOMNodes([in] IDOMNode* startNode, [in] int startOffset, [in] IDOMNode* endNode, [in] int endOffset, [out, retval] IDataObject** attributedString); - - /* - - (DOMElement *)elementWithName:(NSString *)name inForm:(DOMElement *)form; - */ - HRESULT elementWithName([in] BSTR name, [in] IDOMElement* form, [out, retval] IDOMElement** element); - - /* - - (BOOL)elementDoesAutoComplete:(DOMElement *)element; - */ - HRESULT elementDoesAutoComplete([in] IDOMElement* element, [out, retval] BOOL* result); - - /* - - (BOOL)elementIsPassword:(DOMElement *)element; - */ - HRESULT elementIsPassword([in] IDOMElement* element, [out, retval] BOOL* result); - - /* - - (DOMElement *)formForElement:(DOMElement *)element; - */ - HRESULT formForElement([in] IDOMElement* element, [out, retval] IDOMElement** form); - - /* - - (DOMElement *)currentForm; - */ - HRESULT currentForm([out, retval] IDOMElement** form); - - /* - - (NSArray *)controlsInForm:(DOMElement *)form; - */ - HRESULT controlsInForm([in] IDOMElement* form, [in, out] IDOMElement** controls, [in, out] int* cControls); - - /* - - (NSString *)searchForLabels:(NSArray *)labels beforeElement:(DOMElement *)element; - */ - HRESULT searchForLabels([in, size_is(cLabels)] BSTR* labels, [in] int cLabels, [in] IDOMElement* beforeElement, [out, retval] BSTR* result); - - /* - - (NSString *)matchLabels:(NSArray *)labels againstElement:(DOMElement *)element; - */ - HRESULT matchLabels([in, size_is(cLabels)] BSTR* labels, [in] int cLabels, [in] IDOMElement* againstElement, [out, retval] BSTR* result); -} diff --git a/WebKit/win/Interfaces/IWebHTTPURLResponse.idl b/WebKit/win/Interfaces/IWebHTTPURLResponse.idl deleted file mode 100644 index dd4219e..0000000 --- a/WebKit/win/Interfaces/IWebHTTPURLResponse.idl +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebURLResponse.idl"; -#endif - -[ - object, - oleautomation, - uuid(56B54483-FA29-4ce5-96FA-2D9B81D57162), - pointer_default(unique) -] -interface IWebHTTPURLResponse : IWebURLResponse -{ - HRESULT allHeaderFields([out, retval] IPropertyBag** headerFields); - HRESULT localizedStringForStatusCode([in] int statusCode, [out, retval] BSTR* statusString); - HRESULT statusCode([out, retval] int* statusCode); - HRESULT isAttachment([out, retval] BOOL* attachment); -} diff --git a/WebKit/win/Interfaces/IWebHistory.idl b/WebKit/win/Interfaces/IWebHistory.idl deleted file mode 100644 index a8b55d6..0000000 --- a/WebKit/win/Interfaces/IWebHistory.idl +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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. - */ - -/* - @discussion Notifications sent when history is modified. - @constant WebHistoryItemsAddedNotification Posted from addItems:. This - notification comes with a userInfo dictionary that contains the array of - items added. The key for the array is WebHistoryItemsKey. - @constant WebHistoryItemsRemovedNotification Posted from removeItems:. - This notification comes with a userInfo dictionary that contains the array of - items removed. The key for the array is WebHistoryItemsKey. - @constant WebHistoryAllItemsRemovedNotification Posted from removeAllItems - @constant WebHistoryLoadedNotification Posted from loadFromURL:error:. -*/ -cpp_quote("#define WebHistoryItemsAddedNotification TEXT(\"WebHistoryItemsAddedNotification\")") -cpp_quote("#define WebHistoryItemsRemovedNotification TEXT(\"WebHistoryItemsRemovedNotification\")") -cpp_quote("#define WebHistoryAllItemsRemovedNotification TEXT(\"WebHistoryAllItemsRemovedNotification\")") -cpp_quote("#define WebHistoryLoadedNotification TEXT(\"WebHistoryLoadedNotification\")") -cpp_quote("#define WebHistoryItemsDiscardedWhileLoadingNotification TEXT(\"WebHistoryItemsDiscardedWhileLoadingNotification\")") -cpp_quote("#define WebHistorySavedNotification TEXT(\"WebHistorySavedNotification\")") - -#ifndef DO_NO_IMPORTS -import "oaidl.idl"; -import "ocidl.idl"; -import "IWebError.idl"; -import "IWebHistoryItem.idl"; -#endif - -interface IWebError; -interface IWebHistoryItem; - -/*! - @class WebHistory - @discussion WebHistory is used to track pages that have been loaded - by WebKit. -*/ -[ - object, - oleautomation, - hidden, - uuid(F34E4B1A-361D-4b9f-9A3F-D869DCD97F9A), - pointer_default(unique) -] -interface IWebHistory : IUnknown -{ - /*! - @method optionalSharedHistory - @abstract Returns a shared WebHistory instance initialized with the default history file. - @result A WebHistory object. - + (WebHistory *)optionalSharedHistory; - */ - HRESULT optionalSharedHistory([out, retval] IWebHistory** history); - - /*! - @method setOptionalSharedHistory: - @param history The history to use for the global WebHistory. - + (void)setOptionalSharedHistory:(WebHistory *)history; - */ - HRESULT setOptionalSharedHistory([in] IWebHistory* history); - - /*! - @method loadFromURL:error: - @param URL The URL to use to initialize the WebHistory. - @param error Set to nil or an NSError instance if an error occurred. - @abstract The designated initializer for WebHistory. - @result Returns YES if successful, NO otherwise. - - (BOOL)loadFromURL:(NSURL *)URL error:(NSError **)error; - */ - HRESULT loadFromURL([in] BSTR url, [out] IWebError** error, [out, retval] BOOL* succeeded); - - /*! - @method saveToURL:error: - @discussion Save history to URL. It is the client's responsibility to call this at appropriate times. - @param URL The URL to use to save the WebHistory. - @param error Set to nil or an NSError instance if an error occurred. - @result Returns YES if successful, NO otherwise. - - (BOOL)saveToURL:(NSURL *)URL error:(NSError **)error; - */ - HRESULT saveToURL([in] BSTR url, [out] IWebError** error, [out, retval] BOOL* succeeded); - - /*! - @method addItems: - @param newItems An array of WebHistoryItems to add to the WebHistory. - - (void)addItems:(NSArray *)newItems; - */ - HRESULT addItems([in] int itemCount, [in] IWebHistoryItem** items); - - /*! - @method removeItems: - @param items An array of WebHistoryItems to remove from the WebHistory. - - (void)removeItems:(NSArray *)items; - */ - HRESULT removeItems([in] int itemCount, [in] IWebHistoryItem** items); - - /*! - @method removeAllItems - - (void)removeAllItems; - */ - HRESULT removeAllItems(); - - /*! - @method orderedLastVisitedDays - @discussion Get an array of NSCalendarDates, each one representing a unique day that contains one - or more history items, ordered from most recent to oldest. - @result Returns an array of NSCalendarDates for which history items exist in the WebHistory. - - ADVISORY NOTE: This method may change for the 1.0 SDK. - - (NSArray *)orderedLastVisitedDays; - */ - HRESULT orderedLastVisitedDays([in, out] int* count, [in] DATE* calendarDates); - - /*! - @method orderedItemsLastVisitedOnDay: - @discussion Get an array of WebHistoryItem that were last visited on the day represented by the - specified NSCalendarDate, ordered from most recent to oldest. - @param calendarDate A date identifying the unique day of interest. - @result Returns an array of WebHistoryItems last visited on the indicated day. - - ADVISORY NOTE: This method may change for the 1.0 SDK. - - (NSArray *)orderedItemsLastVisitedOnDay:(NSCalendarDate *)calendarDate; - */ - HRESULT orderedItemsLastVisitedOnDay([in, out] int* count, [in] IWebHistoryItem** items, [in] DATE calendarDate); - - /*! - @method itemForURL: - @abstract Get an item for a specific URL - @param URL The URL of the history item to search for - @result Returns an item matching the URL - - (WebHistoryItem *)itemForURL:(NSURL *)URL; - */ - HRESULT itemForURL([in] BSTR url, [out, retval] IWebHistoryItem** item); - - /*! - @method setHistoryItemLimit: - @discussion Limits the number of items that will be stored by the WebHistory. - @param limit The maximum number of items that will be stored by the WebHistory. - - (void)setHistoryItemLimit:(int)limit; - */ - HRESULT setHistoryItemLimit([in] int limit); - - /*! - @method historyItemLimit - @result The maximum number of items that will be stored by the WebHistory. - - (int)historyItemLimit; - */ - HRESULT historyItemLimit([out, retval] int* limit); - - /*! - @method setHistoryAgeInDaysLimit: - @discussion setHistoryAgeInDaysLimit: sets the maximum number of days to be read from - stored history. - @param limit The maximum number of days to be read from stored history. - - (void)setHistoryAgeInDaysLimit:(int)limit; - */ - HRESULT setHistoryAgeInDaysLimit([in] int limit); - - /*! - @method historyAgeInDaysLimit - @return Returns the maximum number of days to be read from stored history. - - (int)historyAgeInDaysLimit; - */ - HRESULT historyAgeInDaysLimit([out, retval] int* limit); -}
\ No newline at end of file diff --git a/WebKit/win/Interfaces/IWebHistoryItem.idl b/WebKit/win/Interfaces/IWebHistoryItem.idl deleted file mode 100644 index 21703d5..0000000 --- a/WebKit/win/Interfaces/IWebHistoryItem.idl +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -/*! - @class WebHistoryItem - @discussion WebHistoryItems are created by WebKit to represent pages visited. - The WebBackForwardList and WebHistory classes both use WebHistoryItems to represent - pages visited. With the exception of the displayTitle, the properties of - WebHistoryItems are set by WebKit. WebHistoryItems are normally never created directly. -*/ -[ - object, - oleautomation, - hidden, - uuid(1E2970AE-72B7-4500-A7A0-12B0FFEB91FC), - pointer_default(unique) -] -interface IWebHistoryItem : IUnknown -{ - /*! - @method initWithURLString:title:lastVisitedTimeInterval: - @param URLString The URL string for the item. - @param title The title to use for the item. This is normally the <title> of a page. - @param time The time used to indicate when the item was used. - @abstract Initialize a new WebHistoryItem - @discussion WebHistoryItems are normally created for you by the WebKit. - You may use this method to prepopulate a WebBackForwardList, or create - 'artificial' items to add to a WebBackForwardList. When first initialized - the URLString and originalURLString will be the same. - - (id)initWithURLString:(NSString *)URLString title:(NSString *)title lastVisitedTimeInterval:(NSTimeInterval)time; - */ - HRESULT initWithURLString([in] BSTR urlString, [in] BSTR title, [in] DATE lastVisited); - - /*! - @method originalURLString - @abstract The string representation of the originial URL of this item. - This value is normally set by the WebKit. - @result The string corresponding to the initial URL of this item. - - (NSString *)originalURLString; - */ - HRESULT originalURLString([out, retval] BSTR* url); - - /*! - @method URLString - @abstract The string representation of the URL represented by this item. - @discussion The URLString may be different than the originalURLString if the page - redirected to a new location. This value is normally set by the WebKit. - @result The string corresponding to the final URL of this item. - - (NSString *)URLString; - */ - HRESULT URLString([out, retval] BSTR* url); - - - /*! - @method title - @abstract The title of the page represented by this item. - @discussion This title cannot be changed by the client. This value - is normally set by the WebKit when a page title for the item is received. - @result The title of this item. - - (NSString *)title; - */ - HRESULT title([out, retval] BSTR* pageTitle); - - /*! - @method lastVisitedTimeInterval - @abstract The last time the page represented by this item was visited. The interval - is since the reference date as determined by NSDate. This value is normally set by - the WebKit. - @result The last time this item was visited. - - (NSTimeInterval)lastVisitedTimeInterval; - */ - HRESULT lastVisitedTimeInterval([out, retval] DATE* lastVisited); - - /*! - @method setAlternateTitle: - @param alternateTitle The new display title for this item. - @abstract A title that may be used by the client to display this item. - - (void)setAlternateTitle:(NSString *)alternateTitle; - */ - HRESULT setAlternateTitle([in] BSTR title); - - /* - @method title - @abstract A title that may be used by the client to display this item. - @result The alternate title for this item. - - (NSString *)alternateTitle; - */ - HRESULT alternateTitle([out, retval] BSTR* title); - - /*! - @method icon - @abstract The favorite icon of the page represented by this item. - @discussion This icon returned will be determined by the WebKit. - @result The icon associated with this item's URL. - - (NSImage *)icon; - */ - HRESULT icon([out, retval] OLE_HANDLE* hBitmap); -} diff --git a/WebKit/win/Interfaces/IWebHistoryItemPrivate.idl b/WebKit/win/Interfaces/IWebHistoryItemPrivate.idl deleted file mode 100644 index aa8c162..0000000 --- a/WebKit/win/Interfaces/IWebHistoryItemPrivate.idl +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebHistoryItem.idl"; -#endif - -interface IWebHistoryItem; - -[ - object, - oleautomation, - uuid(E9D5DC2C-192F-4795-B0EC-4E770E539D97), - pointer_default(unique) -] -interface IWebHistoryItemPrivate : IUnknown -{ - [local] HRESULT initFromDictionaryRepresentation([in] void* dictionary); - [local] HRESULT dictionaryRepresentation([out, retval] void** dictionary); - HRESULT visitCount([out, retval] int *count); - HRESULT setVisitCount([in] int count); - HRESULT hasURLString([out, retval] BOOL* hasURL); - HRESULT mergeAutoCompleteHints([in] IWebHistoryItem* otherItem); - HRESULT setLastVisitedTimeInterval([in] DATE time); - HRESULT setTitle([in] BSTR title); - HRESULT RSSFeedReferrer([out, retval] BSTR* url); - HRESULT setRSSFeedReferrer([in] BSTR url); - HRESULT hasPageCache([out, retval] BOOL* hasCache); - HRESULT setHasPageCache([in] BOOL hasCache); - - HRESULT target([out, retval] BSTR* target); - HRESULT isTargetItem([out, retval] BOOL* result); - [local] HRESULT children([out] unsigned* childCount, [out, retval] SAFEARRAY** children); -} diff --git a/WebKit/win/Interfaces/IWebIconDatabase.idl b/WebKit/win/Interfaces/IWebIconDatabase.idl deleted file mode 100644 index 0dfbf1a..0000000 --- a/WebKit/win/Interfaces/IWebIconDatabase.idl +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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. - */ - -cpp_quote("#define WebIconDatabaseDidAddIconNotification TEXT(\"WebIconDatabaseDidAddIconNotification\")") -cpp_quote("#define WebIconNotificationUserInfoURLKey TEXT(\"WebIconNotificationUserInfoURLKey\")") -cpp_quote("#define WebIconDatabaseDidRemoveAllIconsNotification TEXT(\"WebIconDatabaseDidRemoveAllIconsNotification\")") - -#ifndef DO_NO_IMPORTS -import "oaidl.idl"; -import "ocidl.idl"; -#endif - -/*! - @class WebIconDatabase - @discussion Features: - - memory cache icons at different sizes - - disk storage - - icon update notification - - Uses: - - WebIconLoader to cache icon images - - UI elements to retrieve icons that represent site URLs. - - Save icons to disk for later use. - - Every icon in the database has a retain count. If an icon has a retain count greater than 0, it will be written to disk for later use. If an icon's retain count equals zero it will be removed from disk. The retain count is not persistent across launches. If the WebKit client wishes to retain an icon it should retain the icon once for every launch. This is best done at initialization time before the database begins removing icons. To make sure that the database does not remove unretained icons prematurely, call delayDatabaseCleanup until all desired icons are retained. Once all are retained, call allowDatabaseCleanup. - - Note that an icon can be retained after the database clean-up has begun. This just has to be done before the icon is removed. Icons are removed from the database whenever new icons are added to it. - - Retention methods can be called for icons that are not yet in the database. - - @interface WebIconDatabase : NSObject -*/ -[ - object, - oleautomation, - hidden, - uuid(E93F2616-2560-47d9-BD4D-6E2F1E1D3174), - pointer_default(unique) -] -interface IWebIconDatabase : IUnknown -{ - /*! - @method sharedIconDatabase - @abstract Returns a shared instance of the icon database - + (WebIconDatabase *)sharedIconDatabase; - */ - HRESULT sharedIconDatabase([out, retval] IWebIconDatabase** result); - - /*! - @method iconForURL:withSize: - @discussion Calls iconForURL:withSize:cache: with YES for cache. - @param URL - @param size - - (NSImage *)iconForURL:(NSString *)URL withSize:(NSSize)size; - */ - /*! - @method iconForURL:withSize:cache: - @discussion Returns an icon for a web site URL from memory or disk. nil if none is found. - Usually called by a UI element to determine if a site URL has an associated icon. - Often called by the observer of WebIconChangedNotification after the notification is sent. - @param URL - @param size - @param cache If yes, caches the returned image in memory if not already cached - - (NSImage *)iconForURL:(NSString *)URL withSize:(NSSize)size cache:(BOOL)cache; - */ - /*! - @method iconURLForURL:withSize:cache: - @discussion Returns an icon URL for a web site URL from memory or disk. nil if none is found. - @param URL - - (NSString *)iconURLForURL:(NSString *)URL; - */ - HRESULT iconForURL([in] BSTR url, [in] LPSIZE size, [in] BOOL cache, [out, retval] OLE_HANDLE* hBitmap); - - /*! - @method defaultIconWithSize: - @param size - - (NSImage *)defaultIconWithSize:(NSSize)size; - */ - HRESULT defaultIconWithSize([in] LPSIZE size, [out, retval] OLE_HANDLE* hBitmap); - - /*! - @method retainIconForURL: - @abstract Increments the retain count of the icon. - @param URL - - (void)retainIconForURL:(NSString *)URL; - */ - HRESULT retainIconForURL([in] BSTR url); - - /*! - @method releaseIconForURL: - @abstract Decrements the retain count of the icon. - @param URL - - (void)releaseIconForURL:(NSString *)URL; - */ - HRESULT releaseIconForURL([in] BSTR url); - - /*! - @method removeAllIcons: - @abstract Emtpies the Icon Database - - (void)removeAllIcons; - */ - HRESULT removeAllIcons(); - - /*! - @method delayDatabaseCleanup: - @discussion Only effective if called before the database begins removing icons. - delayDatabaseCleanUp increments an internal counter that when 0 begins the database clean-up. - The counter equals 0 at initialization. - - (void)delayDatabaseCleanup; - */ - HRESULT delayDatabaseCleanup(); - - /*! - @method allowDatabaseCleanup: - @discussion Informs the database that it now can begin removing icons. - allowDatabaseCleanup decrements an internal counter that when 0 begins the database clean-up. - The counter equals 0 at initialization. - - (void)allowDatabaseCleanup; - */ - HRESULT allowDatabaseCleanup(); - - /*! - @method iconURLForURL:withSize:cache: - @discussion Returns an icon URL for a web site URL from memory or disk. nil if none is found. - @param URL - - (NSString *)iconURLForURL:(NSString *)URL; - */ - HRESULT iconURLForURL([in] BSTR url, [out, retval] BSTR* iconURL); -} diff --git a/WebKit/win/Interfaces/IWebIconFetcher.idl b/WebKit/win/Interfaces/IWebIconFetcher.idl deleted file mode 100644 index 1486687..0000000 --- a/WebKit/win/Interfaces/IWebIconFetcher.idl +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 - -interface IWebIconFetcher; - -[ - object, - oleautomation, - uuid(9d27e503-1e0e-458e-bc66-ffa9fa64600e), - pointer_default(unique) -] -interface IWebIconFetcherDelegate : IUnknown -{ - HRESULT finishedLoadingIcon([in] IWebIconFetcher* fetcher, [in] IStream* data); -} - -[ - object, - oleautomation, - uuid(54f50460-8ffa-442c-b5Ab-5422e1fcc973), - pointer_default(unique) -] -interface IWebIconFetcher : IUnknown -{ - HRESULT cancel(); -} diff --git a/WebKit/win/Interfaces/IWebInspector.idl b/WebKit/win/Interfaces/IWebInspector.idl deleted file mode 100644 index e31376c..0000000 --- a/WebKit/win/Interfaces/IWebInspector.idl +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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(68159FF1-9037-45ec-9992-B2E455CF39F3), - pointer_default(unique) -] -interface IWebInspector : IUnknown -{ - HRESULT show(); - HRESULT showConsole(); - HRESULT unused1(); - HRESULT close(); - HRESULT attach(); - HRESULT detach(); - - HRESULT isDebuggingJavaScript(BOOL* isDebugging); - HRESULT toggleDebuggingJavaScript(); - - HRESULT isProfilingJavaScript(BOOL* isProfiling); - HRESULT toggleProfilingJavaScript(); - - HRESULT isJavaScriptProfilingEnabled(BOOL* isProfilingEnabled); - HRESULT setJavaScriptProfilingEnabled(BOOL enabled); -} diff --git a/WebKit/win/Interfaces/IWebJavaScriptCollector.idl b/WebKit/win/Interfaces/IWebJavaScriptCollector.idl deleted file mode 100644 index 824cb0b..0000000 --- a/WebKit/win/Interfaces/IWebJavaScriptCollector.idl +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - * - * 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"; -#endif - -[ - object, - oleautomation, - hidden, - uuid(E6A1D169-F44A-4d11-B55B-F0A406F47612), - pointer_default(unique) -] -interface IWebJavaScriptCollector : IUnknown -{ - HRESULT collect(); - HRESULT collectOnAlternateThread([in] BOOL waitUntilDone); - HRESULT objectCount([out, retval] UINT* count); -} diff --git a/WebKit/win/Interfaces/IWebKitStatistics.idl b/WebKit/win/Interfaces/IWebKitStatistics.idl deleted file mode 100644 index 627267f..0000000 --- a/WebKit/win/Interfaces/IWebKitStatistics.idl +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - * - * 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"; -#endif - -[ - object, - oleautomation, - hidden, - uuid(955C1042-BCF7-4f51-8AE7-66C2D0D47C44), - pointer_default(unique) -] -interface IWebKitStatistics : IUnknown -{ - HRESULT webViewCount([out, retval] int* count); - HRESULT frameCount([out, retval] int* count); - HRESULT dataSourceCount([out, retval] int* count); - HRESULT viewCount([out, retval] int* count); - HRESULT HTMLRepresentationCount([out, retval] int* count); - HRESULT comClassCount([out, retval] int* classCount); - HRESULT comClassNameCounts([out, retval] BSTR *output); -} diff --git a/WebKit/win/Interfaces/IWebMutableURLRequest.idl b/WebKit/win/Interfaces/IWebMutableURLRequest.idl deleted file mode 100644 index c1b31be..0000000 --- a/WebKit/win/Interfaces/IWebMutableURLRequest.idl +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebURLRequest.idl"; -#endif - -interface IWebURLRequest; - -[ - object, - oleautomation, - hidden, - uuid(C4042773-371F-427e-AFA9-9D4B358A0D93), - pointer_default(unique) -] -interface IWebMutableURLRequest : IWebURLRequest -{ - /* - - (void)addValue:(NSString *)value forHTTPHeaderField:(NSString *)field - */ - HRESULT addValue([in] BSTR value, [in] BSTR field); - - /* - - (void)setAllHTTPHeaderFields:(NSDictionary *)headerFields - */ - HRESULT setAllHTTPHeaderFields([in] IPropertyBag* headerFields); - - /* - - (void)setCachePolicy:(NSURLRequestCachePolicy)policy - */ - HRESULT setCachePolicy([in] WebURLRequestCachePolicy policy); - - /* - - (void)setHTTPBody:(NSData *)data - */ - HRESULT setHTTPBody([in] IStream* data); - - /* - - (void)setHTTPBodyStream:(NSInputStream *)inputStream - */ - HRESULT setHTTPBodyStream([in] IStream* data); - - /* - - (void)setHTTPMethod:(NSString *)method - */ - HRESULT setHTTPMethod([in] BSTR method); - - /* - - (void)setHTTPShouldHandleCookies:(BOOL)handleCookies - */ - HRESULT setHTTPShouldHandleCookies([in] BOOL handleCookies); - - /* - - (void)setMainDocumentURL:(NSURL *)theURL - */ - HRESULT setMainDocumentURL([in] BSTR theURL); - - /* - - (void)setTimeoutInterval:(NSTimeInterval)timeoutInterval - */ - HRESULT setTimeoutInterval([in] double timeoutInterval); - - /* - - (void)setURL:(NSURL *)theURL - */ - HRESULT setURL([in] BSTR theURL); - - /* - - (void)setValue:(NSString *)value forHTTPHeaderField:(NSString *)field - */ - HRESULT setValue([in] BSTR value, [in] BSTR field); - - HRESULT setAllowsAnyHTTPSCertificate(); -} diff --git a/WebKit/win/Interfaces/IWebMutableURLRequestPrivate.idl b/WebKit/win/Interfaces/IWebMutableURLRequestPrivate.idl deleted file mode 100644 index 2e5e0e2..0000000 --- a/WebKit/win/Interfaces/IWebMutableURLRequestPrivate.idl +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 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 - -cpp_quote("// this is done to get midl to treat the CFURLRequestRef as pointer types") -cpp_quote("#if 0") -typedef void* CFURLRequestRef; -cpp_quote("#else") -cpp_quote("typedef const struct _CFURLRequest* CFURLRequestRef;") -cpp_quote("#endif") - -[ - object, - oleautomation, - hidden, - uuid(AD675B60-2CE9-478c-B2AA-CAD643FF18AC), - pointer_default(unique) -] -interface IWebMutableURLRequestPrivate : IUnknown -{ - HRESULT setClientCertificate([in] OLE_HANDLE cert); - - [local] CFURLRequestRef cfRequest(); -} diff --git a/WebKit/win/Interfaces/IWebNotification.idl b/WebKit/win/Interfaces/IWebNotification.idl deleted file mode 100644 index 0df4ff9..0000000 --- a/WebKit/win/Interfaces/IWebNotification.idl +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -[ - object, - oleautomation, - uuid(93598207-3E34-49ec-97EC-EFA9A1E16335), - pointer_default(unique) -] -interface IWebNotification : IUnknown -{ - /* - + (id)notificationWithName:(NSString *)aName object:(id)anObject - + (id)notificationWithName:(NSString *)aName object:(id)anObject userInfo:(NSDictionary *)userInfo - */ - HRESULT notificationWithName([in] BSTR aName, [in] IUnknown* anObject, [in] IPropertyBag* userInfo); - - /* - - (NSString *)name - */ - HRESULT name([out, retval] BSTR* result); - - /* - - (id)object - */ - HRESULT getObject([out, retval] IUnknown** result); - - /* - - (NSDictionary *)userInfo - */ - HRESULT userInfo([out, retval] IPropertyBag** result); -} diff --git a/WebKit/win/Interfaces/IWebNotificationCenter.idl b/WebKit/win/Interfaces/IWebNotificationCenter.idl deleted file mode 100644 index 2f8b2aa..0000000 --- a/WebKit/win/Interfaces/IWebNotificationCenter.idl +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -interface IWebNotification; -interface IWebNotificationObserver; - -[ - object, - oleautomation, - hidden, - uuid(1E411ABE-DAA0-4a83-BCCA-D94E0704F193), - pointer_default(unique) -] -interface IWebNotificationCenter : IUnknown -{ -#ifndef DO_NO_IMPORTS - import "IWebNotification.idl"; - import "IWebNotificationObserver.idl"; -#endif - - //+ (NSNotificationCenter *)defaultCenter - HRESULT defaultCenter([out, retval] IWebNotificationCenter** center); - - //- (void)addObserver:(id)anObserver selector:(SEL)aSelector name:(NSString *)notificationName object:(id)anObject - HRESULT addObserver([in] IWebNotificationObserver* observer, [in] BSTR notificationName, [in] IUnknown* anObject); - - //- (void)postNotification:(NSNotification *)notification - HRESULT postNotification([in] IWebNotification* notification); - - //- (void)postNotificationName:(NSString *)notificationName object:(id)anObject - //- (void)postNotificationName:(NSString *)notificationName object:(id)anObject userInfo:(NSDictionary *)userInfo - HRESULT postNotificationName([in] BSTR notificationName, [in] IUnknown* anObject, [in] IPropertyBag* userInfo); - - //- (void)removeObserver:(id)anObserver - //- (void)removeObserver:(id)anObserver name:(NSString *)notificationName object:(id)anObject - HRESULT removeObserver([in] IWebNotificationObserver* anObserver, [in] BSTR notificationName, [in] IUnknown* anObject); -} diff --git a/WebKit/win/Interfaces/IWebNotificationObserver.idl b/WebKit/win/Interfaces/IWebNotificationObserver.idl deleted file mode 100644 index ff41b1e..0000000 --- a/WebKit/win/Interfaces/IWebNotificationObserver.idl +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -interface IWebNotification; - -[ - object, - oleautomation, - uuid(1BA491C4-58A7-4091-9F56-9AED118DB4C1), - pointer_default(unique) -] -interface IWebNotificationObserver : IUnknown -{ -#ifndef DO_NO_IMPORTS - import "IWebNotification.idl"; -#endif - - HRESULT onNotify([in] IWebNotification* notification); -} diff --git a/WebKit/win/Interfaces/IWebPolicyDelegate.idl b/WebKit/win/Interfaces/IWebPolicyDelegate.idl deleted file mode 100644 index 204b985..0000000 --- a/WebKit/win/Interfaces/IWebPolicyDelegate.idl +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebView.idl"; -import "IWebURLRequest.idl"; -#endif - -interface IWebError; -interface IWebURLResponse; -interface IWebURLRequest; -interface IWebView; -interface IWebFrame; -interface IWebPolicyPrivate; - -/*! - @enum WebNavigationType - @abstract The type of action that triggered a possible navigation. - @constant WebNavigationTypeLinkClicked A link with an href was clicked. - @constant WebNavigationTypeFormSubmitted A form was submitted. - @constant WebNavigationTypeBackForward The user chose back or forward. - @constant WebNavigationTypeReload The User hit the reload button. - @constant WebNavigationTypeFormResubmitted A form was resubmitted (by virtue of doing back, forward or reload). - @constant WebNavigationTypeOther Navigation is taking place for some other reason. -*/ - -typedef enum WebNavigationType { - WebNavigationTypeLinkClicked, - WebNavigationTypeFormSubmitted, - WebNavigationTypeBackForward, - WebNavigationTypeReload, - WebNavigationTypeFormResubmitted, - WebNavigationTypeOther -} WebNavigationType; - -cpp_quote("#define WebActionButtonKey TEXT(\"WebActionButtonKey\")") -cpp_quote("#define WebActionElementKey TEXT(\"WebActionElementKey\")") -cpp_quote("#define WebActionFormKey TEXT(\"WebActionFormKey\")") -cpp_quote("#define WebActionModifierFlagsKey TEXT(\"WebActionModifierFlagsKey\")") -cpp_quote("#define WebActionNavigationTypeKey TEXT(\"WebActionNavigationTypeKey\")") -cpp_quote("#define WebActionOriginalURLKey TEXT(\"WebActionOriginalURLKey\")") - -/*! - @protocol WebPolicyDecisionListener - @discussion This protocol is used to call back with the results of a - policy decision. This provides the ability to make these decisions - asyncrhonously, which means the decision can be made by prompting - with a sheet, for example. - @protocol WebPolicyDecisionListener <NSObject> -*/ -[ - object, - oleautomation, - uuid(DFCDE523-FD96-4f95-958B-151540FE122A), - pointer_default(unique) -] -interface IWebPolicyDecisionListener : IUnknown -{ - /*! - @method use - @abstract Use the resource - @discussion If there remain more policy decisions to be made, then - the next policy delegate method gets to decide. This will be - either the next navigation policy delegate if there is a redirect, - or the content policy delegate. If there are no more policy - decisions to be made, the resource will be displayed inline if - possible. If there is no view available to display the resource - inline, then unableToImplementPolicyWithError:frame: will be - called with an appropriate error. - - <p>If a new window is going to be created for this navigation as a - result of frame targetting, then it will be created once you call - this method. - - (void)use; - */ - HRESULT use(); - - /*! - @method download - @abstract Download the resource instead of displaying it. - @discussion This method is more than just a convenience because it - allows an in-progress navigation to be converted to a download - based on content type, without having to stop and restart the - load. - - (void)download; - */ - HRESULT download(); - - /*! - @method ignore - @abstract Do nothing (but the client may choose to handle the request itself) - @discussion A policy of ignore prevents WebKit from doing anything - further with the load, however, the client is still free to handle - the request in some other way, such as opening a new window, - opening a new window behind the current one, opening the URL in an - external app, revealing the location in Finder if a file URL, etc. - - (void)ignore; - */ - HRESULT ignore(); -} - -/*! - @category WebPolicyDelegate - @discussion While loading a URL, WebKit asks the WebPolicyDelegate for - policies that determine the action of what to do with the URL or the data that - the URL represents. Typically, the policy handler methods are called in this order: - - decidePolicyForNewWindowAction:request:newFrameName:decisionListener: (at most once)<BR> - decidePolicyForNavigationAction:request:frame:decisionListener: (zero or more times)<BR> - decidePolicyForMIMEType:request:frame: (zero or more times)<BR> - - New window policy is always checked. Navigation policy is checked - for the initial load and every redirect unless blocked by an - earlier policy. Content policy is checked once the content type is - known, unless an earlier policy prevented it. - - In rare cases, content policy might be checked more than - once. This occurs when loading a "multipart/x-mixed-replace" - document, also known as "server push". In this case, multiple - documents come in one navigation, with each replacing the last. In - this case, conent policy will be checked for each one. - @interface NSObject (WebPolicyDelegate) -*/ -[ - object, - oleautomation, - uuid(9B0BAE6C-A496-4000-9E22-2E89F0747401), - pointer_default(unique) -] -interface IWebPolicyDelegate : IUnknown -{ - /*! - @method webView:decidePolicyForNavigationAction:request:frame:decisionListener: - @abstract This method is called to decide what to do with a proposed navigation. - @param actionInformation Dictionary that describes the action that triggered this navigation. - @param request The request for the proposed navigation - @param frame The WebFrame in which the navigation is happening - @param listener The object to call when the decision is made - @discussion This method will be called before loading starts, and - on every redirect. - - (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary *)actionInformation - request:(NSURLRequest *)request - frame:(WebFrame *)frame - decisionListener:(id<WebPolicyDecisionListener>)listener; - */ - HRESULT decidePolicyForNavigationAction([in] IWebView* webView, [in] IPropertyBag* actionInformation, [in] IWebURLRequest* request, [in] IWebFrame* frame, [in] IWebPolicyDecisionListener* listener); - - /*! - @method webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListener: - @discussion This method is called to decide what to do with an targetted nagivation that would open a new window. - @param actionInformation Dictionary that describes the action that triggered this navigation. - @param request The request for the proposed navigation - @param frame The frame in which the navigation is taking place - @param listener The object to call when the decision is made - @discussion This method is provided so that modified clicks on a targetted link which - opens a new frame can prevent the new window from being opened if they decide to - do something else, like download or present the new frame in a specialized way. - - <p>If this method picks a policy of Use, the new window will be - opened, and decidePolicyForNavigationAction:request:frame:decisionListner: - will be called with a WebNavigationType of WebNavigationTypeOther - in its action. This is to avoid possible confusion about the modifiers. - - (void)webView:(WebView *)webView decidePolicyForNewWindowAction:(NSDictionary *)actionInformation - request:(NSURLRequest *)request - newFrameName:(NSString *)frameName - decisionListener:(id<WebPolicyDecisionListener>)listener; - */ - HRESULT decidePolicyForNewWindowAction([in] IWebView* webView, [in] IPropertyBag* actionInformation, [in] IWebURLRequest* request, [in] BSTR frameName, [in] IWebPolicyDecisionListener* listener); - - /*! - @method webView:decidePolicyForMIMEType:request:frame: - @discussion Returns the policy for content which has been partially loaded. - Sent after webView:didStartProvisionalLoadForFrame: is sent on the WebFrameLoadDelegate. - @param type MIME type for the resource. - @param request A NSURLRequest for the partially loaded content. - @param frame The frame which is loading the URL. - @param listener The object to call when the decision is made - - (void)webView:(WebView *)webView decidePolicyForMIMEType:(NSString *)type - request:(NSURLRequest *)request - frame:(WebFrame *)frame - decisionListener:(id<IWebPolicyDecisionListener>)listener; - */ - HRESULT decidePolicyForMIMEType([in] IWebView* webView, [in] BSTR type, [in] IWebURLRequest* request, [in] IWebFrame* frame, [in] IWebPolicyDecisionListener* listener); - - /*! - @method webView:unableToImplementPolicy:error:forURL:inFrame: - @discussion Called when a WebPolicy could not be implemented. It is up to the client to display appropriate feedback. - @param policy The policy that could not be implemented. - @param error The error that caused the policy to not be implemented. - @param URL The URL of the resource for which a particular action was requested but failed. - @param frame The frame in which the policy could not be implemented. - - (void)webView:(WebView *)webView unableToImplementPolicyWithError:(NSError *)error frame:(WebFrame *)frame; - */ - HRESULT unableToImplementPolicyWithError([in] IWebView* webView, [in] IWebError* error, [in] IWebFrame* frame); -} diff --git a/WebKit/win/Interfaces/IWebPreferences.idl b/WebKit/win/Interfaces/IWebPreferences.idl deleted file mode 100644 index 16f0d9c..0000000 --- a/WebKit/win/Interfaces/IWebPreferences.idl +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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. - */ - -cpp_quote("#define WebPreferencesChangedNotification TEXT(\"WebPreferencesChangedNotification\")") -cpp_quote("#define WebPreferencesRemovedNotification TEXT(\"WebPreferencesRemovedNotification\")") - -#ifndef DO_NO_IMPORTS -import "oaidl.idl"; -import "ocidl.idl"; -#endif - -typedef enum FontSmoothingType { - FontSmoothingTypeStandard=0, - FontSmoothingTypeLight, - FontSmoothingTypeMedium, - FontSmoothingTypeStrong, - FontSmoothingTypeWindows -} FontSmoothingType; - -typedef enum WebKitEditableLinkBehavior { - WebKitEditableLinkDefaultBehavior = 0, - WebKitEditableLinkAlwaysLive, - WebKitEditableLinkOnlyLiveWithShiftKey, - WebKitEditableLinkLiveWhenNotFocused, - WebKitEditableLinkNeverLive -} WebKitEditableLinkBehavior; - -typedef enum WebKitCookieStorageAcceptPolicy { - WebKitCookieStorageAcceptPolicyAlways = 0, - WebKitCookieStorageAcceptPolicyNever, - WebKitCookieStorageAcceptPolicyOnlyFromMainDocumentDomain -} WebKitCookieStorageAcceptPolicy; - -typedef enum WebCacheModel { - WebCacheModelDocumentViewer = 0, - WebCacheModelDocumentBrowser = 1, - WebCacheModelPrimaryWebBrowser = 2 -} WebCacheModel; - -[ - object, - oleautomation, - hidden, - uuid(0930D594-A5A3-46e1-858E-AB17A13CD28E), - pointer_default(unique) -] -interface IWebPreferences : IUnknown -{ - HRESULT standardPreferences([out, retval] IWebPreferences** standardPreferences); - - HRESULT initWithIdentifier([in] BSTR anIdentifier, [out, retval] IWebPreferences** preferences); - HRESULT identifier([out, retval] BSTR* ident); - - HRESULT standardFontFamily([out, retval] BSTR* family); - HRESULT setStandardFontFamily([in] BSTR family); - - HRESULT fixedFontFamily([out, retval] BSTR* family); - HRESULT setFixedFontFamily([in] BSTR family); - - HRESULT serifFontFamily([out, retval] BSTR* fontFamily); - HRESULT setSerifFontFamily([in] BSTR family); - - HRESULT sansSerifFontFamily([out, retval] BSTR* family); - HRESULT setSansSerifFontFamily([in] BSTR family); - - HRESULT cursiveFontFamily([out, retval] BSTR* family); - HRESULT setCursiveFontFamily([in] BSTR family); - - HRESULT fantasyFontFamily([out, retval] BSTR* family); - HRESULT setFantasyFontFamily([in] BSTR family); - - HRESULT defaultFontSize([out, retval] int* fontSize); - HRESULT setDefaultFontSize([in] int fontSize); - - HRESULT defaultFixedFontSize([out, retval] int* fontSize); - HRESULT setDefaultFixedFontSize([in] int fontSize); - - HRESULT minimumFontSize([out, retval] int* fontSize); - HRESULT setMinimumFontSize([in] int fontSize); - - HRESULT minimumLogicalFontSize([out, retval] int* fontSize); - HRESULT setMinimumLogicalFontSize([in] int fontSize); - - HRESULT defaultTextEncodingName([out, retval] BSTR* name); - HRESULT setDefaultTextEncodingName([in] BSTR name); - - HRESULT userStyleSheetEnabled([out, retval] BOOL* enabled); - HRESULT setUserStyleSheetEnabled([in] BOOL enabled); - - HRESULT userStyleSheetLocation([out, retval] BSTR* location); - HRESULT setUserStyleSheetLocation([in] BSTR location); - - HRESULT isJavaEnabled([out, retval] BOOL* enabled); - HRESULT setJavaEnabled([in] BOOL enabled); - - HRESULT isJavaScriptEnabled([out, retval] BOOL* enabled); - HRESULT setJavaScriptEnabled([in] BOOL enabled); - - HRESULT javaScriptCanOpenWindowsAutomatically([out, retval] BOOL* enabled); - HRESULT setJavaScriptCanOpenWindowsAutomatically([in] BOOL enabled); - - HRESULT arePlugInsEnabled([out, retval] BOOL* enabled); - HRESULT setPlugInsEnabled([in] BOOL enabled); - - HRESULT allowsAnimatedImages([out, retval] BOOL* enabled); - HRESULT setAllowsAnimatedImages([in] BOOL enabled); - HRESULT allowAnimatedImageLooping([out, retval] BOOL* enabled); - HRESULT setAllowAnimatedImageLooping([in] BOOL enabled); - - HRESULT setLoadsImagesAutomatically([in] BOOL enabled); - HRESULT loadsImagesAutomatically([out, retval] BOOL* enabled); - - HRESULT setAutosaves([in] BOOL enabled); - HRESULT autosaves([out, retval] BOOL* enabled); - - HRESULT setShouldPrintBackgrounds([in] BOOL enabled); - HRESULT shouldPrintBackgrounds([out, retval] BOOL* enabled); - - HRESULT setPrivateBrowsingEnabled([in] BOOL enabled); - HRESULT privateBrowsingEnabled([out, retval] BOOL* enabled); - - HRESULT setTabsToLinks([in] BOOL enabled); - HRESULT tabsToLinks([out, retval] BOOL* enabled); - - HRESULT textAreasAreResizable([out, retval] BOOL* enabled); - HRESULT setTextAreasAreResizable([in] BOOL enabled); - - HRESULT unused1(); - HRESULT unused2(); - - HRESULT iconDatabaseLocation([out, retval] BSTR* location); - HRESULT setIconDatabaseLocation([in] BSTR location); - - HRESULT iconDatabaseEnabled([out, retval] BOOL* enabled); - HRESULT setIconDatabaseEnabled([in] BOOL enabled); - - HRESULT fontSmoothing([out, retval] FontSmoothingType* smoothingType); - HRESULT setFontSmoothing([in] FontSmoothingType smoothingType); - - HRESULT editableLinkBehavior([out, retval] WebKitEditableLinkBehavior* editableLinkBehavior); - HRESULT setEditableLinkBehavior([in] WebKitEditableLinkBehavior behavior); - - HRESULT cookieStorageAcceptPolicy([out, retval] WebKitCookieStorageAcceptPolicy* acceptPolicy); - HRESULT setCookieStorageAcceptPolicy([in] WebKitCookieStorageAcceptPolicy acceptPolicy); - - HRESULT continuousSpellCheckingEnabled([out, retval] BOOL* enabled); - HRESULT setContinuousSpellCheckingEnabled([in] BOOL enabled); - HRESULT grammarCheckingEnabled([out, retval] BOOL* enabled); - HRESULT setGrammarCheckingEnabled([in] BOOL enabled); - HRESULT allowContinuousSpellChecking([out, retval] BOOL *allowed); - HRESULT setAllowContinuousSpellChecking([in] BOOL allowed); - - HRESULT isDOMPasteAllowed([out, retval] BOOL *allowed); - HRESULT setDOMPasteAllowed([in] BOOL allowed); - - HRESULT usesPageCache([out, retval] BOOL* usesPageCache); - HRESULT setUsesPageCache([in] BOOL usesPageCache); - - HRESULT cacheModel([out, retval] WebCacheModel* cacheModel); - HRESULT setCacheModel([in] WebCacheModel cacheModel); - - HRESULT setShouldPaintCustomScrollbars(BOOL shouldPaint); - HRESULT shouldPaintCustomScrollbars(BOOL *shouldPaint); -} diff --git a/WebKit/win/Interfaces/IWebPreferencesPrivate.idl b/WebKit/win/Interfaces/IWebPreferencesPrivate.idl deleted file mode 100644 index 4a71dbd..0000000 --- a/WebKit/win/Interfaces/IWebPreferencesPrivate.idl +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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, - hidden, - uuid(1380DE41-42CF-4170-9D5D-7840EDE5B36C), - pointer_default(unique) -] -interface IWebPreferencesPrivate : IUnknown -{ - HRESULT setDeveloperExtrasEnabled([in] BOOL enabled); - HRESULT developerExtrasEnabled([out, retval] BOOL* enabled); - - HRESULT setAutomaticallyDetectsCacheModel([in] BOOL automaticallyDetectsCacheModel); - HRESULT automaticallyDetectsCacheModel([out, retval] BOOL* automaticallyDetectsCacheModel); - - HRESULT setAuthorAndUserStylesEnabled([in] BOOL enabled); - HRESULT authorAndUserStylesEnabled([out, retval] BOOL* enabled); - - HRESULT inApplicationChromeMode([out, retval] BOOL *allowed); - HRESULT setApplicationChromeMode([in] BOOL allowed); - - HRESULT setOfflineWebApplicationCacheEnabled([in] BOOL enabled); - HRESULT offlineWebApplicationCacheEnabled([out, retval] BOOL *enabled); - - HRESULT localStorageDatabasePath([out, retval] BSTR* location); - HRESULT setLocalStorageDatabasePath([in] BSTR location); - - HRESULT setShouldPaintNativeControls([in] BOOL shouldPaint); - HRESULT shouldPaintNativeControls([out, retval] BOOL* enabled); -} diff --git a/WebKit/win/Interfaces/IWebResource.idl b/WebKit/win/Interfaces/IWebResource.idl deleted file mode 100644 index e85f0dc..0000000 --- a/WebKit/win/Interfaces/IWebResource.idl +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -/*! - @class WebResource - @discussion A WebResource represents a fully downloaded URL. - It includes the data of the resource as well as the metadata associated with the resource. - - @interface WebResource : NSObject <NSCoding, NSCopying> -*/ -[ - object, - oleautomation, - uuid(09567E0E-7859-494a-B0E4-92C13CFE5574), - pointer_default(unique) -] -interface IWebResource : IUnknown -{ - /*! - @method initWithData:URL:MIMEType:textEncodingName:frameName - @abstract The initializer for WebResource. - @param data The data of the resource. - @param URL The URL of the resource. - @param MIMEType The MIME type of the resource. - @param textEncodingName The text encoding name of the resource (can be nil). - @param frameName The frame name of the resource if the resource represents the contents of an entire HTML frame (can be nil). - @result An initialized WebResource. - - (id)initWithData:(NSData *)data URL:(NSURL *)URL MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName frameName:(NSString *)frameName; - */ - HRESULT initWithData([in] IStream* data, [in] BSTR url, [in] BSTR mimeType, [in] BSTR textEncodingName, [in] BSTR frameName); - - /*! - @method data - @result The data of the resource. - - (NSData *)data; - */ - HRESULT data([out, retval] IStream** data); - - /*! - @method URL - @result The URL of the resource. - - (NSURL *)URL; - */ - HRESULT URL([out, retval] BSTR* url); - - /*! - @method MIMEType - @result The MIME type of the resource. - - (NSString *)MIMEType; - */ - HRESULT MIMEType([out, retval] BSTR* mime); - - /*! - @method textEncodingName - @result The text encoding name of the resource (can be nil). - - (NSString *)textEncodingName; - */ - HRESULT textEncodingName([out, retval] BSTR* encodingName); - - /*! - @method frameName - @result The frame name of the resource if the resource represents the contents of an entire HTML frame (can be nil). - - (NSString *)frameName; - */ - HRESULT frameName([out, retval] BSTR* name); -} diff --git a/WebKit/win/Interfaces/IWebResourceLoadDelegate.idl b/WebKit/win/Interfaces/IWebResourceLoadDelegate.idl deleted file mode 100644 index 87e6f91..0000000 --- a/WebKit/win/Interfaces/IWebResourceLoadDelegate.idl +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebURLAuthenticationChallenge.idl"; -import "IWebDataSource.idl"; -import "IWebURLResponse.idl"; -import "IWebError.idl"; -#endif - -interface IWebView; -interface IWebDataSource; -interface IWebURLAuthenticationChallenge; -interface IWebURLResponse; -interface IWebURLRequest; - -interface IWebError; - -/*! - @category WebResourceLoadDelegate - @discussion Implementors of this protocol will receive messages indicating - that a resource is about to be loaded, data has been received for a resource, - an error has been received for a resource, and completion of a resource load. - Implementors are also given the opportunity to mutate requests before they are sent. - The various progress methods of this protocol all receive an identifier as the - parameter. This identifier can be used to track messages associated with a single - resource. For example, a single resource may generate multiple - resource:willSendRequest:redirectResponse:fromDataSource: messages as it's URL is redirected. - @interface NSObject (WebResourceLoadDelegate) -*/ - -[ - object, - oleautomation, - uuid(AF3289AA-90DB-4ca4-A112-A1E5F0517953), - pointer_default(unique) -] -interface IWebResourceLoadDelegate : IUnknown -{ - /*! - @method webView:identifierForInitialRequest:fromDataSource: - @param webView The WebView sending the message. - @param request The request about to be sent. - @param dataSource The datasource that initiated the load. - @discussion An implementor of WebResourceLoadDelegate should provide an identifier - that can be used to track the load of a single resource. This identifier will be - passed as the first argument for all of the other WebResourceLoadDelegate methods. The - identifier is useful to track changes to a resources request, which will be - provided by one or more calls to resource:willSendRequest:redirectResponse:fromDataSource:. - @result An identifier that will be passed back to the implementor for each callback. - The identifier will be retained. - - (id)webView:(WebView *)sender identifierForInitialRequest:(NSURLRequest *)request fromDataSource:(WebDataSource *)dataSource; - */ - HRESULT identifierForInitialRequest([in] IWebView* webView, [in] IWebURLRequest* request, [in] IWebDataSource* dataSource, [in] unsigned long identifier); - - /*! - @method resource:willSendRequest:redirectResponse:fromDataSource: - @discussion This message is sent before a load is initiated. The request may be modified - as necessary by the receiver. - @param webView The WebView sending the message. - @param identifier An identifier that can be used to track the progress of a resource load across - multiple call backs. - @param request The request about to be sent. - @param redirectResponse If the request is being made in response to a redirect we received, - the response that conveyed that redirect. - @param dataSource The dataSource that initiated the load. - @result Returns the request, which may be mutated by the implementor, although typically - will be request. - - (NSURLRequest *)webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)dataSource; - */ - HRESULT willSendRequest([in] IWebView* webView, [in] unsigned long identifier, [in] IWebURLRequest* request, [in] IWebURLResponse* redirectResponse, [in] IWebDataSource* dataSource, [out, retval] IWebURLRequest** newRequest); - - /*! - @method webView:resource:didReceiveAuthenticationChallenge:fromDataSource: - @abstract Start authentication for the resource, providing a challenge - @discussion Call useCredential::, continueWithoutCredential or - cancel on the challenge when done. - @param challenge The NSURLAuthenticationChallenge to start authentication for - @discussion If you do not implement this delegate method, WebKit will handle authentication - automatically by prompting with a sheet on the window that the WebView is associated with. - - (void)webView:(WebView *)sender resource:(id)identifier didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)dataSource; - */ - HRESULT didReceiveAuthenticationChallenge([in] IWebView* webView, [in] unsigned long identifier,[in] IWebURLAuthenticationChallenge* challenge, [in] IWebDataSource* dataSource); - - /*! - @method webView:resource:didCancelAuthenticationChallenge:fromDataSource: - @abstract Cancel authentication for a given request - @param challenge The NSURLAuthenticationChallenge for which to cancel authentication - - (void)webView:(WebView *)sender resource:(id)identifier didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)dataSource; - */ - HRESULT didCancelAuthenticationChallenge([in] IWebView* webView, [in] unsigned long identifier, [in] IWebURLAuthenticationChallenge* challenge, [in] IWebDataSource* dataSource); - - /*! - @method webView:resource:didReceiveResponse:fromDataSource: - @abstract This message is sent after a response has been received for this load. - @param webView The WebView sending the message. - @param identifier An identifier that can be used to track the progress of a resource load across - multiple call backs. - @param response The response for the request. - @param dataSource The dataSource that initiated the load. - @discussion In some rare cases, multiple responses may be received for a single load. - This occurs with multipart/x-mixed-replace, or "server push". In this case, the client - should assume that each new response resets progress so far for the resource back to 0, - and should check the new response for the expected content length. - - (void)webView:(WebView *)sender resource:(id)identifier didReceiveResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)dataSource; - */ - HRESULT didReceiveResponse([in] IWebView* webView, [in] unsigned long identifier, [in] IWebURLResponse* response, [in] IWebDataSource* dataSource); - - /*! - @method webView:resource:didReceiveContentLength:fromDataSource: - @discussion Multiple of these messages may be sent as data arrives. - @param webView The WebView sending the message. - @param identifier An identifier that can be used to track the progress of a resource load across - multiple call backs. - @param length The amount of new data received. This is not the total amount, just the new amount received. - @param dataSource The dataSource that initiated the load. - - (void)webView:(WebView *)sender resource:(id)identifier didReceiveContentLength:(WebNSInt)length fromDataSource:(WebDataSource *)dataSource; - */ - HRESULT didReceiveContentLength([in] IWebView* webView, [in] unsigned long identifier, [in] UINT length, [in] IWebDataSource* dataSource); - - /*! - @method webView:resource:didFinishLoadingFromDataSource: - @discussion This message is sent after a load has successfully completed. - @param webView The WebView sending the message. - @param identifier An identifier that can be used to track the progress of a resource load across - multiple call backs. - @param dataSource The dataSource that initiated the load. - - (void)webView:(WebView *)sender resource:(id)identifier didFinishLoadingFromDataSource:(WebDataSource *)dataSource; - */ - HRESULT didFinishLoadingFromDataSource([in] IWebView* webView, [in] unsigned long identifier, [in] IWebDataSource* dataSource); - - /*! - @method webView:resource:didFailLoadingWithError:fromDataSource: - @discussion This message is sent after a load has failed to load due to an error. - @param webView The WebView sending the message. - @param identifier An identifier that can be used to track the progress of a resource load across - multiple call backs. - @param error The error associated with this load. - @param dataSource The dataSource that initiated the load. - - (void)webView:(WebView *)sender resource:(id)identifier didFailLoadingWithError:(NSError *)error fromDataSource:(WebDataSource *)dataSource; - */ - HRESULT didFailLoadingWithError([in] IWebView* webView, [in] unsigned long identifier, [in] IWebError* error, [in] IWebDataSource* dataSource); - - /*! - @method webView:plugInFailedWithError:dataSource: - @discussion Called when a plug-in is not found, fails to load or is not available for some reason. - @param webView The WebView sending the message. - @param error The plug-in error. In the userInfo dictionary of the error, the object for the - NSErrorFailingURLKey key is a URL string of the SRC attribute, the object for the WebKitErrorPlugInNameKey - key is a string of the plug-in's name, the object for the WebKitErrorPlugInPageURLStringKey key is a URL string - of the PLUGINSPAGE attribute and the object for the WebKitErrorMIMETypeKey key is a string of the TYPE attribute. - Some, none or all of the mentioned attributes can be present in the userInfo. The error returns nil for userInfo - when none are present. - @param dataSource The dataSource that contains the plug-in. - - (void)webView:(WebView *)sender plugInFailedWithError:(NSError *)error dataSource:(WebDataSource *)dataSource; - */ - HRESULT plugInFailedWithError([in] IWebView* webView, [in] IWebError* error, [in] IWebDataSource* dataSource); -} diff --git a/WebKit/win/Interfaces/IWebResourceLoadDelegatePrivate.idl b/WebKit/win/Interfaces/IWebResourceLoadDelegatePrivate.idl deleted file mode 100644 index de2bdc0..0000000 --- a/WebKit/win/Interfaces/IWebResourceLoadDelegatePrivate.idl +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebDataSource.idl"; -import "IWebURLResponse.idl"; -#endif - -interface IWebView; -interface IWebDataSource; -interface IWebURLResponse; -interface IWebURLRequest; - - -/*! - @category WebResourceLoadDelegatePrivate -*/ - -[ - object, - oleautomation, - uuid(1AE2968D-D756-47e8-8493-EA1040FAA725), - pointer_default(unique) -] -interface IWebResourceLoadDelegatePrivate : IUnknown -{ - /*! - @method webView:didLoadResourceFromMemoryCache:request:response:length:fromDataSource: - @param request The request for the resource. - @param response The response for the resource. - @param dataSource The datasource that initiated the load. - @discussion This will be called if the resource can be loaded from memory cache. No further resource load delegate - methods will be called on it after this. - - (id)webView:(WebView *)sender didLoadResourceFromMemoryCache:(NSURLRequest *)request response:(NSURLResponse *)response length:(NSInteger)length fromDataSource:(WebDataSource *)dataSource - */ - HRESULT didLoadResourceFromMemoryCache([in] IWebView* webView, [in] IWebURLRequest* request, [in] IWebURLResponse* response, [in] UINT length, [in] IWebDataSource* dataSource); -} diff --git a/WebKit/win/Interfaces/IWebScriptCallFrame.idl b/WebKit/win/Interfaces/IWebScriptCallFrame.idl deleted file mode 100644 index d3a7f85..0000000 --- a/WebKit/win/Interfaces/IWebScriptCallFrame.idl +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 - -cpp_quote("// this is done to get midl to treat the WebScriptCallFrame type as a pointer type") -cpp_quote("#if 0") -typedef void* WebScriptCallFrame; -cpp_quote("#else") -cpp_quote("class WebScriptCallFrame;") -cpp_quote("#endif") - -[ - object, - oleautomation, - uuid(029D0676-162A-4140-8917-9574E09F66EB), - pointer_default(unique) -] -interface IWebScriptCallFrame : IUnknown -{ - HRESULT caller([out, retval] IWebScriptCallFrame**); - HRESULT functionName([out, retval] BSTR*); - HRESULT stringByEvaluatingJavaScriptFromString([in] BSTR script, [out, retval] BSTR*); - HRESULT variableNames([out, retval] IEnumVARIANT**); - HRESULT valueForVariable([in] BSTR key, [out, retval] BSTR* value); -} diff --git a/WebKit/win/Interfaces/IWebScriptDebugListener.idl b/WebKit/win/Interfaces/IWebScriptDebugListener.idl deleted file mode 100644 index ab6244d..0000000 --- a/WebKit/win/Interfaces/IWebScriptDebugListener.idl +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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"; -import "IWebScriptCallFrame.idl"; -import "IWebView.idl"; -#endif - -interface IWebDataSource; -interface IWebFrame; -interface IWebScriptCallFrame; -interface IWebView; - -[ - object, - oleautomation, - uuid(09612B56-BE17-4867-A441-1C5C4E0F5302), - pointer_default(unique) -] -interface IWebScriptDebugListener : IUnknown -{ - HRESULT didLoadMainResourceForDataSource([in] IWebView* view, [in] IWebDataSource* dataSource); - HRESULT didParseSource([in] IWebView* view, [in] BSTR sourceCode, [in] UINT baseLineNumber, [in] BSTR url, [in] int sourceID, [in] IWebFrame* forWebFrame); - HRESULT failedToParseSource([in] IWebView* view, [in] BSTR sourceCode, [in] UINT baseLineNumber, [in] BSTR url, [in] BSTR error, [in] IWebFrame* forWebFrame); - HRESULT didEnterCallFrame([in] IWebView* view, [in] IWebScriptCallFrame* frame, [in] int sourceID, [in] int lineNumber, [in] IWebFrame* forWebFrame); - HRESULT willExecuteStatement([in] IWebView* view, [in] IWebScriptCallFrame* frame, [in] int sourceID, [in] int lineNumber, [in] IWebFrame* forWebFrame); - HRESULT willLeaveCallFrame([in] IWebView* view, [in] IWebScriptCallFrame* frame, [in] int sourceID, [in] int lineNumber, [in] IWebFrame* forWebFrame); - HRESULT exceptionWasRaised([in] IWebView* view, [in] IWebScriptCallFrame* frame, [in] int sourceID, [in] int lineNumber, [in] IWebFrame* forWebFrame); - HRESULT serverDidDie(); -} diff --git a/WebKit/win/Interfaces/IWebScriptDebugServer.idl b/WebKit/win/Interfaces/IWebScriptDebugServer.idl deleted file mode 100644 index 975ff68..0000000 --- a/WebKit/win/Interfaces/IWebScriptDebugServer.idl +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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"; -import "IWebScriptDebugListener.idl"; -#endif - -interface IWebScriptDebugListener; - -[ - object, - oleautomation, - uuid(E24111D6-3668-4c8b-B921-D644524945F8), - pointer_default(unique) -] -interface IWebScriptDebugServer : IUnknown -{ - HRESULT sharedWebScriptDebugServer([out, retval] IWebScriptDebugServer**); - HRESULT addListener([in] IWebScriptDebugListener*); - HRESULT removeListener([in] IWebScriptDebugListener*); - HRESULT step(); - HRESULT pause(); - HRESULT resume(); - HRESULT isPaused([out, retval] BOOL* isPaused); -} diff --git a/WebKit/win/Interfaces/IWebScriptObject.idl b/WebKit/win/Interfaces/IWebScriptObject.idl deleted file mode 100644 index 83b502e..0000000 --- a/WebKit/win/Interfaces/IWebScriptObject.idl +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -/*! - @class WebScriptObject - @discussion WebScriptObjects are used to wrap script objects passed from - script environments to Objective-C. WebScriptObjects cannot be created - directly. In normal uses of WebKit, you gain access to the script - environment using the "windowScriptObject" method on WebView. - - The following KVC methods are commonly used to access properties of the - WebScriptObject: - - - (void)setValue:(id)value forKey:(NSString *)key - - (id)valueForKey:(NSString *)key - - As it possible to remove attributes from web script objects the following - additional method augments the basic KVC methods: - - - (void)removeWebScriptKey:(NSString *)name; - - Also the sparse array access allowed in web script objects doesn't map well to NSArray, so - the following methods can be used to access index based properties: - - - (id)webScriptValueAtIndex:(unsigned int)index; - - (void)setWebScriptValueAtIndex:(unsigned int)index value:(id)value; - - @interface WebScriptObject : NSObject -*/ -[ - object, - oleautomation, - uuid(7022340A-649C-43fc-9214-85CA7D3BE3C7), - pointer_default(unique) -] -interface IWebScriptObject : IUnknown -{ - /*! - @method throwException: - @discussion Throws an exception in the current script execution context. - @result Either NO if an exception could not be raised, YES otherwise. - + (BOOL)throwException:(NSString *)exceptionMessage; - */ - HRESULT throwException([in] BSTR exceptionMessage, [out, retval] BOOL* result); - - /*! - @method callWebScriptMethod:withArguments: - @param name The name of the method to call in the script environment. - @param args The arguments to pass to the script environment. - @discussion Calls the specified method in the script environment using the - specified arguments. - @result Returns the result of calling the script method. - - (id)callWebScriptMethod:(NSString *)name withArguments:(NSArray *)args; - */ - HRESULT callWebScriptMethod([in] BSTR name, [in, size_is(cArgs)] const VARIANT args[], [in] int cArgs, [out, retval] VARIANT* result); - - /*! - @method evaluateWebScript: - @param script The script to execute in the target script environment. - @discussion The script will be executed in the target script environment. The format - of the script is dependent of the target script environment. - @result Returns the result of evaluating the script in the script environment. - - (id)evaluateWebScript:(NSString *)script; - */ - HRESULT evaluateWebScript([in] BSTR script, [out, retval] VARIANT* result); - - /*! - @method removeWebScriptKey: - @param name The name of the property to remove. - @discussion Removes the property from the object in the script environment. - - (void)removeWebScriptKey:(NSString *)name; - */ - HRESULT removeWebScriptKey([in] BSTR name); - - /*! - @method toString - @discussion Converts the target object to a string representation. The coercion - of non string objects type is dependent on the script environment. - @result Returns the string representation of the object. - - (NSString *)stringRepresentation; - */ - HRESULT stringRepresentation([out, retval] BSTR* stringRepresentation); - - /*! - @method propertyAtIndex: - @param index The index of the property to return. Index based access is dependent - @discussion Gets the value of the property at the specified index. - @result The value of the property. - - (id)webScriptValueAtIndex:(unsigned int)index; - */ - HRESULT webScriptValueAtIndex([in] unsigned int index, [out, retval] VARIANT* result); - - /*! - @method setPropertyAtIndex:value: - @param index The index of the property to set. - @param value The value of the property to set. - @discussion Sets the property value at the specified index. - - (void)setWebScriptValueAtIndex:(unsigned int)index value:(id)value; - */ - HRESULT setWebScriptValueAtIndex([in] unsigned int index, [in] VARIANT val); - - /*! - @method setException: - @param description The description of the exception. - @discussion Raises an exception in the script environment in the context of the - current object. - - (void)setException: (NSString *)description; - */ - HRESULT setException([in] BSTR description); -} diff --git a/WebKit/win/Interfaces/IWebScrollBarDelegatePrivate.idl b/WebKit/win/Interfaces/IWebScrollBarDelegatePrivate.idl deleted file mode 100644 index e054e05..0000000 --- a/WebKit/win/Interfaces/IWebScrollBarDelegatePrivate.idl +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - * - * 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 "IWebScrollBarPrivate.idl"; -#endif - -interface IWebScrollBarPrivate; - -[ - object, - oleautomation, - uuid(2E8D56AF-3BF5-4e17-BDA6-01692ACBE3D5), - pointer_default(unique) -] -interface IWebScrollBarDelegatePrivate : IUnknown -{ - HRESULT valueChanged([in] IWebScrollBarPrivate* scrollBar); -} diff --git a/WebKit/win/Interfaces/IWebScrollBarPrivate.idl b/WebKit/win/Interfaces/IWebScrollBarPrivate.idl deleted file mode 100644 index 2c820eb..0000000 --- a/WebKit/win/Interfaces/IWebScrollBarPrivate.idl +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - * - * 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 "IWebScrollBarDelegatePrivate.idl"; -#endif - -interface IWebScrollBarDelegatePrivate; - -[ - object, - oleautomation, - hidden, - uuid(6C585B08-2E4F-4594-9B90-0425E3A33FD0), - pointer_default(unique) -] -interface IWebScrollBarPrivate : IUnknown -{ - HRESULT init([in] IWebScrollBarDelegatePrivate* delegate, [in] OLE_HANDLE containingWindow, [in] WebScrollBarOrientation orientation, [in] WebScrollBarControlSize controlSize); - - HRESULT setEnabled([in] BOOL enabled); - - HRESULT setSteps([in] int lineStep, [in] int pageStep); - - HRESULT setProportion([in] int visibleSize, [in] int totalSize); - - HRESULT setRect([in] RECT bounds); - - HRESULT setValue([in] int value); - - HRESULT value([out, retval] int* value); - - HRESULT paint([in] HDC dc, [in] RECT damageRect); - - HRESULT frameRect([out, retval] RECT* bounds); - - HRESULT width([out, retval] int* w); - - HRESULT height([out, retval] int* h); - - HRESULT requestedWidth([out, retval] int* w); - - HRESULT requestedHeight([out, retval] int* h); - - HRESULT handleMouseEvent([in] OLE_HANDLE hwnd, [in] UINT msg, [in] WPARAM wParam, [in] LPARAM lParam); - - HRESULT scroll([in] WebScrollDirection direction, [in] WebScrollGranularity granularity, [in] float multiplier); -} diff --git a/WebKit/win/Interfaces/IWebSecurityOrigin.idl b/WebKit/win/Interfaces/IWebSecurityOrigin.idl deleted file mode 100644 index 796d59c..0000000 --- a/WebKit/win/Interfaces/IWebSecurityOrigin.idl +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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(304d4462-a921-4e85-bc11-bce1462B159d), - pointer_default(unique) -] -interface IWebSecurityOrigin : IUnknown -{ - HRESULT protocol([out, retval] BSTR* result); - HRESULT host([out, retval] BSTR* result); - HRESULT port([out, retval] unsigned short* result); - - HRESULT usage([out, retval] unsigned long long* result); - - HRESULT quota([out, retval] unsigned long long* result); - HRESULT setQuota([in] unsigned long long quota); -} diff --git a/WebKit/win/Interfaces/IWebTextRenderer.idl b/WebKit/win/Interfaces/IWebTextRenderer.idl deleted file mode 100644 index bdfc54a..0000000 --- a/WebKit/win/Interfaces/IWebTextRenderer.idl +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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(5b26abbb-c27a-4527-a313-cb733e2cd257), - pointer_default(unique) -] -interface IWebTextRenderer : IUnknown -{ - HRESULT registerPrivateFont([in] LPCOLESTR fontFilePath); -} diff --git a/WebKit/win/Interfaces/IWebUIDelegate.idl b/WebKit/win/Interfaces/IWebUIDelegate.idl deleted file mode 100644 index 44869b7..0000000 --- a/WebKit/win/Interfaces/IWebUIDelegate.idl +++ /dev/null @@ -1,798 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebUndoTarget.idl"; -import "IWebURLRequest.idl"; -import "IWebFrame.idl"; -#endif - -interface IWebFrame; -interface IWebView; -interface IWebURLRequest; -interface IWebUndoTarget; - -/*! - @enum WebMenuItemTag - @discussion Each menu item in the default menu items array passed in - contextMenuItemsForElement:defaultMenuItems: has its tag set to one of the WebMenuItemTags. - When iterating through the default menu items array, use the tag to differentiate between them. -*/ -typedef enum WebMenuItemTag { - WebMenuItemTagOpenLinkInNewWindow=1, - WebMenuItemTagDownloadLinkToDisk, - WebMenuItemTagCopyLinkToClipboard, - WebMenuItemTagOpenImageInNewWindow, - WebMenuItemTagDownloadImageToDisk, - WebMenuItemTagCopyImageToClipboard, - WebMenuItemTagOpenFrameInNewWindow, - WebMenuItemTagCopy, - WebMenuItemTagGoBack, - WebMenuItemTagGoForward, - WebMenuItemTagStop, - WebMenuItemTagReload, - WebMenuItemTagCut, - WebMenuItemTagPaste, - WebMenuItemTagSpellingGuess, - WebMenuItemTagNoGuessesFound, - WebMenuItemTagIgnoreSpelling, - WebMenuItemTagLearnSpelling, - WebMenuItemTagOther, - WebMenuItemTagSearchInSpotlight, - WebMenuItemTagSearchWeb, - WebMenuItemTagLookUpInDictionary, - WebMenuItemTagOpenWithDefaultApplication, - WebMenuItemPDFActualSize, - WebMenuItemPDFZoomIn, - WebMenuItemPDFZoomOut, - WebMenuItemPDFAutoSize, - WebMenuItemPDFSinglePage, - WebMenuItemPDFFacingPages, - WebMenuItemPDFContinuous, - WebMenuItemPDFNextPage, - WebMenuItemPDFPreviousPage, - // FIXME: Review these names before release! - WebMenuItemTagOpenLink = 2000, - WebMenuItemTagIgnoreGrammar, - WebtMenuItemTagSpellingMenu, - WebMenuItemTagShowSpellingPanel, - WebMenuItemTagCheckSpelling, - WebMenuItemTagCheckSpellingWhileTyping, - WebMenuItemTagCheckGrammarWithSpelling, - WebMenuItemTagFontMenu, - WebMenuItemTagShowFonts, - WebMenuItemTagBold, - WebMenuItemTagItalic, - WebMenuItemTagUnderline, - WebMenuItemTagOutline, - WebMenuItemTagStyles, - WebMenuItemTagShowColors, - WebMenuItemTagSpeechMenu, - WebMenuItemTagStartSpeaking, - WebMenuItemTagStopSpeaking, - WebMenuItemTagWritingDirectionMenu, - WebMenuItemTagDefaultDirection, - WebMenuItemTagLeftToRight, - WebMenuItemTagRightToLeft, - WebMenuItemTagPDFSinglePageScrolling, - WebMenuItemTagPDFFacingPagesScrolling, - WebMenuItemTagInspectElement, - WebMenuItemBaseApplicationTag=10000 -} WebMenuItemTag; - -/*! - @enum WebDragDestinationAction - @abstract Actions that the destination of a drag can perform. - @constant WebDragDestinationActionNone No action - @constant WebDragDestinationActionDHTML Allows DHTML (such as JavaScript) to handle the drag - @constant WebDragDestinationActionEdit Allows editable documents to be edited from the drag - @constant WebDragDestinationActionLoad Allows a location change from the drag - @constant WebDragDestinationActionAny Allows any of the above to occur -*/ -typedef enum WebDragDestinationAction { - WebDragDestinationActionNone = 0, - WebDragDestinationActionDHTML = 1, - WebDragDestinationActionEdit = 2, - WebDragDestinationActionLoad = 4, - WebDragDestinationActionAny = (unsigned long)-1 -} WebDragDestinationAction; - -/*! - @enum WebDragSourceAction - @abstract Actions that the source of a drag can perform. - @constant WebDragSourceActionNone No action - @constant WebDragSourceActionDHTML Allows DHTML (such as JavaScript) to start a drag - @constant WebDragSourceActionImage Allows an image drag to occur - @constant WebDragSourceActionLink Allows a link drag to occur - @constant WebDragSourceActionSelection Allows a selection drag to occur - @constant WebDragSourceActionAny Allows any of the above to occur -*/ -typedef enum WebDragSourceAction { - WebDragSourceActionNone = 0, - WebDragSourceActionDHTML = 1, - WebDragSourceActionImage = 2, - WebDragSourceActionLink = 4, - WebDragSourceActionSelection = 8, - WebDragSourceActionAny = (unsigned long)-1 -} WebDragSourceAction; - - -/*! - @protocol WebOpenPanelResultListener - @discussion This protocol is used to call back with the results of - the file open panel requested by runOpenPanelForFileButtonWithResultListener: - @protocol WebOpenPanelResultListener <NSObject> -*/ -[ - object, - oleautomation, - uuid(634198C7-9DFC-4aba-9E8C-90AEEA7A4144), - pointer_default(unique) -] -interface IWebOpenPanelResultListener : IUnknown -{ - /*! - @method chooseFilename: - @abstract Call this method to return a filename from the file open panel. - @param fileName - - (void)chooseFilename:(NSString *)fileName; - */ - HRESULT chooseFilename([out, retval] BSTR* fileName); - - /*! - @method cancel - @abstract Call this method to indicate that the file open panel was cancelled. - - (void)cancel; - */ - HRESULT cancel(); -} - -/*! - @category WebUIDelegate - @discussion A class that implements WebUIDelegate provides - window-related methods that may be used by Javascript, plugins and - other aspects of web pages. These methods are used to open new - windows and control aspects of existing windows. - @interface NSObject (WebUIDelegate) -*/ -[ - object, - oleautomation, - uuid(2452A889-A74A-4fbc-9617-326A0A953630), - pointer_default(unique) -] -interface IWebUIDelegate : IUnknown -{ - /*! - @method webView:createWebViewWithRequest: - @abstract Create a new window and begin to load the specified request. - @discussion The newly created window is hidden, and the window operations delegate on the - new WebViews will get a webViewShow: call. - @param sender The WebView sending the delegate method. - @param request The request to load. - @result The WebView for the new window. - - (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest *)request; - */ - HRESULT createWebViewWithRequest([in] IWebView* sender, [in] IWebURLRequest* request, [out, retval] IWebView** newWebView); - - /*! - @method webViewShow: - @param sender The WebView sending the delegate method. - @abstract Show the window that contains the top level view of the WebView, - ordering it frontmost. - @discussion This will only be called just after createWindowWithRequest: - is used to create a new window. - - (void)webViewShow:(WebView *)sender; - */ - HRESULT webViewShow([in] IWebView* sender); - - /*! - @method webViewClose: - @abstract Close the current window. - @param sender The WebView sending the delegate method. - @discussion Clients showing multiple views in one window may - choose to close only the one corresponding to this - WebView. Other clients may choose to ignore this method - entirely. - - (void)webViewClose:(WebView *)sender; - */ - HRESULT webViewClose([in] IWebView* sender); - - /*! - @method webViewFocus: - @abstract Focus the current window (i.e. makeKeyAndOrderFront:). - @param The WebView sending the delegate method. - @discussion Clients showing multiple views in one window may want to - also do something to focus the one corresponding to this WebView. - - (void)webViewFocus:(WebView *)sender; - */ - HRESULT webViewFocus([in] IWebView* sender); - - /*! - @method webViewUnfocus: - @abstract Unfocus the current window. - @param sender The WebView sending the delegate method. - @discussion Clients showing multiple views in one window may want to - also do something to unfocus the one corresponding to this WebView. - - (void)webViewUnfocus:(WebView *)sender; - */ - HRESULT webViewUnfocus([in] IWebView* sender); - - /*! - @method webViewFirstResponder: - @abstract Get the first responder for this window. - @param sender The WebView sending the delegate method. - @discussion This method should return the focused control in the - WebView's view, if any. If the view is out of the window - hierarchy, this might return something than calling firstResponder - on the real NSWindow would. It's OK to return either nil or the - real first responder if some control not in the window has focus. - - (NSResponder *)webViewFirstResponder:(WebView *)sender; - */ - HRESULT webViewFirstResponder([in] IWebView* sender, [out, retval] OLE_HANDLE* responderHWnd); - - /*! - @method webView:makeFirstResponder: - @abstract Set the first responder for this window. - @param sender The WebView sending the delegate method. - @param responder The responder to make first (will always be a view) - @discussion responder will always be a view that is in the view - subhierarchy of the top-level web view for this WebView. If the - WebView's top level view is currently out of the view - hierarchy, it may be desirable to save the first responder - elsewhere, or possibly ignore this call. - - (void)webView:(WebView *)sender makeFirstResponder:(NSResponder *)responder; - */ - HRESULT makeFirstResponder([in] IWebView* sender, [in] OLE_HANDLE responderHWnd); - - /*! - @method webView:setStatusText: - @abstract Set the window's status display, if any, to the specified string. - @param sender The WebView sending the delegate method. - @param text The status text to set - - (void)webView:(WebView *)sender setStatusText:(NSString *)text; - */ - HRESULT setStatusText([in] IWebView* sender, [in] BSTR text); - - /*! - @method webViewStatusText: - @abstract Get the currently displayed status text. - @param sender The WebView sending the delegate method. - @result The status text - - (NSString *)webViewStatusText:(WebView *)sender; - */ - HRESULT webViewStatusText([in] IWebView* sender, [out, retval] BSTR* text); - - /*! - @method webViewAreToolbarsVisible: - @abstract Determine whether the window's toolbars are currently visible - @param sender The WebView sending the delegate method. - @discussion This method should return YES if the window has any - toolbars that are currently on, besides the status bar. If the app - has more than one toolbar per window, for example a regular - command toolbar and a favorites bar, it should return YES from - this method if at least one is on. - @result YES if at least one toolbar is visible, otherwise NO. - - (BOOL)webViewAreToolbarsVisible:(WebView *)sender; - */ - HRESULT webViewAreToolbarsVisible([in] IWebView* sender, [out, retval] BOOL* visible); - - /*! - @method webView:setToolbarsVisible: - @param sender The WebView sending the delegate method. - @abstract Set whether the window's toolbars are currently visible. - @param visible New value for toolbar visibility - @discussion Setting this to YES should turn on all toolbars - (except for a possible status bar). Setting it to NO should turn - off all toolbars (with the same exception). - - (void)webView:(WebView *)sender setToolbarsVisible:(BOOL)visible; - */ - HRESULT setToolbarsVisible([in] IWebView* sender, [in] BOOL visible); - - /*! - @method webViewIsStatusBarVisible: - @abstract Determine whether the status bar is visible. - @param sender The WebView sending the delegate method. - @result YES if the status bar is visible, otherwise NO. - - (BOOL)webViewIsStatusBarVisible:(WebView *)sender; - */ - HRESULT webViewIsStatusBarVisible([in] IWebView* sender, [out, retval] BOOL* visible); - - /*! - @method webView:setStatusBarVisible: - @abstract Set whether the status bar is currently visible. - @param visible The new visibility value - @discussion Setting this to YES should show the status bar, - setting it to NO should hide it. - - (void)webView:(WebView *)sender setStatusBarVisible:(BOOL)visible; - */ - HRESULT setStatusBarVisible([in] IWebView* sender, [in] BOOL visible); - - /*! - @method webViewIsResizable: - @abstract Determine whether the window is resizable or not. - @param sender The WebView sending the delegate method. - @result YES if resizable, NO if not. - @discussion If there are multiple views in the same window, they - have have their own separate resize controls and this may need to - be handled specially. - - (BOOL)webViewIsResizable:(WebView *)sender; - */ - HRESULT webViewIsResizable([in] IWebView* sender, [out, retval] BOOL* resizable); - - /*! - @method webView:setResizable: - @abstract Set the window to resizable or not - @param sender The WebView sending the delegate method. - @param resizable YES if the window should be made resizable, NO if not. - @discussion If there are multiple views in the same window, they - have have their own separate resize controls and this may need to - be handled specially. - - (void)webView:(WebView *)sender setResizable:(BOOL)resizable; - */ - HRESULT setResizable([in] IWebView* sender, [in] BOOL resizable); - - /*! - @method webView:setFrame: - @abstract Set the window's frame rect - @param sender The WebView sending the delegate method. - @param frame The new window frame size - @discussion Even though a caller could set the frame directly using the NSWindow, - this method is provided so implementors of this protocol can do special - things on programmatic move/resize, like avoiding autosaving of the size. - - (void)webView:(WebView *)sender setFrame:(NSRect)frame; - */ - HRESULT setFrame([in] IWebView* sender, [in] RECT* frame); - - /*! - @method webViewFrame: - @param sender The WebView sending the delegate method. - @abstract REturn the window's frame rect - @discussion - - (NSRect)webViewFrame:(WebView *)sender; - */ - HRESULT webViewFrame([in] IWebView* sender, [out, retval] RECT* frame); - - /*! - @method webView:setContentRect: - @abstract Set the window's content rect - @param sender The WebView sending the delegate method. - @param frame The new window content rect - @discussion Even though a caller could set the content rect - directly using the NSWindow, this method is provided so - implementors of this protocol can do special things on - programmatic move/resize, like avoiding autosaving of the size. - - (void)webView:(WebView *)sender setContentRect:(NSRect)contentRect; - */ - HRESULT setContentRect([in] IWebView* sender, [in] RECT* contentRect); - - /*! - @method webViewContentRect: - @abstract Return the window's content rect - @discussion - - (NSRect)webViewContentRect:(WebView *)sender; - */ - HRESULT webViewContentRect([in] IWebView* sender, [out, retval] RECT* contentRect); - - /*! - @method webView:runJavaScriptAlertPanelWithMessage: - @abstract Display a JavaScript alert panel - @param sender The WebView sending the delegate method. - @param message The message to display - @discussion Clients should visually indicate that this panel comes - from JavaScript. The panel should have a single OK button. - - (void)webView:(WebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message; - */ - HRESULT runJavaScriptAlertPanelWithMessage([in] IWebView* sender, [in] BSTR message); - - /*! - @method webView:runJavaScriptConfirmPanelWithMessage: - @abstract Display a JavaScript confirm panel - @param sender The WebView sending the delegate method. - @param message The message to display - @result YES if the user hit OK, no if the user chose Cancel. - @discussion Clients should visually indicate that this panel comes - from JavaScript. The panel should have two buttons, e.g. "OK" and - "Cancel". - - (BOOL)webView:(WebView *)sender runJavaScriptConfirmPanelWithMessage:(NSString *)message; - */ - HRESULT runJavaScriptConfirmPanelWithMessage([in] IWebView* sender, [in] BSTR message, [out, retval] BOOL* result); - - /*! - @method webView:runJavaScriptTextInputPanelWithPrompt:defaultText: - @abstract Display a JavaScript text input panel - @param sender The WebView sending the delegate method. - @param message The message to display - @param defaultText The initial text for the text entry area. - @result The typed text if the user hit OK, otherwise nil. - @discussion Clients should visually indicate that this panel comes - from JavaScript. The panel should have two buttons, e.g. "OK" and - "Cancel", and an area to type text. - - (NSString *)webView:(WebView *)sender runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(NSString *)defaultText; - */ - HRESULT runJavaScriptTextInputPanelWithPrompt([in] IWebView* sender, [in] BSTR message, [in] BSTR defaultText, [out, retval] BSTR* result); - - /*! - @method webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame: - @abstract Display a confirm panel by an "before unload" event handler. - @param sender The WebView sending the delegate method. - @param message The message to display. - @param frame The WebFrame whose JavaScript initiated this call. - @result YES if the user hit OK, NO if the user chose Cancel. - @discussion Clients should include a message in addition to the one - supplied by the web page that indicates. The panel should have - two buttons, e.g. "OK" and "Cancel". - - (BOOL)webView:(WebView *)sender runBeforeUnloadConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame; - */ - HRESULT runBeforeUnloadConfirmPanelWithMessage([in] IWebView* sender, [in] BSTR message, [in] IWebFrame* initiatedByFrame, [out, retval] BOOL* result); - - /*! - @method webView:runOpenPanelForFileButtonWithResultListener: - @abstract Display a file open panel for a file input control. - @param sender The WebView sending the delegate method. - @param resultListener The object to call back with the results. - @discussion This method is passed a callback object instead of giving a return - value so that it can be handled with a sheet. - - (void)webView:(WebView *)sender runOpenPanelForFileButtonWithResultListener:(id<WebOpenPanelResultListener>)resultListener; - */ - HRESULT runOpenPanelForFileButtonWithResultListener([in] IWebView* sender, [in] IWebOpenPanelResultListener* resultListener); - - /*! - @method webView:mouseDidMoveOverElement:modifierFlags: - @abstract Update the window's feedback for mousing over links to reflect a new item the mouse is over - or new modifier flags. - @param sender The WebView sending the delegate method. - @param elementInformation Dictionary that describes the element that the mouse is over, or nil. - @param modifierFlags The modifier flags as in NSEvent. - - (void)webView:(WebView *)sender mouseDidMoveOverElement:(NSDictionary *)elementInformation modifierFlags:(WebNSUInt)modifierFlags; - */ - HRESULT mouseDidMoveOverElement([in] IWebView* sender, [in] IPropertyBag* elementInformation, [in] UINT modifierFlags); - - /*! - @method webView:contextMenuItemsForElement:defaultMenuItems: - @abstract Returns the menu items to display in an element's contextual menu. - @param sender The WebView sending the delegate method. - @param element A dictionary representation of the clicked element. - @param defaultMenuItems An array of default NSMenuItems to include in all contextual menus. - @result An array of NSMenuItems to include in the contextual menu. - - (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary *)element defaultMenuItems:(NSArray *)defaultMenuItems; - */ - HRESULT contextMenuItemsForElement([in] IWebView* sender, [in] IPropertyBag* element, [in] OLE_HANDLE defaultItemsHMenu, [out, retval] OLE_HANDLE* resultHMenu); - - /*! - @method webView:validateUserInterfaceItem:defaultValidation: - @abstract Controls UI validation - @param webView The WebView sending the delegate method - @param item The user interface item being validated - @pararm defaultValidation Whether or not the WebView thinks the item is valid - @discussion This method allows the UI delegate to control WebView's validation of user interface items. - See WebView.h to see the methods to that WebView can currently validate. See NSUserInterfaceValidations and - NSValidatedUserInterfaceItem for information about UI validation. - - (BOOL)webView:(WebView *)webView validateUserInterfaceItem:(id <NSValidatedUserInterfaceItem>)item defaultValidation:(BOOL)defaultValidation; - */ - HRESULT validateUserInterfaceItem([in] IWebView* webView, [in] UINT itemCommandID, [in] BOOL defaultValidation, [out, retval] BOOL* isValid); - - /*! - @method webView:shouldPerformAction:fromSender: - @abstract Controls actions - @param webView The WebView sending the delegate method - @param action The action being sent - @param sender The sender of the action - @discussion This method allows the UI delegate to control WebView's behavior when an action is being sent. - For example, if the action is copy:, the delegate can return YES to allow WebView to perform its default - copy behavior or return NO and perform copy: in some other way. See WebView.h to see the actions that - WebView can perform. - - (BOOL)webView:(WebView *)webView shouldPerformAction:(SEL)action fromSender:(id)sender; - */ - HRESULT shouldPerformAction([in] IWebView* webView, [in] UINT itemCommandID, [in] UINT sender); - - /*! - @method webView:dragDestinationActionMaskForDraggingInfo: - @abstract Controls behavior when dragging to a WebView - @param webView The WebView sending the delegate method - @param draggingInfo The dragging info of the drag - @discussion This method is called periodically as something is dragged over a WebView. The UI delegate can return a mask - indicating which drag destination actions can occur, WebDragDestinationActionAny to allow any kind of action or - WebDragDestinationActionNone to not accept the drag. - - (unsigned)webView:(WebView *)webView dragDestinationActionMaskForDraggingInfo:(id <NSDraggingInfo>)draggingInfo; - */ - HRESULT dragDestinationActionMaskForDraggingInfo([in] IWebView* webView, [in] IDataObject* draggingInfo, [out, retval] WebDragDestinationAction* action); - - /*! - @method webView:willPerformDragDestinationAction:forDraggingInfo: - @abstract Informs that WebView will perform a drag destination action - @param webView The WebView sending the delegate method - @param action The drag destination action - @param draggingInfo The dragging info of the drag - @discussion This method is called after the last call to webView:dragDestinationActionMaskForDraggingInfo: after something is dropped on a WebView. - This method informs the UI delegate of the drag destination action that WebView will perform. - - (void)webView:(WebView *)webView willPerformDragDestinationAction:(WebDragDestinationAction)action forDraggingInfo:(id <NSDraggingInfo>)draggingInfo; - */ - HRESULT willPerformDragDestinationAction([in] IWebView* webView, [in] WebDragDestinationAction action, [in] IDataObject* draggingInfo); - - /*! - @method webView:dragSourceActionMaskForPoint: - @abstract Controls behavior when dragging from a WebView - @param webView The WebView sending the delegate method - @param point The point where the drag started in the coordinates of the WebView - @discussion This method is called after the user has begun a drag from a WebView. The UI delegate can return a mask indicating - which drag source actions can occur, WebDragSourceActionAny to allow any kind of action or WebDragSourceActionNone to not begin a drag. - - (unsigned)webView:(WebView *)webView dragSourceActionMaskForPoint:(NSPoint)point; - */ - HRESULT dragSourceActionMaskForPoint([in] IWebView* webView, [in] LPPOINT point, [out, retval] WebDragSourceAction* action); - - /*! - @method webView:willPerformDragSourceAction:fromPoint:withPasteboard: - @abstract Informs that a drag a has begun from a WebView - @param webView The WebView sending the delegate method - @param action The drag source action - @param point The point where the drag started in the coordinates of the WebView - @param pasteboard The drag pasteboard - @discussion This method is called after webView:dragSourceActionMaskForPoint: is called after the user has begun a drag from a WebView. - This method informs the UI delegate of the drag source action that will be performed and gives the delegate an opportunity to modify - the contents of the dragging pasteboard. - - (void)webView:(WebView *)webView willPerformDragSourceAction:(WebDragSourceAction)action fromPoint:(NSPoint)point withPasteboard:(NSPasteboard *)pasteboard; - */ - HRESULT willPerformDragSourceAction([in] IWebView* webView, [in] WebDragSourceAction action, [in] LPPOINT point, [in] IDataObject* pasteboard); - - /*! - @method webView:contextMenuItemSelected:ForElement: - @abstract Perform the action associated with the selected item. - @param sender The WebView sending the delegate method. - @param item The menu item that was selected. - @param element A dictionary representation of the clicked element. - */ - [local] HRESULT contextMenuItemSelected([in] IWebView* sender, [in] void* item, [in] IPropertyBag* element); - - /* - @method hasCustomMenuImplementation: - @abstract Returns whether the application uses the following functions to create a custom menu impementation. - */ - HRESULT hasCustomMenuImplementation([out, retval] BOOL* hasCustomMenus); - - /* - @method webView:trackCutsomPopupMenu - @abstract Adds custom draw data to the menu items and calls a custom trackPopupMenu. - @param sender The WebView sending the delegate method. - @param menu The menu that we want to pop up. - @param point The point associated with the context menu event in the coordinates of the WebView - */ - HRESULT trackCustomPopupMenu([in] IWebView* sender, [in] OLE_HANDLE hMenu, [in] LPPOINT point); - - /* - @method webView:measureCustomMenuItem - @abstract This is called when the WM_MEASUREITEM command is received to measure the custom menu items - @param sender The WebView sending the delegate method. - @param measureItem The LPMEASUREITEMSTRUCT associated with the item. - */ - [local] HRESULT measureCustomMenuItem([in] IWebView* sender, [in] void* measureItem); - - /* - @method webView:drawCustomMenuItem - @abstract This is called when the WM_DRAWITEM command is received to draw the custom menu item - @param sender The WebView sending the delegate method. - @param drawItem The LPDRAWITEMSTRUCT associated with the item. - */ - [local] HRESULT drawCustomMenuItem([in] IWebView* sender, [in] void* drawItem); - - /* - @method webView:addCustomMenuDrawingData - @abstract Add custom data to the menu that the delegate can use when asked to draw. - @param sender The WebView sending the delegate method. - @param menu The cutsom menu to clean up. - @discussion This method is called for submenus as well. - */ - HRESULT addCustomMenuDrawingData([in] IWebView* sender, [in] OLE_HANDLE hMenu); - - /* - @method webView:cleanUpCustomMenuDrawingData - @abstract Clean up any custom data added to the menu items - @param sender The WebView sending the delegate method. - @param menu The cutsom menu to clean up. - */ - HRESULT cleanUpCustomMenuDrawingData([in] IWebView* sender, [in] OLE_HANDLE hMenu); - - /*! - @method webView:canTakeFocus: - @abstract Informs whether focus can be transferred out of the WebView in the specified direction - @param sender The WebView sending the delegate method. - @param forward Whether focus is moving forward or backward. - */ - HRESULT canTakeFocus([in] IWebView* sender, [in] BOOL forward, [out] BOOL* result); - - /*! - @method webView:takeFocus: - @abstract Instructs the delegate to take focus out of the WebView - @param sender The WebView sending the delegate method. - @param forward Whether focus is moving forward or backward. - */ - HRESULT takeFocus([in] IWebView* sender, [in] BOOL forward); - - /// Undo related UI delegate methods -------------------------------------------------------------------------------- - - /*! - @method registerUndoWithTarget: - @abstract Registers an undo operation of a IWebUndoTarget on the undo/redo stack. - @param target The target that will be called back when the action is undone - @param actionName The name of the action - this will be passed back to the target when we need to undo the operation - @param actionArg An object that target used to save undo information - */ - HRESULT registerUndoWithTarget([in] IWebUndoTarget* target, [in] BSTR actionName, [in] IUnknown* actionArg); - - /*! - @method removeAllActionsWithTarget: - @abstract remove all the undo operations that are registered for the passed in target on the undo/redo stack. - @param target - */ - HRESULT removeAllActionsWithTarget([in] IWebUndoTarget* target); - - /*! - @method setActionTitle: - @abstract Sets the name of the action for the current group of undo operations - @param actionName Name of the action - */ - HRESULT setActionTitle([in] BSTR actionTitle); - - /*! - @method undo: - @abstract Undo the last group of operations - */ - HRESULT undo(); - - /*! - @method redo: - @abstract Redo the last group of operations - */ - HRESULT redo(); - - /*! - @method canUndo: - @abstract Returns whether there's anything on the undo stack to be undone - */ - HRESULT canUndo([out, retval] BOOL* result); - - /*! - @method canRedo: - @abstract Returns whether there's anything on the redo stack to be redone - */ - HRESULT canRedo([out, retval] BOOL* result); -} - -/*! - @category WebUIDelegate2 - @discussion A class that supplements the IWebUIDelegate interface -*/ -[ - object, - oleautomation, - uuid(C6FF73E1-304D-4129-A60C-66326C2578DB), - pointer_default(unique) -] -interface IWebUIDelegate2 : IWebUIDelegate -{ -/*! - @method webView:printFrame: - @abstract Informs that a WebFrame needs to be printed - @param webView The WebView sending the delegate method - @param frame The WebFrame needing to be printed - @discussion This method is called when a script or user requests the page to be printed. - In this method the delegate can prepare the WebFrame to be printed. -*/ - HRESULT printFrame([in] IWebView* webView, [in] IWebFrame* frame); - -/*! - @method webView:ftpDirectoryTemplatePath - @abstract Returns the path to the FTP directory listing template document - @param webView The WebView sending the delegate method - @param path The path to the template document - @discussion This method is called when an FTP directory listing is viewed in a webView. - In practice, all WebViews show the same template document data that was loaded for the very - first WebView that displayed a directory listing, so this will only be called once. -*/ - HRESULT ftpDirectoryTemplatePath([in] IWebView* webView, [out, retval] BSTR* path); - -/*! - @method webViewHeaderHeight: - @param webView The WebView sending the delegate method - @abstract Reserve a height for the printed page header. - @result The height to reserve for the printed page header, return 0.0 to not reserve any space for a header. - @discussion The height returned will be used to calculate the rect passed to webView:drawHeaderInRect:. - - - (float)webViewHeaderHeight:(WebView *)sender; -*/ - HRESULT webViewHeaderHeight([in] IWebView* webView, [out, retval] float* result); - -/*! - @method webViewFooterHeight: - @param webView The WebView sending the delegate method - @abstract Reserve a height for the printed page footer. - @result The height to reserve for the printed page footer, return 0.0 to not reserve any space for a footer. - @discussion The height returned will be used to calculate the rect passed to webView:drawFooterInRect:. - - - (float)webViewFooterHeight:(WebView *)sender; -*/ - HRESULT webViewFooterHeight([in] IWebView* webView, [out, retval] float* result); - -/*! - @method webView:drawHeaderInRect: - @param webView The WebView sending the delegate method - @param rect The NSRect reserved for the header of the page - @abstract The delegate should draw a header for the sender in the supplied rect. - - - (void)webView:(WebView *)sender drawHeaderInRect:(NSRect)rect; -*/ - HRESULT drawHeaderInRect([in] IWebView* webView, [in] RECT* rect, [in] OLE_HANDLE drawingContext); - -/*! - @method webView:drawFooterInRect: - @param webView The WebView sending the delegate method - @param rect The NSRect reserved for the footer of the page - @abstract The delegate should draw a footer for the sender in the supplied rect. - - - (void)webView:(WebView *)sender drawFooterInRect:(NSRect)rect; -*/ - HRESULT drawFooterInRect([in] IWebView* webView, [in] RECT* rect, [in] OLE_HANDLE drawingContext, [in] UINT pageIndex, [in] UINT pageCount); - - HRESULT webViewPrintingMarginRect([in] IWebView* webView, [out, retval] RECT* rect); -} - -/*! - @category WebUIDelegate3 - @discussion A class that supplements the IWebUIDelegate interface -*/ -[ - object, - oleautomation, - uuid(DD544D90-C233-4562-8EFD-A8D3A0DEBC19), - pointer_default(unique) -] -interface IWebUIDelegate3 : IWebUIDelegate2 -{ - HRESULT canRunModal([in] IWebView* webView, [out, retval] BOOL* canRunBoolean); - HRESULT createModalDialog([in] IWebView* sender, [in] IWebURLRequest* request, [out, retval] IWebView** newWebView); - HRESULT runModal([in] IWebView* webView); - HRESULT isMenuBarVisible([in] IWebView* webView, [out, retval] BOOL* visible); - HRESULT setMenuBarVisible([in] IWebView* webView, [in] BOOL visible); - HRESULT runDatabaseSizeLimitPrompt([in] IWebView* webView, [in] BSTR displayName, [in] IWebFrame* initiatedByFrame, [out, retval] BOOL* allowed); -} - -/*! - @category WebUIDelegate4 - @discussion A class that supplements the IWebUIDelegate interface -*/ -[ - object, - oleautomation, - uuid(042B7EE3-A5A4-4a8f-8C33-775CD9E89C7C), - pointer_default(unique) -] -interface IWebUIDelegate4 : IWebUIDelegate3 -{ - HRESULT paintCustomScrollbar([in] IWebView* webView, [in] HDC hDC, [in] RECT rect, [in] WebScrollBarControlSize size, [in] WebScrollbarControlState state, - [in] WebScrollbarControlPart pressedPart, [in] BOOL vertical, [in] float value, [in] float proportion, [in] WebScrollbarControlPartMask parts); - HRESULT paintCustomScrollCorner([in] IWebView* webView, [in] HDC hDC, [in] RECT rect); -} diff --git a/WebKit/win/Interfaces/IWebUIDelegatePrivate.idl b/WebKit/win/Interfaces/IWebUIDelegatePrivate.idl deleted file mode 100755 index 85a72e7..0000000 --- a/WebKit/win/Interfaces/IWebUIDelegatePrivate.idl +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebSecurityOrigin.idl"; -import "IWebView.idl"; -#endif - -cpp_quote("#define WebEmbeddedViewAttributesKey TEXT(\"WebEmbeddedViewAttributesKey\")") - -interface IWebEmbeddedView; -interface IWebFrame; -interface IWebSecurityOrigin; -interface IWebView; - -[ - object, - oleautomation, - uuid(176711F1-822F-446b-BE9A-64BB38C562F5), - pointer_default(unique) -] -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 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); - HRESULT webViewReceivedFocus([in] IWebView* sender); - HRESULT webViewLostFocus([in] IWebView* sender, [in] OLE_HANDLE loseFocusToHWnd); - HRESULT doDragDrop([in] IWebView* sender, [in] IDataObject* dataObject, [in] IDropSource* dropSource, [in] DWORD okEffect, [out, retval] DWORD* performedEffect); - HRESULT webViewGetDlgCode([in] IWebView* sender, [in] UINT keyCode, [out, retval] LONG_PTR* code); -} - -[ - object, - oleautomation, - uuid(7518FCCE-EC47-43b9-8C49-51E91C05C944), - pointer_default(unique) -] -interface IWebUIDelegatePrivate2 : IWebUIDelegatePrivate -{ - HRESULT webViewPainted([in] IWebView* sender); -} - -[ - object, - oleautomation, - uuid(4E7AECB6-C017-4e98-8FD5-4131C4BAB923), - pointer_default(unique) -] -interface IWebUIDelegatePrivate3 : IWebUIDelegatePrivate2 -{ - HRESULT exceededDatabaseQuota([in] IWebView* sender, [in] IWebFrame* frame, [in] IWebSecurityOrigin* origin, [in] BSTR databaseIdentifier); -} - -[ - object, - oleautomation, - uuid(88566775-C003-4EDF-8900-2872AC7EA44F), - pointer_default(unique) -] -interface IWebUIDelegatePrivate4 : IWebUIDelegatePrivate3 -{ - 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); -} diff --git a/WebKit/win/Interfaces/IWebURLAuthenticationChallenge.idl b/WebKit/win/Interfaces/IWebURLAuthenticationChallenge.idl deleted file mode 100644 index 68881ab..0000000 --- a/WebKit/win/Interfaces/IWebURLAuthenticationChallenge.idl +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebError.idl"; -import "IWebURLResponse.idl"; -#endif - -interface IWebError; -interface IWebURLAuthenticationChallengeSender; -interface IWebURLCredential; -interface IWebURLProtectionSpace; -interface IWebURLResponse; - -typedef enum { - WebURLCredentialPersistenceNone, - WebURLCredentialPersistenceForSession, - WebURLCredentialPersistencePermanent -} WebURLCredentialPersistence; - -[ - object, - oleautomation, - uuid(5382DABA-C3C3-40c5-AA40-04079F11A844), - pointer_default(unique) -] -interface IWebURLAuthenticationChallenge : IUnknown -{ - /* - - (NSError *)error - */ - HRESULT error([out, retval] IWebError** result); - - /* - - (NSURLResponse *)failureResponse - */ - HRESULT failureResponse([out, retval] IWebURLResponse** result); - - /* - - (id)initWithAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge sender:(id<NSURLAuthenticationChallengeSender>)sender - */ - HRESULT initWithAuthenticationChallenge([in] IWebURLAuthenticationChallenge* challenge, [in] IWebURLAuthenticationChallengeSender* sender); - - /* - - (id)initWithProtectionSpace:(NSURLProtectionSpace *)space proposedCredential:(NSURLCredential *)credential previousFailureCount:(int)count failureResponse:(NSURLResponse *)response error:(NSError *)error sender:(id <NSURLAuthenticationChallengeSender>)sender - */ - HRESULT initWithProtectionSpace([in] IWebURLProtectionSpace* space, [in] IWebURLCredential* proposedCredential, [in] int previousFailureCount, [in] IWebURLResponse* failureResponse, [in] IWebError* error, [in] IWebURLAuthenticationChallengeSender* sender); - - /* - -(unsigned)previousFailureCount - */ - HRESULT previousFailureCount([out, retval] UINT* result); - - /* - -(NSURLCredential *)proposedCredential - */ - HRESULT proposedCredential([out, retval] IWebURLCredential** result); - - /* - - (NSURLProtectionSpace *)protectionSpace - */ - HRESULT protectionSpace([out, retval] IWebURLProtectionSpace** result); - - /* - - (id<NSURLAuthenticationChallengeSender>)sender - */ - HRESULT sender([out, retval] IWebURLAuthenticationChallengeSender** sender); -} - -[ - object, - oleautomation, - uuid(9360D6FB-186C-4ff7-AE57-D1B973DA0D1C), - pointer_default(unique) -] -interface IWebURLAuthenticationChallengeSender : IUnknown -{ - /* - - (void)cancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge - */ - HRESULT cancelAuthenticationChallenge([in] IWebURLAuthenticationChallenge* challenge); - - /* - - (void)continueWithoutCredentialForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge - */ - HRESULT continueWithoutCredentialForAuthenticationChallenge([in] IWebURLAuthenticationChallenge* challenge); - - /* - - (void)useCredential:(NSURLCredential *)credential forAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge - */ - HRESULT useCredential([in] IWebURLCredential* credential, [in] IWebURLAuthenticationChallenge* challenge); -} - -cpp_quote("#define WebURLProtectionSpaceHTTP TEXT(\"http\")") -cpp_quote("#define WebURLProtectionSpaceHTTPS TEXT(\"https\")") -cpp_quote("#define WebURLProtectionSpaceFTP TEXT(\"ftp\")") -cpp_quote("#define WebURLProtectionSpaceFTPS TEXT(\"ftps\")") -cpp_quote("#define WebURLProtectionSpaceHTTPProxy TEXT(\"http\")") -cpp_quote("#define WebURLProtectionSpaceHTTPSProxy TEXT(\"https\")") -cpp_quote("#define WebURLProtectionSpaceFTPProxy TEXT(\"ftp\")") -cpp_quote("#define WebURLProtectionSpaceSOCKSProxy TEXT(\"SOCKS\")") -cpp_quote("#define WebURLAuthenticationMethodDefault TEXT(\"WebURLAuthenticationMethodDefault\")") -cpp_quote("#define WebURLAuthenticationMethodHTTPBasic TEXT(\"WebURLAuthenticationMethodHTTPBasic\")") -cpp_quote("#define WebURLAuthenticationMethodHTTPDigest TEXT(\"WebURLAuthenticationMethodHTTPDigest\")") -cpp_quote("#define WebURLAuthenticationMethodHTMLForm TEXT(\"WebURLAuthenticationMethodHTMLForm\")") - -[ - object, - oleautomation, - hidden, - uuid(71D2622A-3FF2-404b-BD45-C60659C901AF), - pointer_default(unique) -] -interface IWebURLProtectionSpace : IUnknown -{ - /* - -(NSString *)authenticationMethod - */ - HRESULT authenticationMethod([out, retval] BSTR* result); - - /* - -(NSString *)host - */ - HRESULT host([out, retval] BSTR* result); - - /* - -(id)initWithHost:(NSString *)host port:(int)port protocol:(NSString *)protocol realm:(NSString *)realm authenticationMethod:(NSString *)authenticationMethod - */ - HRESULT initWithHost([in] BSTR host, [in] int port, [in] BSTR protocol, [in] BSTR realm, [in] BSTR authenticationMethod); - - /* - -(id)initWithProxyHost:(NSString *)host port:(int)port type:(NSString *)proxyType realm:(NSString *)realm authenticationMethod:(NSString *)authenticationMethod - */ - HRESULT initWithProxyHost([in] BSTR host, [in] int port, [in] BSTR proxyType, [in] BSTR realm, [in] BSTR authenticationMethod); - - /* - -(BOOL)isProxy - */ - HRESULT isProxy([out, retval] BOOL* result); - - /* - -(int)port - */ - HRESULT port([out, retval] int* result); - - /* - -(NSString *)protocol - */ - HRESULT protocol([out, retval] BSTR* result); - - /* - -(NSString *)proxyType - */ - HRESULT proxyType([out, retval] BSTR* result); - - /* - -(NSString *)realm - */ - HRESULT realm([out, retval] BSTR* result); - - /* - -(BOOL)receivesCredentialSecurely - */ - HRESULT receivesCredentialSecurely([out, retval] BOOL* result); -} - -[ - object, - oleautomation, - hidden, - uuid(A1E9D765-FACE-4189-BBE3-AED7EBF65EBD), - pointer_default(unique) -] -interface IWebURLCredential : IUnknown -{ - /* - -(BOOL)hasPassword - */ - HRESULT hasPassword([out, retval] BOOL* result); - - /* - -(id)initWithUser:(NSString *)user password:(NSString *)password persistence:(NSURLCredentialPersistence)persistence - */ - HRESULT initWithUser([in] BSTR user, [in] BSTR password, [in] WebURLCredentialPersistence persistence); - - /* - -(NSString *)password - */ - HRESULT password([out, retval] BSTR* password); - - /* - -(NSURLCredentialPersistence)persistence - */ - HRESULT persistence([out, retval] WebURLCredentialPersistence* result); - - /* - -(NSString *)user - */ - HRESULT user([out, retval] BSTR* result); -} diff --git a/WebKit/win/Interfaces/IWebURLRequest.idl b/WebKit/win/Interfaces/IWebURLRequest.idl deleted file mode 100644 index 0f72fa8..0000000 --- a/WebKit/win/Interfaces/IWebURLRequest.idl +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -typedef enum _WebURLRequestCachePolicy -{ - WebURLRequestUseProtocolCachePolicy, - WebURLRequestReloadIgnoringCacheData, - WebURLRequestReturnCacheDataElseLoad, - WebURLRequestReturnCacheDataDontLoad -} WebURLRequestCachePolicy; - -[ - object, - oleautomation, - hidden, - uuid(F4B85F1D-F3B2-493d-B786-0930E804A3BA), - pointer_default(unique) -] -interface IWebURLRequest : IUnknown -{ - /* - + (id)requestWithURL:(NSURL *)theURL - + (id)requestWithURL:(NSURL *)theURL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval - */ - HRESULT requestWithURL([in] BSTR theURL, [in] WebURLRequestCachePolicy cachePolicy, [in] double timeoutInterval); - - /* - - (NSDictionary *)allHTTPHeaderFields - */ - HRESULT allHTTPHeaderFields([out, retval] IPropertyBag** result); - - /* - - (NSURLRequestCachePolicy)cachePolicy - */ - HRESULT cachePolicy([out, retval] WebURLRequestCachePolicy* result); - - /* - - (NSData *)HTTPBody - */ - HRESULT HTTPBody([out, retval] IStream** result); - - /* - - (NSInputStream *)HTTPBodyStream - */ - HRESULT HTTPBodyStream([out, retval] IStream** result); - - /* - - (NSString *)HTTPMethod - */ - HRESULT HTTPMethod([out, retval] BSTR *result); - - /* - - (BOOL)HTTPShouldHandleCookies - */ - HRESULT HTTPShouldHandleCookies([out, retval] BOOL *result); - - /* - - (id)initWithURL:(NSURL *)theURL - - (id)initWithURL:(NSURL *)theURL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval - */ - HRESULT initWithURL([in] BSTR url, [in] WebURLRequestCachePolicy cachePolicy, [in] double timeoutInterval); - - /* - - (NSURL *)mainDocumentURL - */ - HRESULT mainDocumentURL([out, retval] BSTR* result); - - /* - -(NSTimeInterval)timeoutInterval - */ - HRESULT timeoutInterval([out, retval] double* result); - - /* - -(NSURL *)URL - */ - HRESULT URL([out, retval] BSTR* result); - - /* - -(NSString *)valueForHTTPHeaderField:(NSString *)field - */ - HRESULT valueForHTTPHeaderField([in] BSTR field, [out, retval] BSTR* result); - - HRESULT isEmpty([out, retval] BOOL* result); - - HRESULT mutableCopy([out, retval] IWebMutableURLRequest** result); -} diff --git a/WebKit/win/Interfaces/IWebURLResponse.idl b/WebKit/win/Interfaces/IWebURLResponse.idl deleted file mode 100644 index 9407457..0000000 --- a/WebKit/win/Interfaces/IWebURLResponse.idl +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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. - */ - -cpp_quote("#define WebURLResponseUnknownLength -1") - -#ifndef DO_NO_IMPORTS -import "oaidl.idl"; -import "ocidl.idl"; -#endif - -[ - object, - oleautomation, - uuid(9814930B-E037-4477-8DF1-4D898B648995), - pointer_default(unique) -] - -interface IWebURLResponse : IUnknown -{ - /* - - (long long)expectedContentLength - */ - HRESULT expectedContentLength([out, retval] long long *result); - - /* - - (id)initWithURL:(NSURL *)URL MIMEType:(NSString *)MIMEType expectedContentLength:(int)length textEncodingName:(NSString *)name - */ - HRESULT initWithURL([in] BSTR url, [in] BSTR mimeType, [in] int expectedContentLength, [in] BSTR textEncodingName); - - /* - - (NSString *)MIMEType - */ - HRESULT MIMEType([out, retval] BSTR* result); - - /* - - (NSString *)suggestedFilename - */ - HRESULT suggestedFilename([out, retval] BSTR* result); - - /* - - (NSString *)textEncodingName - */ - HRESULT textEncodingName([out, retval] BSTR* result); - - /* - - (NSURL *)URL - */ - HRESULT URL([out, retval] BSTR* result); -} diff --git a/WebKit/win/Interfaces/IWebURLResponsePrivate.idl b/WebKit/win/Interfaces/IWebURLResponsePrivate.idl deleted file mode 100644 index 00133a7..0000000 --- a/WebKit/win/Interfaces/IWebURLResponsePrivate.idl +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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(18730CD8-864E-4898-B775-88905CC8E9DD), - pointer_default(unique) -] - -interface IWebURLResponsePrivate : IUnknown -{ - HRESULT sslPeerCertificate([out, retval] OLE_HANDLE* result); -} diff --git a/WebKit/win/Interfaces/IWebUndoManager.idl b/WebKit/win/Interfaces/IWebUndoManager.idl deleted file mode 100644 index 4cea91a..0000000 --- a/WebKit/win/Interfaces/IWebUndoManager.idl +++ /dev/null @@ -1,314 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -interface IWebInvocation; -interface IWebMethodSignature; - -[ - object, - oleautomation, - uuid(D25D748C-6C1E-478d-9832-FDA26E8F7EE4), - pointer_default(unique) -] -interface IWebUndoManager : IUnknown -{ - /* - - (void)beginUndoGrouping - */ - HRESULT beginUndoGrouping(); - - /* - - (BOOL)canRedo - */ - HRESULT canRedo([out, retval] BOOL* result); - - /* - - (BOOL)canUndo - */ - HRESULT canUndo([out, retval] BOOL* result); - - /* - - (void)disableUndoRegistration - */ - HRESULT disableUndoRegistration(); - - /* - - (void)enableUndoRegistration - */ - HRESULT enableUndoRegistration(); - - /* - - (void)endUndoGrouping - */ - HRESULT endUndoGrouping(); - - /* - - (void)forwardInvocation:(NSInvocation *)anInvocation - */ - HRESULT forwardInvocation([in] IWebInvocation* anInvocation); - - /* - - (int)groupingLevel - */ - HRESULT groupingLevel([out, retval] int* groupingLevel); - - /* - - (BOOL)groupsByEvent - */ - HRESULT groupsByEvent([out, retval] BOOL* result); - - /* - - (BOOL)isRedoing - */ - HRESULT isRedoing([out, retval] BOOL* result); - - /* - - (BOOL)isUndoing - */ - HRESULT isUndoing([out, retval] BOOL* result); - - /* - - (BOOL)isUndoRegistrationEnabled - */ - HRESULT isUndoRegistrationEnabled([out, retval] BOOL* result); - - /* - - (unsigned)levelsOfUndo - */ - HRESULT levelsOfUndo([out, retval] UINT* result); - - /* - - (id)prepareWithInvocationTarget:(id)target - */ - HRESULT prepareWithInvocationTarget([in] IUnknown* target, [out, retval] IUnknown** result); - - /* - - (void)redo - */ - HRESULT redo(); - - /* - - (NSString *)redoActionName - */ - HRESULT redoActionName([out, retval] BSTR* result); - - /* - - (NSString *)redoMenuItemTitle - */ - HRESULT redoMenuItemTitle([out, retval] BSTR* result); - - /* - - (NSString *)redoMenuTitleForUndoActionName:(NSString *)actionName - */ - HRESULT redoMenuTitleForUndoActionName([in] BSTR actionName, [out, retval] BSTR* result); - - /* - - (void)registerUndoWithTarget:(id)target selector:(SEL)aSelector object:(id)anObject - */ - HRESULT registerUndoWithTarget([in] IUnknown* target, [in] UINT aSelector, [in] IUnknown* anObject); - - /* - - (void)removeAllActions - */ - HRESULT removeAllActions(); - - /* - - (void)removeAllActionsWithTarget:(id)target - */ - HRESULT removeAllActionsWithTarget([in] IUnknown* target); - - /* - - (NSArray *)runLoopModes - */ - HRESULT runLoopModes([out, retval] IEnumVARIANT** enumModes); - - /* - - (void)setActionName:(NSString *)actionName - */ - HRESULT setActionName([in] BSTR actionName); - - /* - - (void)setGroupsByEvent:(BOOL)flag - */ - HRESULT setGroupsByEvent([in] BOOL flag); - - /* - - (void)setLevelsOfUndo:(unsigned)anInt - */ - HRESULT setLevelsOfUndo([in] UINT anInt); - - /* - - (void)setRunLoopModes:(NSArray *)modes - */ - HRESULT setRunLoopModes([in] int cModes, [in, size_is(cModes)] BSTR* modes); - - /* - - (void)undo - */ - HRESULT undo(); - - /* - - (NSString *)undoActionName - */ - HRESULT undoActionName([out, retval] BSTR* result); - - /* - - (NSString *)undoMenuItemTitle - */ - HRESULT undoMenuItemTitle([out, retval] BSTR* result); - - /* - - (NSString *)undoMenuTitleForUndoActionName:(NSString *)actionName - */ - HRESULT undoMenuTitleForUndoActionName([in] BSTR actionName, [out, retval] BSTR* result); - - /* - - (void)undoNestedGroup - */ - HRESULT undoNestedGroup(); -} - -[ - object, - oleautomation, - uuid(67B067BE-4DE6-45c2-AD39-A91DFA84FF4E), - pointer_default(unique) -] -interface IWebInvocation : IUnknown -{ - /* - + (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)signature - */ - HRESULT invocationWithMethodSignature([in] IWebMethodSignature* signature); - - /* - - (BOOL)argumentsRetained - */ - HRESULT argumentsRetained([out, retval] BOOL* result); - - /* - - (void)getArgument:(void *)buffer atIndex:(int)index - */ - [local] HRESULT getArgument([in] void* buffer, [in] int index); - - /* - - (void)getReturnValue:(void *)buffer - */ - [local] HRESULT getReturnValue([in] void* buffer); - - /* - - (void)invoke - */ - HRESULT invoke(); - - /* - - (void)invokeWithTarget:(id)anObject - */ - HRESULT invokeWithTarget([in] IUnknown* anObject); - - /* - - (NSMethodSignature *)methodSignature - */ - HRESULT methodSignature([out, retval] IWebMethodSignature** result); - - /* - - (void)retainArguments - */ - HRESULT retainArguments(); - - /* - - (SEL)selector - */ - HRESULT selector([out, retval] UINT* result); - - /* - - (void)setArgument:(void *)buffer atIndex:(int)index - */ - [local] HRESULT setArgument([in] void* buffer, [in] int atIndex); - - /* - - (void)setReturnValue:(void *)buffer - */ - [local] HRESULT setReturnValue([in] void* buffer); - - /* - - (void)setSelector:(SEL)selector - */ - HRESULT setSelector([in] UINT selector); - - /* - - (void)setTarget:(id)anObject - */ - HRESULT setTarget([in] IUnknown* anObject); - - /* - - (id)target - */ - HRESULT target([out, retval] IUnknown** result); -} - -[ - object, - oleautomation, - uuid(431DD6B2-56BF-4f48-943B-78CCEAC418E4), - pointer_default(unique) -] -interface IWebMethodSignature : IUnknown -{ - /* - - (unsigned)frameLength - */ - HRESULT frameLength([out, retval] UINT* result); - - /* - - (const char *)getArgumentTypeAtIndex:(unsigned)index - */ - HRESULT getArgumentTypeAtIndex([in] UINT index, [out, retval] BSTR* result); - - /* - - (BOOL)isOneway - */ - HRESULT isOneway([out, retval] BOOL* result); - - /* - - (unsigned)methodReturnLength - */ - HRESULT methodReturnLength([out, retval] UINT* result); - - /* - - (const char *)methodReturnType - */ - HRESULT methodReturnType([out, retval] BSTR* result); - - /* - - (unsigned)numberOfArguments - */ - HRESULT numberOfArguments([out, retval] UINT* result); -} diff --git a/WebKit/win/Interfaces/IWebUndoTarget.idl b/WebKit/win/Interfaces/IWebUndoTarget.idl deleted file mode 100755 index 01e14d0..0000000 --- a/WebKit/win/Interfaces/IWebUndoTarget.idl +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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"; -#endif - -[ - object, - oleautomation, - uuid(BF7F516E-E75D-4e3a-83E2-8F694D83C72D), - pointer_default(unique) -] -interface IWebUndoTarget : IUnknown -{ - HRESULT invoke([in] BSTR actionName, [in] IUnknown* obj); -} diff --git a/WebKit/win/Interfaces/IWebView.idl b/WebKit/win/Interfaces/IWebView.idl deleted file mode 100644 index 92fa2b5..0000000 --- a/WebKit/win/Interfaces/IWebView.idl +++ /dev/null @@ -1,1190 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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. - */ - -cpp_quote("/* identifiers for commands that can be called by the webview's frame */") -cpp_quote("enum WebViewCmd { Cut = 100, Copy, Paste, ForwardDelete, SelectAll, Undo, Redo };") - -cpp_quote("#define WebViewProgressStartedNotification TEXT(\"WebProgressStartedNotification\")") -cpp_quote("#define WebViewProgressEstimateChangedNotification TEXT(\"WebProgressEstimateChangedNotification\")") -cpp_quote("#define WebViewProgressFinishedNotification TEXT(\"WebProgressFinishedNotification\")") - -#ifndef DO_NO_IMPORTS -import "oaidl.idl"; -import "ocidl.idl"; -import "IWebUIDelegate.idl"; -import "IWebURLResponse.idl"; -import "IWebResourceLoadDelegate.idl"; -import "IWebDownload.idl"; -import "IWebFrameLoadDelegate.idl"; -import "IWebPolicyDelegate.idl"; -import "IWebBackForwardList.idl"; -import "IWebHistoryItem.idl"; -import "IWebPreferences.idl"; -import "DOMCSS.idl"; -import "IWebUndoManager.idl"; -import "IWebEditingDelegate.idl"; -import "DOMRange.idl"; -#endif - -interface IDOMCSSStyleDeclaration; -interface IDOMDocument; -interface IDOMElement; -interface IDOMNode; -interface IDOMRange; - -interface IWebArchive; -interface IWebBackForwardList; -interface IWebDataSource; -interface IWebFrame; -interface IWebFrameView; -interface IWebHistoryItem; -interface IWebPreferences; -interface IWebScriptObject; - -interface IWebUIDelegate; -interface IWebResourceLoadDelegate; -interface IWebDownloadDelegate; -interface IWebEditingDelegate; -interface IWebFrameLoadDelegate; -interface IWebPolicyDelegate; -interface IWebDocumentView; -interface IWebDocumentRepresentation; -interface IWebUndoManager; - -/* These are the keys for the WebElementPropertyBag */ -const LPCOLESTR WebElementDOMNodeKey = L"WebElementDOMNodeKey"; -const LPCOLESTR WebElementFrameKey = L"WebElementFrameKey"; -const LPCOLESTR WebElementImageAltStringKey = L"WebElementImageAltStringKey"; -const LPCOLESTR WebElementImageKey = L"WebElementImageKey"; -const LPCOLESTR WebElementImageRectKey = L"WebElementImageRectKey"; -const LPCOLESTR WebElementImageURLKey = L"WebElementImageURLKey"; -const LPCOLESTR WebElementIsSelectedKey = L"WebElementIsSelectedKey"; -const LPCOLESTR WebElementSpellingToolTipKey = L"WebElementSpellingToolTipKey"; -const LPCOLESTR WebElementTitleKey = L"WebElementTitleKey"; -const LPCOLESTR WebElementLinkURLKey = L"WebElementLinkURLKey"; -const LPCOLESTR WebElementLinkTargetFrameKey = L"WebElementLinkTargetFrameKey"; -const LPCOLESTR WebElementLinkTitleKey = L"WebElementLinkTitleKey"; -const LPCOLESTR WebElementLinkLabelKey = L"WebElementLinkLabelKey"; -const LPCOLESTR WebElementIsContentEditableKey = L"WebElementIsContentEditableKey"; - -/*! - @class IEnumTextMatches -*/ -[ - object, - oleautomation, - uuid(C0CDE63A-5ED1-453f-B937-93B1A61AD3B3), - pointer_default(unique) -] -interface IEnumTextMatches : IUnknown -{ - HRESULT Next(ULONG celt, RECT* rect, ULONG* pceltFetched); - HRESULT Skip(ULONG celt); - HRESULT Reset(void); - HRESULT Clone(IEnumTextMatches** ppenum); -}; - -/*! - @class WebView - WebView manages the interaction between WebFrameViews and WebDataSources. Modification - of the policies and behavior of the WebKit is largely managed by WebViews and their - delegates. - - <p> - Typical usage: - </p> - <pre> - WebView *webView; - WebFrame *mainFrame; - - webView = [[WebView alloc] initWithFrame: NSMakeRect (0,0,640,480)]; - mainFrame = [webView mainFrame]; - [mainFrame loadRequest:request]; - </pre> - - WebViews have the following delegates: WebUIDelegate, WebResourceLoadDelegate, - WebFrameLoadDelegate, and WebPolicyDelegate. - - WebKit depends on the WebView's WebUIDelegate for all window - related management, including opening new windows and controlling the user interface - elements in those windows. - - WebResourceLoadDelegate is used to monitor the progress of resources as they are - loaded. This delegate may be used to present users with a progress monitor. - - The WebFrameLoadDelegate receives messages when the URL in a WebFrame is - changed. - - WebView's WebPolicyDelegate can make determinations about how - content should be handled, based on the resource's URL and MIME type. - - @interface WebView : NSView -*/ -[ - object, - oleautomation, - hidden, - uuid(174BBEFD-058E-49c7-91DF-6F110AA4AC28), - pointer_default(unique) -] -interface IWebView : IUnknown -{ - /*! - @method canShowMIMEType: - @abstract Checks if the WebKit can show content of a certain MIME type. - @param MIMEType The MIME type to check. - @result YES if the WebKit can show content with MIMEtype. - + (BOOL)canShowMIMEType:(NSString *)MIMEType; - */ - HRESULT canShowMIMEType([in] BSTR mimeType, [out, retval] BOOL* canShow); - - /*! - @method canShowMIMETypeAsHTML: - @abstract Checks if the the MIME type is a type that the WebKit will interpret as HTML. - @param MIMEType The MIME type to check. - @result YES if the MIMEtype in an HTML type. - + (BOOL)canShowMIMETypeAsHTML:(NSString *)MIMEType; - */ - HRESULT canShowMIMETypeAsHTML([in] BSTR mimeType, [out, retval] BOOL* canShow); - - /*! - @method MIMETypesShownAsHTML - @result Returns an array of NSStrings that describe the MIME types - WebKit will attempt to render as HTML. - + (NSArray *)MIMETypesShownAsHTML; - */ - HRESULT MIMETypesShownAsHTML([out, retval] IEnumVARIANT** enumVariant); - - /*! - @method setMIMETypesShownAsHTML: - @discussion Sets the array of NSString MIME types that WebKit will - attempt to render as HTML. Typically you will retrieve the built-in - array using MIMETypesShownAsHTML and add additional MIME types to that - array. - + (void)setMIMETypesShownAsHTML:(NSArray *)MIMETypes; - */ - HRESULT setMIMETypesShownAsHTML([in, size_is(cMimeTypes)] BSTR* mimeTypes, [in] int cMimeTypes); - - /*! - @method URLFromPasteboard: - @abstract Returns a URL from a pasteboard - @param pasteboard The pasteboard with a URL - @result A URL if the pasteboard has one. Nil if it does not. - @discussion This method differs than NSURL's URLFromPasteboard method in that it tries multiple pasteboard types - including NSURLPboardType to find a URL on the pasteboard. - + (NSURL *)URLFromPasteboard:(NSPasteboard *)pasteboard; - */ - HRESULT URLFromPasteboard([in] IDataObject* pasteboard, [out, retval] BSTR* url); - - /*! - @method URLTitleFromPasteboard: - @abstract Returns a URL title from a pasteboard - @param pasteboard The pasteboard with a URL title - @result A URL title if the pasteboard has one. Nil if it does not. - @discussion This method returns a title that refers a URL on the pasteboard. An example of this is the link label - which is the text inside the anchor tag. - + (NSString *)URLTitleFromPasteboard:(NSPasteboard *)pasteboard; - */ - HRESULT URLTitleFromPasteboard([in] IDataObject* pasteboard, [out, retval] BSTR* urlTitle); - - /*! - @method initWithFrame:frameName:groupName: - @abstract The designated initializer for WebView. - @discussion Initialize a WebView with the supplied parameters. This method will - create a main WebFrame with the view. Passing a top level frame name is useful if you - handle a targetted frame navigation that would normally open a window in some other - way that still ends up creating a new WebView. - @param frame The frame used to create the view. - @param frameName The name to use for the top level frame. May be nil. - @param groupName The name of the webView set to which this webView will be added. May be nil. - @result Returns an initialized WebView. - - (id)initWithFrame:(NSRect)frame frameName:(NSString *)frameName groupName:(NSString *)groupName; - */ - HRESULT initWithFrame([in] RECT frame, [in] BSTR frameName, [in] BSTR groupName); - - /*! - @method setUIDelegate: - @abstract Set the WebView's WebUIDelegate. - @param delegate The WebUIDelegate to set as the delegate. - - (void)setUIDelegate:(id)delegate; - */ - HRESULT setUIDelegate([in] IWebUIDelegate* d); - - /*! - @method UIDelegate - @abstract Return the WebView's WebUIDelegate. - @result The WebView's WebUIDelegate. - - (id)UIDelegate; - */ - HRESULT uiDelegate([retval, out] IWebUIDelegate** d); - - /*! - @method setResourceLoadDelegate: - @abstract Set the WebView's WebResourceLoadDelegate load delegate. - @param delegate The WebResourceLoadDelegate to set as the load delegate. - - (void)setResourceLoadDelegate:(id)delegate; - */ - HRESULT setResourceLoadDelegate([in] IWebResourceLoadDelegate* d); - - /*! - @method resourceLoadDelegate - @result Return the WebView's WebResourceLoadDelegate. - - (id)resourceLoadDelegate; - */ - HRESULT resourceLoadDelegate([retval, out] IWebResourceLoadDelegate** d); - - /*! - @method setDownloadDelegate: - @abstract Set the WebView's WebDownloadDelegate. - @discussion The download delegate is retained by WebDownload when any downloads are in progress. - @param delegate The WebDownloadDelegate to set as the download delegate. - - (void)setDownloadDelegate:(id)delegate; - */ - HRESULT setDownloadDelegate([in] IWebDownloadDelegate* d); - - /*! - @method downloadDelegate - @abstract Return the WebView's WebDownloadDelegate. - @result The WebView's WebDownloadDelegate. - - (id)downloadDelegate; - */ - HRESULT downloadDelegate([retval, out] IWebDownloadDelegate** d); - - /*! - @method setFrameLoadDelegate: - @abstract Set the WebView's WebFrameLoadDelegate delegate. - @param delegate The WebFrameLoadDelegate to set as the delegate. - - (void)setFrameLoadDelegate:(id)delegate; - */ - HRESULT setFrameLoadDelegate([in] IWebFrameLoadDelegate* d); - - /*! - @method frameLoadDelegate - @abstract Return the WebView's WebFrameLoadDelegate delegate. - @result The WebView's WebFrameLoadDelegate delegate. - - (id)frameLoadDelegate; - */ - HRESULT frameLoadDelegate([retval, out] IWebFrameLoadDelegate** d); - - /*! - @method setPolicyDelegate: - @abstract Set the WebView's WebPolicyDelegate delegate. - @param delegate The WebPolicyDelegate to set as the delegate. - - (void)setPolicyDelegate:(id)delegate; - */ - HRESULT setPolicyDelegate([in] IWebPolicyDelegate* d); - - /*! - @method policyDelegate - @abstract Return the WebView's WebPolicyDelegate. - @result The WebView's WebPolicyDelegate. - - (id)policyDelegate; - */ - HRESULT policyDelegate([retval, out] IWebPolicyDelegate** d); - - /*! - @method mainFrame - @abstract Return the top level frame. - @discussion Note that even document that are not framesets will have a - mainFrame. - @result The main frame. - - (WebFrame *)mainFrame; - */ - HRESULT mainFrame([retval, out] IWebFrame** frame); - - /*! - @method focusedFrame - @abstract Return the frame that has the current focus. - */ - HRESULT focusedFrame([retval, out] IWebFrame** frame); - - /*! - @method backForwardList - @result The backforward list for this webView. - - (WebBackForwardList *)backForwardList; - */ - HRESULT backForwardList([retval, out] IWebBackForwardList** list); - - /*! - @method setMaintainsBackForwardList: - @abstract Enable or disable the use of a backforward list for this webView. - @param flag Turns use of the back forward list on or off - - (void)setMaintainsBackForwardList:(BOOL)flag; - */ - HRESULT setMaintainsBackForwardList([in] BOOL flag); - - /*! - @method goBack - @abstract Go back to the previous URL in the backforward list. - @result YES if able to go back in the backforward list, NO otherwise. - - (BOOL)goBack; - */ - HRESULT goBack([out, retval] BOOL* succeeded); - - /*! - @method goForward - @abstract Go forward to the next URL in the backforward list. - @result YES if able to go forward in the backforward list, NO otherwise. - - (BOOL)goForward; - */ - HRESULT goForward([out, retval] BOOL* succeeded); - - /*! - @method goToBackForwardItem: - @abstract Go back or forward to an item in the backforward list. - @result YES if able to go to the item, NO otherwise. - - (BOOL)goToBackForwardItem:(WebHistoryItem *)item; - */ - HRESULT goToBackForwardItem([in] IWebHistoryItem* item, [out, retval] BOOL* succeeded); - - /*! - @method setTextSizeMultiplier: - @abstract Change the size of the text rendering in views managed by this webView. - @param multiplier A fractional percentage value, 1.0 is 100%. - - (void)setTextSizeMultiplier:(float)multiplier; - */ - HRESULT setTextSizeMultiplier([in] float multiplier); - - /*! - @method textSizeMultiplier - @result The text size multipler. - - (float)textSizeMultiplier; - */ - HRESULT textSizeMultiplier([out, retval] float* multiplier); - - /*! - @method setApplicationNameForUserAgent: - @abstract Set the application name. - @discussion This name will be used in user-agent strings - that are chosen for best results in rendering web pages. - @param applicationName The application name - - (void)setApplicationNameForUserAgent:(NSString *)applicationName; - */ - HRESULT setApplicationNameForUserAgent([in] BSTR applicationName); - - /*! - @method applicationNameForUserAgent - @result The name of the application as used in the user-agent string. - - (NSString *)applicationNameForUserAgent; - */ - HRESULT applicationNameForUserAgent([out, retval] BSTR* applicationName); - - /*! - @method setCustomUserAgent: - @abstract Set the user agent. - @discussion Setting this means that the webView should use this user-agent string - instead of constructing a user-agent string for each URL. Setting it to nil - causes the webView to construct the user-agent string for each URL - for best results rendering web pages. - @param userAgentString The user agent description - - (void)setCustomUserAgent:(NSString *)userAgentString; - */ - HRESULT setCustomUserAgent([in] BSTR userAgentString); - - /*! - @method customUserAgent - @result The custom user-agent string or nil if no custom user-agent string has been set. - - (NSString *)customUserAgent; - */ - HRESULT customUserAgent([out, retval] BSTR* userAgentString); - - /*! - @method userAgentForURL: - @abstract Get the appropriate user-agent string for a particular URL. - @param URL The URL. - @result The user-agent string for the supplied URL. - - (NSString *)userAgentForURL:(NSURL *)URL; - */ - HRESULT userAgentForURL([in] BSTR url, [out, retval] BSTR* userAgent); - - /*! - @method supportsTextEncoding - @abstract Find out if the current web page supports text encodings. - @result YES if the document view of the current web page can - support different text encodings. - - (BOOL)supportsTextEncoding; - */ - HRESULT supportsTextEncoding([out, retval] BOOL* supports); - - /*! - @method setCustomTextEncodingName: - @discussion Make the page display with a different text encoding; stops any load in progress. - The text encoding passed in overrides the normal text encoding smarts including - what's specified in a web page's header or HTTP response. - The text encoding automatically goes back to the default when the top level frame - changes to a new location. - Setting the text encoding name to nil makes the webView use default encoding rules. - @param encoding The text encoding name to use to display a page or nil. - - (void)setCustomTextEncodingName:(NSString *)encodingName; - */ - HRESULT setCustomTextEncodingName([in] BSTR encodingName); - - /*! - @method customTextEncodingName - @result The custom text encoding name or nil if no custom text encoding name has been set. - - (NSString *)customTextEncodingName; - */ - HRESULT customTextEncodingName([out, retval] BSTR* encodingName); - - /*! - @method setMediaStyle: - @discussion Set the media style for the WebView. The mediaStyle will override the normal value - of the CSS media property. Setting the value to nil will restore the normal value. - @param mediaStyle The value to use for the CSS media property. - - (void)setMediaStyle:(NSString *)mediaStyle; - */ - HRESULT setMediaStyle([in] BSTR media); - - /*! - @method mediaStyle - @result mediaStyle The value to use for the CSS media property, as set by setMediaStyle:. It - will be nil unless set by that method. - - (NSString *)mediaStyle; - */ - HRESULT mediaStyle([out, retval] BSTR* media); - - /*! - @method stringByEvaluatingJavaScriptFromString: - @param script The text of the JavaScript. - @result The result of the script, converted to a string, or nil for failure. - - (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script; - */ - HRESULT stringByEvaluatingJavaScriptFromString([in] BSTR script, [out, retval] BSTR* result); - - /*! - @method windowScriptObject - @discussion windowScriptObject return a WebScriptObject that represents the - window object from the script environment. - @result Returns the window object from the script environment. - - (WebScriptObject *)windowScriptObject; - */ - HRESULT windowScriptObject([out, retval] IWebScriptObject** webScriptObject); - - /*! - @method setPreferences: - @param preferences The preferences to use for the webView. - @abstract Override the standard setting for the webView. - - (void)setPreferences: (WebPreferences *)prefs; - */ - HRESULT setPreferences([in] IWebPreferences* prefs); - - /*! - @method preferences - @result Returns the preferences used by this webView. - @discussion This method will return [WebPreferences standardPreferences] if no - other instance of WebPreferences has been set. - - (WebPreferences *)preferences; - */ - HRESULT preferences([out, retval] IWebPreferences** prefs); - - /*! - @method setPreferencesIdentifier: - @param anIdentifier The string to use a prefix for storing values for this WebView in the user - defaults database. - @discussion If the WebPreferences for this WebView are stored in the user defaults database, the - string set in this method will be used a key prefix. - - (void)setPreferencesIdentifier:(NSString *)anIdentifier; - */ - HRESULT setPreferencesIdentifier([in] BSTR anIdentifier); - - /*! - @method preferencesIdentifier - @result Returns the WebPreferences key prefix. - - (NSString *)preferencesIdentifier; - */ - HRESULT preferencesIdentifier([out, retval] BSTR* anIdentifier); - - /*! - @method setHostWindow: - @param hostWindow The host window for the web view. - @discussion Parts of WebKit (such as plug-ins and JavaScript) depend on a window to function - properly. Set a host window so these parts continue to function even when the web view is - not in an actual window. - - (void)setHostWindow:(NSWindow *)hostWindow; - */ - HRESULT setHostWindow([in] OLE_HANDLE window); - - /*! - @method hostWindow - @result The host window for the web view. - - (NSWindow *)hostWindow; - */ - HRESULT hostWindow([out, retval] OLE_HANDLE* window); - - /*! - @method searchFor:direction:caseSensitive: - @abstract Searches a document view for a string and highlights the string if it is found. - Starts the search from the current selection. Will search across all frames. - @param string The string to search for. - @param forward YES to search forward, NO to seach backwards. - @param caseFlag YES to for case-sensitive search, NO for case-insensitive search. - @result YES if found, NO if not found. - - (BOOL)searchFor:(NSString *)string direction:(BOOL)forward caseSensitive:(BOOL)caseFlag wrap:(BOOL)wrapFlag; - */ - HRESULT searchFor([in] BSTR str, [in] BOOL forward, [in] BOOL caseFlag, [in] BOOL wrapFlag, [out, retval] BOOL* found); - - /*! - @method registerViewClass:representationClass:forMIMEType: - @discussion Register classes that implement WebDocumentView and WebDocumentRepresentation respectively. - A document class may register for a primary MIME type by excluding - a subtype, i.e. "video/" will match the document class with - all video types. More specific matching takes precedence - over general matching. - @param viewClass The WebDocumentView class to use to render data for a given MIME type. - @param representationClass The WebDocumentRepresentation class to use to represent data of the given MIME type. - @param MIMEType The MIME type to represent with an object of the given class. - + (void)registerViewClass:(Class)viewClass representationClass:(Class)representationClass forMIMEType:(NSString *)MIMEType; - */ - HRESULT registerViewClass([in] IWebDocumentView* view, [in] IWebDocumentRepresentation* representation, [in] BSTR forMIMEType); - - /*! - @method setGroupName: - @param groupName The name of the group for this WebView. - @discussion JavaScript may access named frames within the same group. - - (void)setGroupName:(NSString *)groupName; - */ - HRESULT setGroupName([in] BSTR groupName); - - /*! - @method groupName - @discussion The group name for this WebView. - - (NSString *)groupName; - */ - HRESULT groupName([out, retval] BSTR* groupName); - - /*! - @method estimatedProgress - @discussion An estimate of the percent complete for a document load. This - value will range from 0 to 1.0 and, once a load completes, will remain at 1.0 - until a new load starts, at which point it will be reset to 0. The value is an - estimate based on the total number of bytes expected to be received - for a document, including all it's possible subresources. For more accurate progress - indication it is recommended that you implement a WebFrameLoadDelegate and a - WebResourceLoadDelegate. - - (double)estimatedProgress; - */ - HRESULT estimatedProgress([out, retval] double* estimatedProgress); - - /*! - @method isLoading - @discussion Returns YES if there are any pending loads. - - (BOOL)isLoading; - */ - HRESULT isLoading([out, retval] BOOL* isLoading); - - /*! - @method elementAtPoint: - @param point A point in the coordinates of the WebView - @result An element dictionary describing the point - - (NSDictionary *)elementAtPoint:(NSPoint)point; - */ - HRESULT elementAtPoint([in] LPPOINT point, [out, retval] IPropertyBag** elementDictionary); - - /*! - @method pasteboardTypesForSelection - @abstract Returns the pasteboard types that WebView can use for the current selection - - (NSArray *)pasteboardTypesForSelection; - */ - HRESULT pasteboardTypesForSelection([out, retval] IEnumVARIANT** enumVariant); - - /*! - @method writeSelectionWithPasteboardTypes:toPasteboard: - @abstract Writes the current selection to the pasteboard - @param types The types that WebView will write to the pasteboard - @param pasteboard The pasteboard to write to - - (void)writeSelectionWithPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard; - */ - HRESULT writeSelectionWithPasteboardTypes([in, size_is(cTypes)] BSTR* types, [in] int cTypes, [in] IDataObject* pasteboard); - - /*! - @method pasteboardTypesForElement: - @abstract Returns the pasteboard types that WebView can use for an element - @param element The element - - (NSArray *)pasteboardTypesForElement:(NSDictionary *)element; - */ - HRESULT pasteboardTypesForElement([in] IPropertyBag* elementDictionary, [out, retval] IEnumVARIANT** enumVariant); - - /*! - @method writeElement:withPasteboardTypes:toPasteboard: - @abstract Writes an element to the pasteboard - @param element The element to write to the pasteboard - @param types The types that WebView will write to the pasteboard - @param pasteboard The pasteboard to write to - - (void)writeElement:(NSDictionary *)element withPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard; - */ - HRESULT writeElement([in] IPropertyBag* elementDictionary, [in, size_is(cWithPasteboardTypes)] BSTR* withPasteboardTypes, [in] int cWithPasteboardTypes, [in] IDataObject* pasteboard); - - /*! - @method selectedText - @abstract Returns the selection as a string - */ - HRESULT selectedText([out, retval] BSTR* text); - - /*! - @method centerSelectionInVisibleArea - @abstract Centers the selected text in the WebView - - (void)centerSelectionInVisibleArea:(id)sender; - */ - HRESULT centerSelectionInVisibleArea([in] IUnknown* sender); - - /*! - @method moveDragCaretToPoint: - @param point A point in the coordinates of the WebView - @discussion This method moves the caret that shows where something being dragged will be dropped. It may cause the WebView to scroll - to make the new position of the drag caret visible. - - (void)moveDragCaretToPoint:(NSPoint)point; - */ - HRESULT moveDragCaretToPoint([in] LPPOINT point); - - /*! - @method removeDragCaret - @abstract Removes the drag caret from the WebView - - (void)removeDragCaret; - */ - HRESULT removeDragCaret(); - - /*! - @method setDrawsBackground: - @param drawsBackround YES to cause the receiver to draw a default white background, NO otherwise. - @abstract Sets whether the receiver draws a default white background when the loaded page has no background specified. - - (void)setDrawsBackground:(BOOL)drawsBackround; - */ - HRESULT setDrawsBackground([in] BOOL drawsBackground); - - /*! - @method drawsBackground - @result Returns YES if the receiver draws a default white background, NO otherwise. - - (BOOL)drawsBackground; - */ - HRESULT drawsBackground([out, retval] BOOL* drawsBackground); - - /*! - @method setMainFrameURL: - @param URLString The URL to load in the mainFrame. - - (void)setMainFrameURL:(NSString *)URLString; - */ - HRESULT setMainFrameURL([in] BSTR urlString); - - /*! - @method mainFrameURL - @result Returns the main frame's current URL. - - (NSString *)mainFrameURL; - */ - HRESULT mainFrameURL([out, retval] BSTR* urlString); - - /*! - @method mainFrameDocument - @result Returns the main frame's DOMDocument. - - (DOMDocument *)mainFrameDocument; - */ - HRESULT mainFrameDocument([out, retval] IDOMDocument** document); - - /*! - @method mainFrameTitle - @result Returns the main frame's title if any, otherwise an empty string. - - (NSString *)mainFrameTitle; - */ - HRESULT mainFrameTitle([out, retval] BSTR* title); - - /*! - @method mainFrameIcon - @discussion The methods returns the site icon for the current page loaded in the mainFrame. - @result Returns the main frame's icon if any, otherwise nil. - - (NSImage *)mainFrameIcon; - */ - HRESULT mainFrameIcon([out, retval] OLE_HANDLE* hBitmap); - - /*! - @method registerURLSchemeAsLocal - @discussion Adds the scheme to the list of schemes to be treated as local. - @param scheme The scheme to register. - + (void)registerURLSchemeAsLocal:(NSString *)scheme; - */ - HRESULT registerURLSchemeAsLocal([in] BSTR scheme); -} - -/* - @interface WebView (WebIBActions) <NSUserInterfaceValidations> -*/ -[ - object, - oleautomation, - uuid(8F0E3A30-B924-44f8-990A-1AE61ED6C632), - pointer_default(unique) -] -interface IWebIBActions : IUnknown -{ - /* - - (IBAction)takeStringURLFrom:(id)sender; - */ - HRESULT takeStringURLFrom([in] IUnknown* sender); - - /* - - (IBAction)stopLoading:(id)sender; - */ - HRESULT stopLoading([in] IUnknown* sender); - - /* - - (IBAction)reload:(id)sender; - */ - HRESULT reload([in] IUnknown* sender); - - /* - - (BOOL)canGoBack; - */ - HRESULT canGoBack([in] IUnknown* sender, [out, retval] BOOL* result); - - /* - - (IBAction)goBack:(id)sender; - */ - HRESULT goBack([in] IUnknown* sender); - - /* - - (BOOL)canGoForward; - */ - HRESULT canGoForward([in] IUnknown* sender, [out, retval] BOOL* result); - - /* - - (IBAction)goForward:(id)sender; - */ - HRESULT goForward([in] IUnknown* sender); - - /* - - (BOOL)canMakeTextLarger; - */ - HRESULT canMakeTextLarger([in] IUnknown* sender, [out, retval] BOOL* result); - - /* - - (IBAction)makeTextLarger:(id)sender; - */ - HRESULT makeTextLarger([in] IUnknown* sender); - - /* - - (BOOL)canMakeTextSmaller; - */ - HRESULT canMakeTextSmaller([in] IUnknown* sender, [out, retval] BOOL* result); - - /* - - (IBAction)makeTextSmaller:(id)sender; - */ - HRESULT makeTextSmaller([in] IUnknown* sender); - - /* - - (BOOL)canMakeTextStandardSize; - */ - HRESULT canMakeTextStandardSize([in] IUnknown* sender, [out, retval] BOOL* result); - - /* - - (IBAction)makeTextStandardSize:(id)sender; - */ - HRESULT makeTextStandardSize([in] IUnknown* sender); - - /* - - (IBAction)toggleContinuousSpellChecking:(id)sender; - */ - HRESULT toggleContinuousSpellChecking([in] IUnknown* sender); - - /* - - (IBAction)toggleSmartInsertDelete:(id)sender; - */ - HRESULT toggleSmartInsertDelete([in] IUnknown* sender); - - /* - - (void)toggleGrammarChecking:(id)sender - */ - HRESULT toggleGrammarChecking([in] IUnknown* sender); - - /*! - @method setPageSizeMultiplier: - @abstract Set a zoom factor for all views managed by this webView. - @param multiplier A fractional percentage value, 1.0 is 100%. - - (void)setPageSizeMultiplier:(float)multiplier; - */ - HRESULT setPageSizeMultiplier([in] float multiplier); - - /*! - @method pageSizeMultiplier - @result The page size multipler. - - (float)pageSizeMultiplier; - */ - HRESULT pageSizeMultiplier([out, retval] float* multiplier); - - /* - - (BOOL)canZoomPageIn; - */ - HRESULT canZoomPageIn([in] IUnknown* sender, [out, retval] BOOL* result); - - /* - - (IBAction)zoomPageIn:(id)sender; - */ - HRESULT zoomPageIn([in] IUnknown* sender); - - /* - - (BOOL)canZoomPageOut; - */ - HRESULT canZoomPageOut([in] IUnknown* sender, [out, retval] BOOL* result); - - /* - - (IBAction)zoomPageOut:(id)sender; - */ - HRESULT zoomPageOut([in] IUnknown* sender); - - /* - - (BOOL)canResetPageZoom; - */ - HRESULT canResetPageZoom([in] IUnknown* sender, [out, retval] BOOL* result); - - /* - - (IBAction)resetPageZoom:(id)sender; - */ - HRESULT resetPageZoom([in] IUnknown* sender); -} - -/* - @interface WebView (WebViewCSS) -*/ -[ - object, - oleautomation, - uuid(ADF68A8C-336F-405c-A053-3D11A9D5B092), - pointer_default(unique) -] -interface IWebViewCSS : IUnknown -{ - /* - - (DOMCSSStyleDeclaration *)computedStyleForElement:(DOMElement *)element pseudoElement:(NSString *)pseudoElement; - */ - HRESULT computedStyleForElement([in] IDOMElement* element, [in] BSTR pseudoElement, [out, retval] IDOMCSSStyleDeclaration** style); -} - -/* - @interface WebView (WebViewEditing) -*/ -[ - object, - oleautomation, - uuid(07BDAC9A-19A1-4086-864D-BAD9E0F00D5C), - pointer_default(unique) -] -interface IWebViewEditing : IUnknown -{ - /* - - (DOMRange *)editableDOMRangeForPoint:(NSPoint)point; - */ - HRESULT editableDOMRangeForPoint([in] LPPOINT point, [out, retval] IDOMRange** range); - - /* - - (void)setSelectedDOMRange:(DOMRange *)range affinity:(NSSelectionAffinity)selectionAffinity; - */ - HRESULT setSelectedDOMRange([in] IDOMRange* range, [in] WebSelectionAffinity affinity); - - /* - - (DOMRange *)selectedDOMRange; - */ - HRESULT selectedDOMRange([out, retval] IDOMRange** range); - - /* - - (NSSelectionAffinity)selectionAffinity; - */ - HRESULT selectionAffinity([out, retval] [out, retval] WebSelectionAffinity* affinity); - - /* - - (void)setEditable:(BOOL)flag; - */ - HRESULT setEditable([in] BOOL flag); - - /* - - (BOOL)isEditable; - */ - HRESULT isEditable([out, retval] BOOL* isEditable); - - /* - - (void)setTypingStyle:(DOMCSSStyleDeclaration *)style; - */ - HRESULT setTypingStyle([in] IDOMCSSStyleDeclaration* style); - - /* - - (DOMCSSStyleDeclaration *)typingStyle; - */ - HRESULT typingStyle([out, retval] IDOMCSSStyleDeclaration** style); - - /* - - (void)setSmartInsertDeleteEnabled:(BOOL)flag; - */ - HRESULT setSmartInsertDeleteEnabled([in] BOOL flag); - - /* - - (BOOL)smartInsertDeleteEnabled; - */ - HRESULT smartInsertDeleteEnabled([out, retval] BOOL* enabled); - - /* - - (void)setContinuousSpellCheckingEnabled:(BOOL)flag; - */ - HRESULT setContinuousSpellCheckingEnabled([in] BOOL flag); - - /* - - (BOOL)isContinuousSpellCheckingEnabled; - */ - HRESULT isContinuousSpellCheckingEnabled([out, retval] BOOL* enabled); - - /* - - (WebNSInt)spellCheckerDocumentTag; - */ - HRESULT spellCheckerDocumentTag([out, retval] int* tag); - - /* - - (NSUndoManager *)undoManager; - */ - HRESULT undoManager([out, retval] IWebUndoManager** manager); - - /* - - (void)setEditingDelegate:(id)delegate; - */ - HRESULT setEditingDelegate([in] IWebEditingDelegate* d); - - /* - - (id)editingDelegate; - */ - HRESULT editingDelegate([out, retval] IWebEditingDelegate** d); - - /* - - (DOMCSSStyleDeclaration *)styleDeclarationWithText:(NSString *)text; - */ - HRESULT styleDeclarationWithText([in] BSTR text, [out, retval] IDOMCSSStyleDeclaration** style); - - /* - - (BOOL)hasSelectedRange; - */ - HRESULT hasSelectedRange([out, retval] BOOL* hasSelectedRange); - - /* - - (BOOL)cutEnabled; - */ - HRESULT cutEnabled([out, retval] BOOL* enabled); - - /* - - (BOOL)copyEnabled; - */ - HRESULT copyEnabled([out, retval] BOOL* enabled); - - /* - - (BOOL)pasteEnabled; - */ - HRESULT pasteEnabled([out, retval] BOOL* enabled); - - /* - - (BOOL)deleteEnabled; - */ - HRESULT deleteEnabled([out, retval] BOOL* enabled); - - /* - - (BOOL)editingEnabled; - */ - HRESULT editingEnabled([out, retval] BOOL* enabled); - - /* - - (BOOL)isGrammarCheckingEnabled - */ - HRESULT isGrammarCheckingEnabled([out, retval] BOOL* enabled); - - /* - - (void)setGrammarCheckingEnabled:(BOOL)flag - */ - HRESULT setGrammarCheckingEnabled(BOOL enabled); -} - -/* - @interface WebView (WebViewUndoableEditing) -*/ -[ - object, - oleautomation, - uuid(639E7121-13C8-4a12-BC18-6E1F3D68F3C3), - pointer_default(unique) -] -interface IWebViewUndoableEditing : IUnknown -{ - /* - - (void)replaceSelectionWithNode:(DOMNode *)node; - */ - HRESULT replaceSelectionWithNode([in] IDOMNode* node); - - /* - - (void)replaceSelectionWithText:(NSString *)text; - */ - HRESULT replaceSelectionWithText([in] BSTR text); - - /* - - (void)replaceSelectionWithMarkupString:(NSString *)markupString; - */ - HRESULT replaceSelectionWithMarkupString([in] BSTR markupString); - - /* - - (void)replaceSelectionWithArchive:(WebArchive *)archive; - */ - HRESULT replaceSelectionWithArchive([in] IWebArchive* archive); - - /* - - (void)deleteSelection; - */ - HRESULT deleteSelection(); - - /* - - (void)clearSelection; - */ - HRESULT clearSelection(); - - /* - - (void)applyStyle:(DOMCSSStyleDeclaration *)style; - */ - HRESULT applyStyle([in] IDOMCSSStyleDeclaration* style); -} - -/* - @interface WebView (WebViewEditingActions) -*/ -[ - object, - oleautomation, - uuid(7E066C42-8E81-4778-888D-D6CC93E27D4C), - pointer_default(unique) -] -interface IWebViewEditingActions : IUnknown -{ - /* - - (void)copy:(id)sender; - */ - HRESULT copy([in] IUnknown* sender); - - /* - - (void)cut:(id)sender; - */ - HRESULT cut([in] IUnknown* sender); - - /* - - (void)paste:(id)sender; - */ - HRESULT paste([in] IUnknown* sender); - - /* - - (void)copyURL:(id)sender; - */ - HRESULT copyURL([in] BSTR url); - - /* - - (void)copyFont:(id)sender; - */ - HRESULT copyFont([in] IUnknown* sender); - - /* - - (void)pasteFont:(id)sender; - */ - HRESULT pasteFont([in] IUnknown* sender); - - /* - - (void)delete:(id)sender; - */ - HRESULT delete_([in] IUnknown* sender); - - /* - - (void)pasteAsPlainText:(id)sender; - */ - HRESULT pasteAsPlainText([in] IUnknown* sender); - - /* - - (void)pasteAsRichText:(id)sender; - */ - HRESULT pasteAsRichText([in] IUnknown* sender); - - - /* - - (void)changeFont:(id)sender; - */ - HRESULT changeFont([in] IUnknown* sender); - - /* - - (void)changeAttributes:(id)sender; - */ - HRESULT changeAttributes([in] IUnknown* sender); - - /* - - (void)changeDocumentBackgroundColor:(id)sender; - */ - HRESULT changeDocumentBackgroundColor([in] IUnknown* sender); - - /* - - (void)changeColor:(id)sender; - */ - HRESULT changeColor([in] IUnknown* sender); - - - /* - - (void)alignCenter:(id)sender; - */ - HRESULT alignCenter([in] IUnknown* sender); - - /* - - (void)alignJustified:(id)sender; - */ - HRESULT alignJustified([in] IUnknown* sender); - - /* - - (void)alignLeft:(id)sender; - */ - HRESULT alignLeft([in] IUnknown* sender); - - /* - - (void)alignRight:(id)sender; - */ - HRESULT alignRight([in] IUnknown* sender); - - - /* - - (void)checkSpelling:(id)sender; - */ - HRESULT checkSpelling([in] IUnknown* sender); - - /* - - (void)showGuessPanel:(id)sender; - */ - HRESULT showGuessPanel([in] IUnknown* sender); - - /* - - (void)performFindPanelAction:(id)sender; - */ - HRESULT performFindPanelAction([in] IUnknown* sender); - - - /* - - (void)startSpeaking:(id)sender; - */ - HRESULT startSpeaking([in] IUnknown* sender); - - /* - - (void)stopSpeaking:(id)sender; - */ - HRESULT stopSpeaking([in] IUnknown* sender); -} diff --git a/WebKit/win/Interfaces/IWebViewPrivate.idl b/WebKit/win/Interfaces/IWebViewPrivate.idl deleted file mode 100644 index b49addf..0000000 --- a/WebKit/win/Interfaces/IWebViewPrivate.idl +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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 "IWebFormDelegate.idl"; -import "IWebFrameLoadDelegatePrivate.idl"; -import "IWebInspector.idl"; -#endif - -interface IEnumTextMatches; -interface IWebFormDelegate; -interface IWebFrameLoadDelegatePrivate; -interface IWebInspector; -interface IWebURLRequest; -interface IWebView; - -[ - object, - oleautomation, - uuid(44914369-DEB5-4fcf-A6A3-30C02E73154F), - pointer_default(unique) -] -interface IWebViewPrivate : IUnknown -{ - /*! - @method _setInViewSourceMode: - @abstract Used to place a WebView into a special source-viewing mode. - - (void)_setInViewSourceMode:(BOOL)flag; - */ - HRESULT setInViewSourceMode([in] BOOL flag); - - /*! - @method _inViewSourceMode; - @abstract Whether or not the WebView is in source-view mode for HTML. - - (BOOL)_inViewSourceMode; - */ - HRESULT inViewSourceMode([out, retval] BOOL* flag); - - HRESULT viewWindow([out, retval] OLE_HANDLE* window); - - // May well become public - //- (void)_setFormDelegate:(id<WebFormDelegate>)delegate; - HRESULT setFormDelegate([in] IWebFormDelegate* formDelegate); - - //- (id<WebFormDelegate>)_formDelegate; - HRESULT formDelegate([out, retval] IWebFormDelegate** formDelegate); - - HRESULT setFrameLoadDelegatePrivate([in] IWebFrameLoadDelegatePrivate* frameLoadDelegatePrivate); - HRESULT frameLoadDelegatePrivate([out, retval] IWebFrameLoadDelegatePrivate** frameLoadDelegatePrivate); - - HRESULT scrollOffset([out, retval] LPPOINT offset); - HRESULT scrollBy([in] LPPOINT offset); - HRESULT visibleContentRect([out, retval] LPRECT rect); - - // SPI for DumpRenderTree - HRESULT updateFocusedAndActiveState(); - - // Support for displaying multiple text matches. - HRESULT markAllMatchesForText([in] BSTR search, [in] BOOL caseSensitive, [in] BOOL highlight, [in] UINT limit, [out] UINT* matches); - HRESULT unmarkAllTextMatches(); - HRESULT rectsForTextMatches([out]IEnumTextMatches** pmatches); - HRESULT selectionRect([in, out] RECT* rc); - HRESULT generateSelectionImage(BOOL forceWhiteText, [out, retval] OLE_HANDLE* hBitmap); - - HRESULT canHandleRequest([in] IWebURLRequest* request, [out, retval] BOOL* result); - - HRESULT clearFocusNode(); - - HRESULT setTabKeyCyclesThroughElements([in] BOOL cycles); - HRESULT tabKeyCyclesThroughElements([out, retval] BOOL* result); - - HRESULT setAllowSiteSpecificHacks([in] BOOL allows); - HRESULT addAdditionalPluginDirectory([in] BSTR directory); - - HRESULT loadBackForwardListFromOtherView([in] IWebView* otherView); - - HRESULT setCustomDropTarget([in] IDropTarget* dt); - HRESULT removeCustomDropTarget(); - - HRESULT setInitialFocus([in] BOOL forward); - - HRESULT inspector([out, retval] IWebInspector**); - - HRESULT clearUndoRedoOperations(); - - HRESULT setProhibitsMainFrameScrolling([in] BOOL prohibits); - - // SPI for DumpRenderTree. This is global to all WebViews. - HRESULT setShouldApplyMacFontAscentHack([in] BOOL shouldApply); - - /*! - @method shouldClose: - @abstract This function will fire the before unload handler for a page. - If the user cancels the closing of a webview from the alert popped up by the - before unload handler, then this function will return false. - */ - HRESULT shouldClose([out, retval] BOOL* result); - - // SPI for DumpRenderTree - HRESULT executeCoreCommandByName([in] BSTR name, [in] BSTR value); - HRESULT clearMainFrameName(); - - HRESULT windowAncestryDidChange(); - - HRESULT paintDocumentRectToContext([in] RECT rect, [in] OLE_HANDLE dc); - - HRESULT setDefersCallbacks([in] BOOL defersCallbacks); - HRESULT defersCallbacks([out, retval] BOOL* defersCallbacks); - - HRESULT standardUserAgentWithApplicationName([in] BSTR applicationName, [retval][out] BSTR* groupName); - - HRESULT setCustomHTMLTokenizerTimeDelay([in] double timeDelay); - HRESULT setCustomHTMLTokenizerChunkSize([in] int chunkSize); - - HRESULT backingStore([out, retval] OLE_HANDLE* hBitmap); - - HRESULT setTransparent([in] BOOL transparent); - HRESULT transparent([out, retval] BOOL* transparent); - - HRESULT setAlwaysUsesComplexTextCodePath([in] BOOL complex); - HRESULT alwaysUsesComplexTextCodePath([out, retval] BOOL* complex); - - HRESULT setCookieEnabled([in] BOOL enable); - HRESULT cookieEnabled([out, retval] BOOL* enabled); -} diff --git a/WebKit/win/Interfaces/WebKit.idl b/WebKit/win/Interfaces/WebKit.idl deleted file mode 100644 index fe08792..0000000 --- a/WebKit/win/Interfaces/WebKit.idl +++ /dev/null @@ -1,368 +0,0 @@ -/* - * Copyright (C) 2006, 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. - * - * 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. - */ - -cpp_quote("/*") -cpp_quote(" * Copyright (C) 2006, 2007, 2008 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") -cpp_quote(" * are met:") -cpp_quote(" * 1. Redistributions of source code must retain the above copyright") -cpp_quote(" * notice, this list of conditions and the following disclaimer.") -cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright") -cpp_quote(" * notice, this list of conditions and the following disclaimer in the") -cpp_quote(" * documentation and/or other materials provided with the distribution.") -cpp_quote(" *") -cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY") -cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE") -cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR") -cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR") -cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,") -cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,") -cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR") -cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY") -cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT") -cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE") -cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ") -cpp_quote(" */") - -#include "autoversion.h" - -#define DO_NO_IMPORTS - -import "oaidl.idl"; -import "ocidl.idl"; - -#include "WebScrollbarTypes.idl" -#include "IWebScriptObject.idl" -#include "DOMCSS.idl" -#include "DOMCore.idl" -#include "DOMEvents.idl" -#include "DOMExtensions.idl" -#include "DOMHTML.idl" -#include "DOMPrivate.idl" -#include "DOMRange.idl" -#include "DOMWindow.idl" -#include "IWebArchive.idl" -#include "IWebBackForwardList.idl" -#include "IWebBackForwardListPrivate.idl" -#include "IWebCache.idl" -#include "IWebCookieManager.idl" -#include "IWebCoreStatistics.idl" -#include "IWebDataSource.idl" -#include "IWebDatabaseManager.idl" -#include "IWebDocument.idl" -#include "IWebDownload.idl" -#include "IWebEditingDelegate.idl" -#include "IWebEmbeddedView.idl" -#include "IWebError.idl" -#include "IWebErrorPrivate.idl" -#include "IWebFormDelegate.idl" -#include "IWebFrame.idl" -#include "IWebFrameLoadDelegate.idl" -#include "IWebFrameLoadDelegatePrivate.idl" -#include "IWebFramePrivate.idl" -#include "IWebFrameView.idl" -#include "IWebHTMLRepresentation.idl" -#include "IWebHTTPURLResponse.idl" -#include "IWebHistory.idl" -#include "IWebHistoryItem.idl" -#include "IWebHistoryItemPrivate.idl" -#include "IWebIconDatabase.idl" -#include "IWebIconFetcher.idl" -#include "IWebInspector.idl" -#include "IWebJavaScriptCollector.idl" -#include "IWebKitStatistics.idl" -#include "IWebMutableURLRequestPrivate.idl" -#include "IWebNotification.idl" -#include "IWebNotificationCenter.idl" -#include "IWebNotificationObserver.idl" -#include "IWebPolicyDelegate.idl" -#include "IWebPreferences.idl" -#include "IWebPreferencesPrivate.idl" -#include "IWebResource.idl" -#include "IWebResourceLoadDelegate.idl" -#include "IWebResourceLoadDelegatePrivate.idl" -#include "IWebScriptCallFrame.idl" -#include "IWebScriptDebugListener.idl" -#include "IWebScriptDebugServer.idl" -#include "IWebScrollBarDelegatePrivate.idl" -#include "IWebScrollBarPrivate.idl" -#include "IWebSecurityOrigin.idl" -#include "IWebTextRenderer.idl" -#include "IWebUIDelegate.idl" -#include "IWebUIDelegatePrivate.idl" -#include "IWebURLAuthenticationChallenge.idl" -#include "IWebURLRequest.idl" -#include "IWebMutableURLRequest.idl" -#include "IWebURLResponse.idl" -#include "IWebURLResponsePrivate.idl" -#include "IWebUndoManager.idl" -#include "IWebUndoTarget.idl" -#include "IWebView.idl" -#include "IWebViewPrivate.idl" - -#include "IGEN_DOMObject.idl" -#include "IGEN_DOMCharacterData.idl" -#include "IGEN_DOMText.idl" -#include "IGEN_DOMAttr.idl" -#include "IGEN_DOMCDATASection.idl" -#include "IGEN_DOMCSSCharsetRule.idl" -#include "IGEN_DOMCSSFontFaceRule.idl" -#include "IGEN_DOMCSSImportRule.idl" -#include "IGEN_DOMCSSMediaRule.idl" -#include "IGEN_DOMCSSPageRule.idl" -#include "IGEN_DOMCSSPrimitiveValue.idl" -#include "IGEN_DOMCSSRule.idl" -#include "IGEN_DOMCSSRuleList.idl" -#include "IGEN_DOMCSSStyleDeclaration.idl" -#include "IGEN_DOMCSSStyleRule.idl" -#include "IGEN_DOMCSSStyleSheet.idl" -#include "IGEN_DOMCSSUnknownRule.idl" -#include "IGEN_DOMCSSValue.idl" -#include "IGEN_DOMCSSValueList.idl" -#include "IGEN_DOMComment.idl" -#include "IGEN_DOMCounter.idl" -#include "IGEN_DOMDOMImplementation.idl" -#include "IGEN_DOMDocument.idl" -#include "IGEN_DOMDocumentFragment.idl" -#include "IGEN_DOMDocumentType.idl" -#include "IGEN_DOMElement.idl" -#include "IGEN_DOMEntity.idl" -#include "IGEN_DOMEntityReference.idl" -#include "IGEN_DOMEvent.idl" -#include "IGEN_DOMEventListener.idl" -#include "IGEN_DOMEventTarget.idl" -#include "IGEN_DOMHTMLAnchorElement.idl" -#include "IGEN_DOMHTMLAppletElement.idl" -#include "IGEN_DOMHTMLAreaElement.idl" -#include "IGEN_DOMHTMLBRElement.idl" -#include "IGEN_DOMHTMLBaseElement.idl" -#include "IGEN_DOMHTMLBaseFontElement.idl" -#include "IGEN_DOMHTMLBlockquoteElement.idl" -#include "IGEN_DOMHTMLBodyElement.idl" -#include "IGEN_DOMHTMLButtonElement.idl" -#include "IGEN_DOMHTMLCollection.idl" -#include "IGEN_DOMHTMLDListElement.idl" -#include "IGEN_DOMHTMLDirectoryElement.idl" -#include "IGEN_DOMHTMLDivElement.idl" -#include "IGEN_DOMHTMLDocument.idl" -#include "IGEN_DOMHTMLElement.idl" -#include "IGEN_DOMHTMLEmbedElement.idl" -#include "IGEN_DOMHTMLFieldSetElement.idl" -#include "IGEN_DOMHTMLFontElement.idl" -#include "IGEN_DOMHTMLFormElement.idl" -#include "IGEN_DOMHTMLFrameElement.idl" -#include "IGEN_DOMHTMLFrameSetElement.idl" -#include "IGEN_DOMHTMLHRElement.idl" -#include "IGEN_DOMHTMLHeadElement.idl" -#include "IGEN_DOMHTMLHeadingElement.idl" -#include "IGEN_DOMHTMLHtmlElement.idl" -#include "IGEN_DOMHTMLIFrameElement.idl" -#include "IGEN_DOMHTMLImageElement.idl" -#include "IGEN_DOMHTMLInputElement.idl" -#include "IGEN_DOMHTMLIsIndexElement.idl" -#include "IGEN_DOMHTMLLIElement.idl" -#include "IGEN_DOMHTMLLabelElement.idl" -#include "IGEN_DOMHTMLLegendElement.idl" -#include "IGEN_DOMHTMLLinkElement.idl" -#include "IGEN_DOMHTMLMapElement.idl" -#include "IGEN_DOMHTMLMarqueeElement.idl" -#include "IGEN_DOMHTMLMenuElement.idl" -#include "IGEN_DOMHTMLMetaElement.idl" -#include "IGEN_DOMHTMLModElement.idl" -#include "IGEN_DOMHTMLOListElement.idl" -#include "IGEN_DOMHTMLObjectElement.idl" -#include "IGEN_DOMHTMLOptGroupElement.idl" -#include "IGEN_DOMHTMLOptionElement.idl" -#include "IGEN_DOMHTMLOptionsCollection.idl" -#include "IGEN_DOMHTMLParagraphElement.idl" -#include "IGEN_DOMHTMLParamElement.idl" -#include "IGEN_DOMHTMLPreElement.idl" -#include "IGEN_DOMHTMLQuoteElement.idl" -#include "IGEN_DOMHTMLScriptElement.idl" -#include "IGEN_DOMHTMLSelectElement.idl" -#include "IGEN_DOMHTMLStyleElement.idl" -#include "IGEN_DOMHTMLTableCaptionElement.idl" -#include "IGEN_DOMHTMLTableCellElement.idl" -#include "IGEN_DOMHTMLTableColElement.idl" -#include "IGEN_DOMHTMLTableElement.idl" -#include "IGEN_DOMHTMLTableRowElement.idl" -#include "IGEN_DOMHTMLTableSectionElement.idl" -#include "IGEN_DOMHTMLTextAreaElement.idl" -#include "IGEN_DOMHTMLTitleElement.idl" -#include "IGEN_DOMHTMLUListElement.idl" -#include "IGEN_DOMMediaList.idl" -#include "IGEN_DOMNamedNodeMap.idl" -#include "IGEN_DOMNode.idl" -#include "IGEN_DOMNodeList.idl" -#include "IGEN_DOMNotation.idl" -#include "IGEN_DOMProcessingInstruction.idl" -#include "IGEN_DOMRect.idl" -#include "IGEN_DOMStyleSheet.idl" -#include "IGEN_DOMStyleSheetList.idl" - -#define __TYPELIB_VERSION__ __BUILD_NUMBER_MAJOR__##.##__BUILD_NUMBER_MINOR__ - -cpp_quote("void shutDownWebKit();") - -[ - uuid(2a748656-625d-4207-b29f-40c95bfeb3a9), - helpstring("WebKit " __BUILD_NUMBER_SHORT__ " Type Library"), - version(__TYPELIB_VERSION__) -] -library WebKit -{ - // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046} - importlib("STDOLE2.TLB"); - - [uuid(d6bca079-f61c-4e1e-b453-32a0477d02e3)] - coclass WebView { - [default] interface IWebView; - interface IWebIBActions; - interface IWebViewCSS; - interface IWebViewEditing; - interface IWebViewUndoableEditing; - interface IWebViewEditingActions; - interface IWebNotificationObserver; - interface IWebViewPrivate; - } - - [uuid(66827ec1-3aef-4241-bac5-f776b44f030f)] - coclass WebIconDatabase { - [default] interface IWebIconDatabase; - } - - [uuid(a062ecc3-bb1b-4694-a569-f59e0ad6be0c)] - coclass WebMutableURLRequest { - [default] interface IWebMutableURLRequest; - } - - [uuid(ba590766-0a6f-46c7-b96e-743490d94cb7)] - coclass WebNotificationCenter { - [default] interface IWebNotificationCenter; - } - - [uuid(a4b9b45d-949f-4c8c-9b92-6fbfcc1caaa2)] - coclass WebHistory { - [default] interface IWebHistory; - } - - [uuid(dd653964-4d37-4fb2-9cb6-6a9a97719332)] - coclass CFDictionaryPropertyBag { - [default] interface IPropertyBag; - } - - [uuid(6be190e9-1725-4e4a-88db-6a9fe242c9e5)] - coclass WebHistoryItem { - [default] interface IWebHistoryItem; - } - - [uuid(f71071fd-a51b-4b69-9eb6-44374405e80c)] - coclass WebCache { - [default] interface IWebCache; - } - - [uuid(1820D883-42FE-4b78-88C8-5456BB19D224)] - coclass WebJavaScriptCollector { - [default] interface IWebJavaScriptCollector; - } - - [uuid(67B89F90-F778-438b-ABBF-34D1ACBF8651)] - coclass WebPreferences { - [default] interface IWebPreferences; - } - - [uuid(E93AA8D7-F362-4a4a-A95D-325906BEB5F0)] - coclass WebKitStatistics { - [default] interface IWebKitStatistics; - } - - [uuid(6C6AF3F9-36B4-4bf7-8BDE-74DCD4AD75A4)] - coclass WebError { - [default] interface IWebError; - } - - [uuid(7433F53B-7FE9-484a-9432-72909457A646)] - coclass WebURLCredential { - [default] interface IWebURLCredential; - } - - [uuid(C0F98BD9-3B1C-413d-904A-E2D1453EAF1F)] - coclass WebDownload { - [default] interface IWebDownload; - } - - [uuid(2FB5499A-BB5D-4469-8517-789FEC8FD9BA)] - coclass WebURLRequest { - [default] interface IWebURLRequest; - } - - [uuid(F366A6E8-E43C-4fd4-AAB0-8E6E79C73E6E)] - coclass WebURLProtectionSpace { - [default] interface IWebURLProtectionSpace; - } - - [uuid(24A53AD5-AA9F-44e6-AA22-2C7C250B661A)] - coclass WebScrollBar { - [default] interface IWebScrollBarPrivate; - } - - [uuid(715636C4-59E7-4b85-BBC5-B555888787D7)] - coclass WebScriptDebugServer { - [default] interface IWebScriptDebugServer; - } - - [uuid(AB201196-8DD2-4d45-AEBD-029B6A37AA27)] - coclass WebURLResponse { - [default] interface IWebURLResponse; - } - - [uuid(24040cd6-aff4-4a51-9c8b-71539580ee76)] - coclass WebTextRenderer { - [default] interface IWebTextRenderer; - } - - [uuid(C2A1BFC2-1E7C-49fe-8592-D0C7FB440BC0)] - coclass WebDatabaseManager { - [default] interface IWebDatabaseManager; - } - - [uuid(1B63D781-9BC4-4a04-899F-C4B05BBD3BE5)] - coclass WebArchive{ - [default] interface IWebArchive; - } - - [uuid(96B93356-9D61-4b3f-A6CF-A78283AC9649)] - coclass WebCoreStatistics{ - [default] interface IWebCoreStatistics; - } - - [uuid(3F35F332-BB2B-49b3-AEDD-27B317687E07)] - coclass WebCookieManager{ - [default] interface IWebCookieManager; - } -} - diff --git a/WebKit/win/Interfaces/WebScrollbarTypes.idl b/WebKit/win/Interfaces/WebScrollbarTypes.idl deleted file mode 100644 index 75f31be..0000000 --- a/WebKit/win/Interfaces/WebScrollbarTypes.idl +++ /dev/null @@ -1,76 +0,0 @@ -/* - * 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. - * - * 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"; -#endif - -// NOTE: these enums must be kept in sync with the WebCore versions in ScrollTypes.h -typedef enum WebScrollBarOrientation { - WebHorizontalScrollbar = 0, - WebVerticalScrollbar -} WebScrollBarOrientation; - -typedef enum WebScrollBarControlSize { - WebRegularScrollbar = 0, - WebSmallScrollbar, - WebMiniScrollbar -} WebScrollBarControlSize; - -typedef enum WebScrollDirection { - WebScrollUp = 0, - WebScrollDown, - WebScrollLeft, - WebScrollRight -} WebScrollDirection; - -typedef enum WebScrollGranularity { - WebScrollByLine = 0, - WebScrollByPage, - WebScrollByDocument, - WebScrollByWheel -} WebScrollGranularity; - -typedef unsigned WebScrollbarControlState; - -typedef enum WebScrollbarControlStateMask { - WebActiveScrollbarState = 1, - WebEnabledScrollbarState = 1 << 1, - WebPressedScrollbarState = 1 << 2, -} WebScrollbarControlStateMask; - -typedef unsigned WebScrollbarControlPartMask; - -typedef enum WebScrollbarControlPart { - WebNoScrollPart = 0, - WebBackButtonPart = 1, - WebBackTrackPart = 1 << 1, - WebThumbPart = 1 << 2, - WebForwardTrackPart = 1 << 3, - WebForwardButtonPart = 1 << 4, - WebAllParts = 0xffffffff, -} WebScrollbarControlPart; - |