* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "DOMCore.idl";\r
-import "IWebScriptObject.idl";\r
-\r
-interface IDOMObject;\r
-interface IDOMCSSValue;\r
-interface IDOMCSSStyleSheet;\r
-interface IDOMCSSRule;\r
-\r
-/*\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "DOMCore.idl";
+import "IWebScriptObject.idl";
+
+interface IDOMObject;
+interface IDOMCSSValue;
+interface IDOMCSSStyleSheet;
+interface IDOMCSSRule;
+
+/*
@interface DOMCSSRuleList : DOMObject
*/
-[\r
- local,\r
- object,\r
- uuid(D45DA43D-5EDB-4315-A097-3ED3FA089193),\r
- pointer_default(unique)\r
-]\r
-interface IDOMCSSRuleList : IDOMObject\r
-{\r
- /*\r
+[
+ local,
+ object,
+ 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);
-}\r
-\r
-/*\r
+}
+
+/*
@interface DOMCSSRule : DOMObject
*/
-[\r
- local,\r
- object,\r
- uuid(05947A31-9E1C-4c98-8608-6688959D6542),\r
- pointer_default(unique)\r
-]\r
-interface IDOMCSSRule : IDOMObject\r
-{\r
- /*\r
+[
+ local,
+ object,
+ uuid(05947A31-9E1C-4c98-8608-6688959D6542),
+ pointer_default(unique)
+]
+interface IDOMCSSRule : IDOMObject
+{
+ /*
- (unsigned short)type;
*/
HRESULT type([out, retval] unsigned short* result);
*/
HRESULT parentRule([out, retval] IDOMCSSRule* rule);
}
-\r
-/*\r
+
+/*
@interface DOMCSSStyleDeclaration : DOMObject
*/
-[\r
- local,\r
- object,\r
- uuid(DBBE9A6B-D505-4647-B4AB-40A7CF3EE63E),\r
- pointer_default(unique)\r
-]\r
-interface IDOMCSSStyleDeclaration : IDOMObject\r
-{\r
- /*\r
+[
+ local,
+ object,
+ uuid(DBBE9A6B-D505-4647-B4AB-40A7CF3EE63E),
+ pointer_default(unique)
+]
+interface IDOMCSSStyleDeclaration : IDOMObject
+{
+ /*
- (NSString *)cssText;
*/
HRESULT cssText([out, retval] BSTR* result);
- (DOMCSSRule *)parentRule;
*/
HRESULT parentRule([out, retval] IDOMCSSRule** result);
-}\r
-\r
-/*\r
+}
+
+/*
@interface DOMCSSValue : DOMObject
*/
-[\r
- local,\r
- object,\r
- uuid(51D29553-2AF7-4f52-AFE6-3C59196A8BAA),\r
- pointer_default(unique)\r
-]\r
-interface IDOMCSSValue : IDOMObject\r
-{\r
- /*\r
+[
+ local,
+ object,
+ uuid(51D29553-2AF7-4f52-AFE6-3C59196A8BAA),
+ pointer_default(unique)
+]
+interface IDOMCSSValue : IDOMObject
+{
+ /*
- (NSString *)cssText;
*/
HRESULT cssText([out, retval] BSTR* text);
HRESULT cssValueType([out, retval] unsigned short *valueType);
}
-/*\r
+/*
@interface DOMCSSStyleSheet : DOMStyleSheet
*/
-[\r
- local,\r
- object,\r
- uuid(14B1C213-1458-48a1-AD8F-54BFE64F9ECF),\r
- pointer_default(unique)\r
-]\r
-interface IDOMCSSStyleSheet : IDOMObject\r
+[
+ local,
+ object,
+ uuid(14B1C213-1458-48a1-AD8F-54BFE64F9ECF),
+ pointer_default(unique)
+]
+interface IDOMCSSStyleSheet : IDOMObject
{
/*
- (DOMCSSRule *)ownerRule;
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebScriptObject.idl";\r
-\r
-interface IWebScriptObject;\r
-interface IDOMNodeList;\r
-interface IDOMNamedNodeMap;\r
-interface IDOMDocumentType;\r
-interface IDOMElement;\r
-interface IDOMDocumentFragment;\r
-interface IDOMText;\r
-interface IDOMComment;\r
-interface IDOMCDATASection;\r
-interface IDOMProcessingInstruction;\r
-interface IDOMAttr;\r
-interface IDOMEntityReference;\r
-interface IDOMDocument;\r
-\r
-/*\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebScriptObject.idl";
+
+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 DOMObject : WebScriptObject <NSCopying>
*/
-[\r
- local,\r
- object,\r
- uuid(A27FA225-F34E-425d-88EB-A35BD105A527),\r
- pointer_default(unique)\r
-]\r
-interface IDOMObject : IWebScriptObject\r
-{\r
-}\r
-\r
+[
+ local,
+ object,
+ uuid(A27FA225-F34E-425d-88EB-A35BD105A527),
+ pointer_default(unique)
+]
+interface IDOMObject : IWebScriptObject
+{
+}
+
/*
@interface DOMImplementation : DOMObject
*/
-[\r
- local,\r
- object,\r
- uuid(6E48C25D-E542-4d1a-BC73-ACDC21E39C56),\r
- pointer_default(unique)\r
-]\r
-interface IDOMImplementation : IDOMObject\r
-{\r
- /*\r
+[
+ local,
+ object,
+ 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);
/*
@interface DOMNode : DOMObject <DOMEventTarget>
*/
-[\r
- local,\r
- object,\r
- uuid(3EEA3E20-72DA-4be7-954F-79B5A14AD726),\r
- pointer_default(unique)\r
-]\r
-interface IDOMNode : IDOMObject\r
-{\r
- /*\r
+[
+ local,
+ object,
+ uuid(3EEA3E20-72DA-4be7-954F-79B5A14AD726),
+ pointer_default(unique)
+]
+interface IDOMNode : IDOMObject
+{
+ /*
- (NSString *)nodeName;
*/
HRESULT nodeName([out, retval] BSTR* result);
/*
- (BOOL)hasAttributes;
- */\r
- HRESULT hasAttributes([out, retval] BOOL* result);\r
-}\r
-\r
+ */
+ HRESULT hasAttributes([out, retval] BOOL* result);
+}
+
/*
@interface DOMNodeList : DOMObject
*/
-[\r
- local,\r
- object,\r
- uuid(10A05A96-CBD9-4493-83AD-FAFB952615CE),\r
- pointer_default(unique)\r
-]\r
-interface IDOMNodeList : IDOMObject\r
-{\r
- /*\r
+[
+ local,
+ object,
+ 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);
-}\r
-\r
-/*\r
+}
+
+/*
@interface DOMNamedNodeMap : DOMObject
-*/\r
-[\r
- local,\r
- object,\r
- uuid(E6CBF396-C9F9-431b-A8D6-BCB525067E9F),\r
- pointer_default(unique)\r
-]\r
-interface IDOMNamedNodeMap : IDOMObject\r
-{\r
- /*\r
+*/
+[
+ local,
+ object,
+ 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 *)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
*/
HRESULT removeNamedItemNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMNode** result);
-}\r
-\r
-/*\r
+}
+
+/*
@interface DOMDocument : IDOMNode
-*/\r
-[\r
- local,\r
- object,\r
- uuid(A83C2C44-0BAC-45c7-8E17-6A49975D5CCA),\r
- pointer_default(unique)\r
-]\r
-interface IDOMDocument : IDOMNode\r
-{\r
- /*\r
+*/
+[
+ local,
+ object,
+ uuid(A83C2C44-0BAC-45c7-8E17-6A49975D5CCA),
+ pointer_default(unique)
+]
+interface IDOMDocument : IDOMNode
+{
+ /*
- (DOMDocumentType *)doctype;
*/
HRESULT doctype([out, retval] IDOMDocumentType** result);
- (DOMElement *)getElementById:(NSString *)elementId;
*/
HRESULT getElementById([in] BSTR elementId, [out, retval] IDOMElement** result);
-}\r
-\r
-/*\r
+}
+
+/*
@interface DOMCharacterData : IDOMNode
-*/\r
-[\r
- local,\r
- object,\r
- uuid(F4DED047-FE61-461a-BDBD-BB87F79DB713),\r
- pointer_default(unique)\r
-]\r
-interface IDOMCharacterData : IDOMNode\r
-{\r
- /*\r
+*/
+[
+ local,
+ object,
+ uuid(F4DED047-FE61-461a-BDBD-BB87F79DB713),
+ pointer_default(unique)
+]
+interface IDOMCharacterData : IDOMNode
+{
+ /*
- (NSString *)data;
*/
HRESULT data([out, retval] BSTR* result);
/*
- (void)replaceData:(unsigned)offset :(unsigned)count :(NSString *)arg;
- */\r
- HRESULT replaceData([in] UINT offset, [in] UINT count, [in] BSTR arg);\r
-}\r
+ */
+ HRESULT replaceData([in] UINT offset, [in] UINT count, [in] BSTR arg);
+}
-/*\r
+/*
@interface DOMAttr : IDOMNode
-*/\r
-[\r
- local,\r
- object,\r
- uuid(B587E098-8206-4b5a-A7DB-422F218571A0),\r
- pointer_default(unique)\r
-]\r
-interface IDOMAttr : IDOMNode\r
-{\r
+*/
+[
+ local,
+ object,
+ uuid(B587E098-8206-4b5a-A7DB-422F218571A0),
+ pointer_default(unique)
+]
+interface IDOMAttr : IDOMNode
+{
/*
- (NSString *)name;
*/
*/
HRESULT ownerElement([out, retval] IDOMElement** result);
}
-\r
-/*\r
+
+/*
@interface DOMElement : IDOMNode
-*/\r
-[\r
- local,\r
- object,\r
- uuid(E053A35B-7775-4859-80EA-C35D02D145A2),\r
- pointer_default(unique)\r
-]\r
-interface IDOMElement : IDOMNode\r
-{\r
+*/
+[
+ local,
+ object,
+ uuid(E053A35B-7775-4859-80EA-C35D02D145A2),
+ pointer_default(unique)
+]
+interface IDOMElement : IDOMNode
+{
/*
- (NSString *)tagName;
*/
HRESULT hasAttributeNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] BOOL* result);
}
-/*\r
+/*
@interface DOMText : DOMCharacterData
-*/\r
-[\r
- local,\r
- object,\r
- uuid(74638F45-1AA0-4db5-958C-82066E00BD2B),\r
- pointer_default(unique)\r
-]\r
-interface IDOMText : IDOMCharacterData\r
-{\r
- /*\r
+*/
+[
+ local,
+ object,
+ uuid(74638F45-1AA0-4db5-958C-82066E00BD2B),
+ pointer_default(unique)
+]
+interface IDOMText : IDOMCharacterData
+{
+ /*
- (DOMText *)splitText:(unsigned)offset;
- */\r
- HRESULT splitText([in] UINT offset, [out, retval] IDOMText** result);\r
+ */
+ HRESULT splitText([in] UINT offset, [out, retval] IDOMText** result);
}
-/*\r
+/*
@interface DOMComment : DOMCharacterData
-*/\r
-[\r
- local,\r
- object,\r
- uuid(118002E8-847F-4b1a-968C-B25A6AC7B128),\r
- pointer_default(unique)\r
-]\r
-interface IDOMComment : IDOMCharacterData\r
-{\r
-}\r
-\r
-/*\r
+*/
+[
+ local,
+ object,
+ uuid(118002E8-847F-4b1a-968C-B25A6AC7B128),
+ pointer_default(unique)
+]
+interface IDOMComment : IDOMCharacterData
+{
+}
+
+/*
@interface DOMCDATASection : DOMText
-*/\r
-[\r
- local,\r
- object,\r
- uuid(31B506C1-45A3-4d72-815A-311B0A897E58),\r
- pointer_default(unique)\r
-]\r
-interface IDOMCDATASection : IDOMText\r
-{\r
-}\r
-\r
-/*\r
+*/
+[
+ local,
+ object,
+ uuid(31B506C1-45A3-4d72-815A-311B0A897E58),
+ pointer_default(unique)
+]
+interface IDOMCDATASection : IDOMText
+{
+}
+
+/*
@interface DOMDocumentType : IDOMNode
-*/\r
-[\r
- local,\r
- object,\r
- uuid(17FCE6EA-4164-4bd4-9DBF-0395FBF37FD3),\r
- pointer_default(unique)\r
-]\r
-interface IDOMDocumentType : IDOMNode\r
-{\r
- /*\r
+*/
+[
+ local,
+ object,
+ uuid(17FCE6EA-4164-4bd4-9DBF-0395FBF37FD3),
+ pointer_default(unique)
+]
+interface IDOMDocumentType : IDOMNode
+{
+ /*
- (NSString *)name;
*/
HRESULT name([out, retval] BSTR* result);
- (NSString *)internalSubset;
*/
HRESULT internalSubset([out, retval] BSTR* result);
-}\r
-\r
-/*\r
+}
+
+/*
@interface DOMEntityReference : IDOMNode
-*/\r
-[\r
- local,\r
- object,\r
- uuid(0593CE45-15B2-44af-BBD0-5A1654F8240E),\r
- pointer_default(unique)\r
-]\r
-interface IDOMEntityReference : IDOMNode\r
-{\r
-}\r
-\r
-/*\r
+*/
+[
+ local,
+ object,
+ uuid(0593CE45-15B2-44af-BBD0-5A1654F8240E),
+ pointer_default(unique)
+]
+interface IDOMEntityReference : IDOMNode
+{
+}
+
+/*
@interface DOMProcessingInstruction : IDOMNode
-*/\r
-[\r
- local,\r
- object,\r
- uuid(D99D2F48-ABF3-426a-9339-54681E1AFCA9),\r
- pointer_default(unique)\r
-]\r
-interface IDOMProcessingInstruction : IDOMNode\r
-{\r
- /*\r
+*/
+[
+ local,
+ object,
+ uuid(D99D2F48-ABF3-426a-9339-54681E1AFCA9),
+ pointer_default(unique)
+]
+interface IDOMProcessingInstruction : IDOMNode
+{
+ /*
- (NSString *)target;
*/
HRESULT target([out, retval] BSTR* result);
- (void)setData:(NSString *)data;
*/
HRESULT setData([in] BSTR data);
-}\r
-\r
-/*\r
+}
+
+/*
@interface DOMDocumentFragment : IDOMNode
-*/\r
-[\r
- local,\r
- object,\r
- uuid(09D35665-8396-4868-949E-8AA2407A6E10),\r
- pointer_default(unique)\r
-]\r
-interface IDOMDocumentFragment : IDOMNode\r
-{\r
-}\r
+*/
+[
+ local,
+ object,
+ uuid(09D35665-8396-4868-949E-8AA2407A6E10),
+ pointer_default(unique)
+]
+interface IDOMDocumentFragment : IDOMNode
+{
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "DOMCore.idl";\r
-\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "DOMCore.idl";
+
interface IDOMHTMLElement;
interface IDOMHTMLFormElement;
interface IDOMHTMLTableCaptionElement;
/*
@interface DOMHTMLCollection : DOMObject
*/
-[\r
- local,\r
- object,\r
- uuid(DD8E4E33-D1D4-48e7-BB23-6DC3D7CCEC42),\r
- pointer_default(unique)\r
-]\r
-interface IDOMHTMLCollection : IDOMObject\r
+[
+ local,
+ object,
+ uuid(DD8E4E33-D1D4-48e7-BB23-6DC3D7CCEC42),
+ pointer_default(unique)
+]
+interface IDOMHTMLCollection : IDOMObject
{
/*
- (unsigned)length;
/*
@interface DOMHTMLDocument : DOMDocument
*/
-[\r
- local,\r
- object,\r
- uuid(A7DF8485-25B7-4a98-B70C-1E29CAA00597),\r
- pointer_default(unique)\r
-]\r
-interface IDOMHTMLDocument : IDOMDocument\r
-{\r
+[
+ local,
+ object,
+ uuid(A7DF8485-25B7-4a98-B70C-1E29CAA00597),
+ pointer_default(unique)
+]
+interface IDOMHTMLDocument : IDOMDocument
+{
/*
- (NSString *)title;
*/
/*
- (DOMNodeList *)getElementsByName:(NSString *)elementName;
- */\r
- HRESULT getElementsByName([in] BSTR elementName, [out, retval] IDOMNodeList** nodeList);\r
-}\r
-\r
-/*\r
+ */
+ HRESULT getElementsByName([in] BSTR elementName, [out, retval] IDOMNodeList** nodeList);
+}
+
+/*
@interface DOMHTMLElement : DOMElement
*/
-[\r
- local,\r
- object,\r
- uuid(EBD5F41D-FF65-41d8-97C9-FCE3A3D4CC3E),\r
- pointer_default(unique)\r
-]\r
-interface IDOMHTMLElement : IDOMElement\r
-{\r
+[
+ local,
+ object,
+ uuid(EBD5F41D-FF65-41d8-97C9-FCE3A3D4CC3E),
+ pointer_default(unique)
+]
+interface IDOMHTMLElement : IDOMElement
+{
/*
- (NSString *)idName;
*/
- (void)setClassName:(NSString *)className;
*/
HRESULT setClassName([in] BSTR className);
-}\r
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "DOMCore.idl";\r
-\r
-typedef enum _WebSelectionAffinity {\r
- WebSelectionAffinityUpstream = 0,\r
- WebSelectionAffinityDownstream = 1\r
-} WebSelectionAffinity;\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "DOMCore.idl";
+
+typedef enum _WebSelectionAffinity {
+ WebSelectionAffinityUpstream = 0,
+ WebSelectionAffinityDownstream = 1
+} WebSelectionAffinity;
enum {
//
DOM_END_TO_END = 2,
DOM_END_TO_START = 3,
};
-\r
-/*\r
+
+/*
@interface DOMRange : DOMObject
-*/\r
-[\r
- local,\r
- object,\r
- uuid(2F33E42C-0B39-48b3-B7B6-E910CDB325AD),\r
- pointer_default(unique)\r
-]\r
-interface IDOMRange : IDOMObject\r
-{\r
- /*\r
+*/
+[
+ local,
+ object,
+ uuid(2F33E42C-0B39-48b3-B7B6-E910CDB325AD),
+ pointer_default(unique)
+]
+interface IDOMRange : IDOMObject
+{
+ /*
- (DOMNode *)startContainer;
*/
HRESULT startContainer([out, retval] IDOMNode** node);
HRESULT toString([out, retval] BSTR* str);
/*
- - (void)detach;\r
+ - (void)detach;
*/
HRESULT detach();
-}\r
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebResource.idl";\r
-\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebResource.idl";
+
interface IWebResource;
/*!
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.
*/
-[\r
- local,\r
- object,\r
- uuid(F07D5252-F66E-4a4d-B9DC-33BD11DCC138),\r
- pointer_default(unique)\r
-]\r
-interface IWebArchive : IUnknown\r
-{\r
+[
+ local,
+ object,
+ uuid(F07D5252-F66E-4a4d-B9DC-33BD11DCC138),
+ pointer_default(unique)
+]
+interface IWebArchive : IUnknown
+{
/*!
@method initWithMainResource:subresources:subframeArchives:
@abstract The initializer for WebArchive.
- (NSData *)data;
*/
HRESULT data([out, retval] IStream** stream);
-}\r
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-\r
-typedef struct _WebRange {\r
- unsigned int location;\r
- unsigned int length;\r
-} WebRange;\r
-\r
-typedef WebRange *WebRangePointer;\r
-\r
-[\r
- local,\r
- object,\r
- uuid(B91A5F8C-5137-41ea-BE2C-AC1417E38C4A),\r
- pointer_default(unique)\r
-]\r
-interface IWebAttributedString : IUnknown\r
-{\r
- /*\r
- - (id)attribute:(NSString *)attributeName atIndex:(unsigned int)index effectiveRange:(NSRangePointer)aRange\r
- - (id)attribute:(NSString *)attributeName atIndex:(unsigned int)index longestEffectiveRange:(NSRangePointer)aRange inRange:(NSRange)rangeLimit\r
- */\r
- HRESULT attribute([in] UINT atIndex, [in] WebRangePointer aRange, [in, optional] WebRange rangeLimit, [out, retval] BSTR* result);\r
-\r
- /*\r
- - (NSAttributedString *)attributedSubstringFromRange:(NSRange)aRange\r
- */\r
- HRESULT attributedSubstringFromRange([in] WebRange aRange, [out, retval] IWebAttributedString** result);\r
-\r
- /*\r
- - (NSDictionary *)attributesAtIndex:(unsigned)index effectiveRange:(NSRangePointer)aRange\r
- - (NSDictionary *)attributesAtIndex:(unsigned)index longestEffectiveRange:(NSRangePointer)aRange inRange:(NSRange)rangeLimit\r
- */\r
- HRESULT attributesAtIndex([in] UINT index, [in] WebRangePointer aRange, [in, optional] WebRange rangeLimit, [out, retval] IPropertyBag** result);\r
-\r
- /*\r
- - (id)initWithAttributedString:(NSAttributedString *)attributedString\r
- */\r
- HRESULT initWithAttributedString([in] IWebAttributedString* attributedString);\r
-\r
- /*\r
- - (id)initWithString:(NSString *)aString\r
- */\r
- HRESULT initWithString([in] BSTR aString);\r
-\r
- /*\r
- - (id)initWithString:(NSString *)aString attributes:(NSDictionary *)attributes\r
- */\r
- HRESULT initWithString2([in] BSTR aString, [in] IPropertyBag* attributes);\r
-\r
- /*\r
- - (BOOL)isEqualToAttributedString:(NSAttributedString *)otherString\r
- */\r
- HRESULT isEqualToAttributedString([in] IWebAttributedString* otherString, [out, retval] BOOL* result);\r
-\r
- /*\r
- - (unsigned)length\r
- */\r
- HRESULT length([out, retval] UINT* result);\r
-\r
- /*\r
- - (NSString *)string\r
- */\r
- HRESULT string_([out, retval] BSTR* result);\r
-}\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+
+typedef struct _WebRange {
+ unsigned int location;
+ unsigned int length;
+} WebRange;
+
+typedef WebRange *WebRangePointer;
+
+[
+ local,
+ object,
+ uuid(B91A5F8C-5137-41ea-BE2C-AC1417E38C4A),
+ pointer_default(unique)
+]
+interface IWebAttributedString : IUnknown
+{
+ /*
+ - (id)attribute:(NSString *)attributeName atIndex:(unsigned int)index effectiveRange:(NSRangePointer)aRange
+ - (id)attribute:(NSString *)attributeName atIndex:(unsigned int)index longestEffectiveRange:(NSRangePointer)aRange inRange:(NSRange)rangeLimit
+ */
+ HRESULT attribute([in] UINT atIndex, [in] WebRangePointer aRange, [in, optional] WebRange rangeLimit, [out, retval] BSTR* result);
+
+ /*
+ - (NSAttributedString *)attributedSubstringFromRange:(NSRange)aRange
+ */
+ HRESULT attributedSubstringFromRange([in] WebRange aRange, [out, retval] IWebAttributedString** result);
+
+ /*
+ - (NSDictionary *)attributesAtIndex:(unsigned)index effectiveRange:(NSRangePointer)aRange
+ - (NSDictionary *)attributesAtIndex:(unsigned)index longestEffectiveRange:(NSRangePointer)aRange inRange:(NSRange)rangeLimit
+ */
+ HRESULT attributesAtIndex([in] UINT index, [in] WebRangePointer aRange, [in, optional] WebRange rangeLimit, [out, retval] IPropertyBag** result);
+
+ /*
+ - (id)initWithAttributedString:(NSAttributedString *)attributedString
+ */
+ HRESULT initWithAttributedString([in] IWebAttributedString* attributedString);
+
+ /*
+ - (id)initWithString:(NSString *)aString
+ */
+ HRESULT initWithString([in] BSTR aString);
+
+ /*
+ - (id)initWithString:(NSString *)aString attributes:(NSDictionary *)attributes
+ */
+ HRESULT initWithString2([in] BSTR aString, [in] IPropertyBag* attributes);
+
+ /*
+ - (BOOL)isEqualToAttributedString:(NSAttributedString *)otherString
+ */
+ HRESULT isEqualToAttributedString([in] IWebAttributedString* otherString, [out, retval] BOOL* result);
+
+ /*
+ - (unsigned)length
+ */
+ HRESULT length([out, retval] UINT* result);
+
+ /*
+ - (NSString *)string
+ */
+ HRESULT string_([out, retval] BSTR* result);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebHistoryItem.idl";\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebHistoryItem.idl";
interface IWebHistoryItem;
-\r
+
/*!
@class WebBackForwardList
WebBackForwardList holds an ordered list of WebHistoryItems that comprises the back and
navigation to happen in other layers of the stack; they are only for maintaining this data
structure.
*/
-[\r
- local,\r
- object,\r
- uuid(C278A16D-B502-4131-B551-DCE3F4ED2B36),\r
- pointer_default(unique)\r
-]\r
-interface IWebBackForwardList : IUnknown\r
-{\r
+[
+ local,
+ object,
+ uuid(C278A16D-B502-4131-B551-DCE3F4ED2B36),
+ pointer_default(unique)
+]
+interface IWebBackForwardList : IUnknown
+{
/*!
@method addItem:
@abstract Adds an entry to the list.
- (unsigned)pageCacheSize;
*/
HRESULT pageCacheSize([out, retval] UINT* size);
-}\r
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebDocument.idl";\r
-import "IWebFrame.idl";\r
-import "IWebMutableURLRequest.idl";\r
-import "IWebURLResponse.idl";\r
-import "IWebArchive.idl";\r
-import "IWebResource.idl";\r
-\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebDocument.idl";
+import "IWebFrame.idl";
+import "IWebMutableURLRequest.idl";
+import "IWebURLResponse.idl";
+import "IWebArchive.idl";
+import "IWebResource.idl";
+
interface IWebMutableURLRequest;
interface IWebURLConnection;
interface IWebURLRequest;
interface IWebResource;
interface IWebDocumentRepresentation;
-\r
+
/*!
@class WebDataSource
@discussion A WebDataSource represents the data associated with a web page.
representation of the data. WebDataSources manage a hierarchy of WebFrames.
WebDataSources are typically related to a view by their containing WebFrame.
*/
-[\r
- local,\r
- object,\r
- uuid(5221A975-AE09-4a7b-A4DF-E3B1B5F38A21),\r
- pointer_default(unique)\r
-]\r
-interface IWebDataSource : IUnknown\r
+[
+ local,
+ object,
+ uuid(5221A975-AE09-4a7b-A4DF-E3B1B5F38A21),
+ pointer_default(unique)
+]
+interface IWebDataSource : IUnknown
{
/*!
@method initWithRequest:
- (void)addSubresource:(WebResource *)subresource;
*/
HRESULT addSubresource([in] IWebResource* subresource);
-}\r
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebAttributedString.idl";\r
-import "IWebError.idl";\r
-import "IWebDataSource.idl";\r
-import "IWebError.idl";\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebAttributedString.idl";
+import "IWebError.idl";
+import "IWebDataSource.idl";
+import "IWebError.idl";
interface IWebError;
interface IWebDataSource;
@protocol WebDocumentView <NSObject>
*/
-[\r
- local,\r
- object,\r
- uuid(0A6397A7-90FE-49a0-B9C1-44693DD779F7),\r
- pointer_default(unique)\r
-]\r
-interface IWebDocumentView : IUnknown\r
-{\r
+[
+ local,
+ object,
+ uuid(0A6397A7-90FE-49a0-B9C1-44693DD779F7),
+ pointer_default(unique)
+]
+interface IWebDocumentView : IUnknown
+{
/*!
@method setDataSource:
@abstract Called when the corresponding data source has been created.
/*!
@method viewDidMoveToHostWindow
@abstract Called after the host window is set on the parent web view.
- - (void)viewDidMoveToHostWindow;\r
+ - (void)viewDidMoveToHostWindow;
*/
HRESULT viewDidMoveToHostWindow();
-}\r
-\r
+}
+
/*!
@protocol WebDocumentSearching
@discussion Optional protocol for searching document view of WebFrameView.
@protocol WebDocumentSearching <NSObject>
*/
-[\r
- local,\r
- object,\r
- uuid(0213643B-8DF9-4ba4-9534-61D92CB75007),\r
- pointer_default(unique)\r
-]\r
-interface IWebDocumentSearching : IUnknown\r
-{\r
+[
+ local,
+ object,
+ 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.
@protocol WebDocumentText <NSObject>
*/
-[\r
- local,\r
- object,\r
- uuid(B6282B92-6F31-4948-A3A0-89763C56BBBF),\r
- pointer_default(unique)\r
-]\r
-interface IWebDocumentText : IUnknown\r
-{\r
+[
+ local,
+ object,
+ 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.
@protocol WebDocumentRepresentation <NSObject>
*/
-[\r
- local,\r
- object,\r
- uuid(3C9F6251-CFD8-447a-B429-6B6AE627436C),\r
- pointer_default(unique)\r
-]\r
-interface IWebDocumentRepresentation : IUnknown\r
-{\r
+[
+ local,
+ object,
+ uuid(3C9F6251-CFD8-447a-B429-6B6AE627436C),
+ pointer_default(unique)
+]
+interface IWebDocumentRepresentation : IUnknown
+{
/*!
@method setDataSource:
@abstract Called soon after the document representation is created.
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
/*!
@class WebDownload
panel, as either a sheet or window. It provides no extra methods,
but does have one additional delegate method.
*/
-\r
-[\r
- local,\r
- object,\r
- uuid(65EFE83B-A9E4-4516-8F3B-BAA25DA90FFD),\r
- pointer_default(unique)\r
-]\r
-interface IWebDownload : IUnknown\r
+
+[
+ local,
+ object,
+ uuid(65EFE83B-A9E4-4516-8F3B-BAA25DA90FFD),
+ pointer_default(unique)
+]
+interface IWebDownload : IUnknown
{
/*
+ (BOOL)canResumeDownloadDecodedWithEncodingMIMEType:(NSString *)MIMEType
- (void)setDestination:(NSString *)path allowOverwrite:(BOOL)allowOverwrite
*/
HRESULT setDestination([in] BSTR path, [in] BOOL allowOverwrite);
-}\r
-\r
-\r
+}
+
+
/*!
@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)
*/
-\r
-[\r
- local,\r
- object,\r
- uuid(16A32AE6-C862-40cd-9225-2CAF823F40F9),\r
- pointer_default(unique)\r
-]\r
-interface IWebDownloadDelegate : IUnknown\r
+
+[
+ local,
+ object,
+ uuid(16A32AE6-C862-40cd-9225-2CAF823F40F9),
+ pointer_default(unique)
+]
+interface IWebDownloadDelegate : IUnknown
{
/*!
@method downloadWindowForAuthenticationSheet:
- (NSWindow *)downloadWindowForAuthenticationSheet:(WebDownload *)download;
*/
HRESULT downloadWindowForAuthenticationSheet([in] IWebDownload* download, [out, retval] HWND* window);
-}\r
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebNotification.idl";\r
-import "DOMCore.idl";\r
-import "DOMRange.idl";\r
-import "IWebUndoManager.idl";\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebNotification.idl";
+import "DOMCore.idl";
+import "DOMRange.idl";
+import "IWebUndoManager.idl";
interface IDOMCSSStyleDeclaration;
interface IDOMRange;
/*
@interface NSObject (WebViewEditingDelegate)
*/
-[\r
- local,\r
- object,\r
- uuid(2C75A1E3-EE9D-45c8-A385-19DE68AC5675),\r
- pointer_default(unique)\r
-]\r
-interface IWebViewEditingDelegate : IUnknown\r
+[
+ local,
+ object,
+ uuid(2C75A1E3-EE9D-45c8-A385-19DE68AC5675),
+ pointer_default(unique)
+]
+interface IWebViewEditingDelegate : IUnknown
{
/*
- (BOOL)webView:(WebView *)webView shouldBeginEditingInDOMRange:(DOMRange *)range;
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-\r
-[\r
- local,\r
- object,\r
- uuid(89E3B189-0B60-4d6b-A87A-3F1172CB5538),\r
- pointer_default(unique)\r
-]\r
-interface IWebError : IUnknown\r
-{\r
- /*\r
- + (id)errorWithDomain:(NSString *)domain code:(int)code userInfo:(NSDictionary *)dict\r
- */\r
- HRESULT errorWithDomain([in] BSTR domain, [in] int code, [in] IPropertyBag* dict);\r
-\r
- /*\r
- - (int)code\r
- */\r
- HRESULT code_([out, retval] int* result);\r
-\r
- /*\r
- - (NSString *)domain\r
- */\r
- HRESULT domain([out, retval] BSTR* result);\r
-\r
- /*\r
- - (id)initWithDomain:(NSString *)domain code:(int)code userInfo:(NSDictionary *)dict\r
- */\r
- HRESULT initWithDomain([in] BSTR domain, [in] int code, [in] IPropertyBag* dict);\r
-\r
- /*\r
- - (NSString *)localizedDescription\r
- */\r
- HRESULT localizedDescription([out, retval] BSTR* result);\r
-\r
- /*\r
- - (NSString *)localizedFailureReason\r
- */\r
- HRESULT localizedFailureReason([out, retval] BSTR* result);\r
-\r
- /*\r
- - (NSArray *)localizedRecoveryOptions\r
- */\r
- HRESULT localizedRecoveryOptions([out] int* cOptions, [out, retval] BSTR** options);\r
-\r
- /*\r
- - (NSString *)localizedRecoverySuggestion\r
- */\r
- HRESULT localizedRecoverySuggestion([out, retval] BSTR* result);\r
- \r
- /*\r
- - (id)recoverAttempter\r
- */\r
- HRESULT recoverAttempter([out, retval] IUnknown** result);\r
-\r
- /*\r
- - (NSDictionary *)userInfo\r
- */\r
- HRESULT userInfo([out, retval] IPropertyBag** result);\r
-}\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+
+[
+ local,
+ object,
+ uuid(89E3B189-0B60-4d6b-A87A-3F1172CB5538),
+ pointer_default(unique)
+]
+interface IWebError : IUnknown
+{
+ /*
+ + (id)errorWithDomain:(NSString *)domain code:(int)code userInfo:(NSDictionary *)dict
+ */
+ HRESULT errorWithDomain([in] BSTR domain, [in] int code, [in] IPropertyBag* dict);
+
+ /*
+ - (int)code
+ */
+ HRESULT code_([out, retval] int* result);
+
+ /*
+ - (NSString *)domain
+ */
+ HRESULT domain([out, retval] BSTR* result);
+
+ /*
+ - (id)initWithDomain:(NSString *)domain code:(int)code userInfo:(NSDictionary *)dict
+ */
+ HRESULT initWithDomain([in] BSTR domain, [in] int code, [in] IPropertyBag* dict);
+
+ /*
+ - (NSString *)localizedDescription
+ */
+ HRESULT localizedDescription([out, retval] BSTR* result);
+
+ /*
+ - (NSString *)localizedFailureReason
+ */
+ HRESULT localizedFailureReason([out, retval] BSTR* result);
+
+ /*
+ - (NSArray *)localizedRecoveryOptions
+ */
+ HRESULT localizedRecoveryOptions([out] int* cOptions, [out, retval] BSTR** options);
+
+ /*
+ - (NSString *)localizedRecoverySuggestion
+ */
+ HRESULT localizedRecoverySuggestion([out, retval] BSTR* result);
+
+ /*
+ - (id)recoverAttempter
+ */
+ HRESULT recoverAttempter([out, retval] IUnknown** result);
+
+ /*
+ - (NSDictionary *)userInfo
+ */
+ HRESULT userInfo([out, retval] IPropertyBag** result);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "DOMHTML.idl";\r
-import "IWebArchive.idl";\r
-import "IWebFrameView.idl";\r
-import "IWebView.idl";\r
-import "IWebURLRequest.idl";\r
-import "DOMCore.idl";\r
-\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "DOMHTML.idl";
+import "IWebArchive.idl";
+import "IWebFrameView.idl";
+import "IWebView.idl";
+import "IWebURLRequest.idl";
+import "DOMCore.idl";
+
interface IDOMDocument;
interface IDOMHTMLElement;
interface IWebURLRequest;
interface IWebFramePrivate;
interface IWebFrameView;
interface IWebView;
-\r
+
/*!
@class WebFrame
@discussion Every web page is represented by at least one WebFrame. A WebFrame
has a WebFrameView and a WebDataSource.
@interface WebFrame : NSObject
*/
-[\r
- local,\r
- object,\r
- uuid(B4B22EF7-DD43-4d01-A992-99C4A8B1F845),\r
- pointer_default(unique)\r
-]\r
-interface IWebFrame : IUnknown\r
+[
+ local,
+ object,
+ uuid(B4B22EF7-DD43-4d01-A992-99C4A8B1F845),
+ pointer_default(unique)
+]
+interface IWebFrame : IUnknown
{
/*!
@method initWithName:webFrameView:webView:
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebImage.idl";\r
-import "IWebScriptObject.idl";\r
-import "IWebView.idl";\r
-import "IWebFrame.idl";\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebImage.idl";
+import "IWebScriptObject.idl";
+import "IWebView.idl";
+import "IWebFrame.idl";
interface IWebError;
interface IWebFrame;
interface IWebScriptObject;
interface IWebView;
interface IWebImage;
-\r
+
/*!
@category WebFrameLoadDelegate
@discussion A WebView's WebFrameLoadDelegate tracks the loading progress of its frames.
so the contents of the frame will not be lost if the new data source fails to successfully load.
@interface NSObject (WebFrameLoadDelegate)
*/
-\r
-[\r
- local,\r
- object,\r
- uuid(4CD809C2-73A5-44ee-B0D7-D1863DFE9F57),\r
- pointer_default(unique)\r
-]\r
-interface IWebFrameLoadDelegate : IUnknown\r
+
+[
+ local,
+ object,
+ uuid(4CD809C2-73A5-44ee-B0D7-D1863DFE9F57),
+ pointer_default(unique)
+]
+interface IWebFrameLoadDelegate : IUnknown
{
/*!
@method webView:didStartProvisionalLoadForFrame:
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebDocument.idl";\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebDocument.idl";
/*!
@class WebFrameView
@interface WebFrameView : NSView
*/
-interface IWebFrame;\r
-interface IWebDocumentView;\r
-\r
-[\r
- local,\r
- object,\r
- uuid(E23E1B15-78F6-4e89-AD2E-49992A040A35),\r
- pointer_default(unique)\r
-]\r
-interface IWebFrameView : IUnknown\r
-{\r
+interface IWebFrame;
+interface IWebDocumentView;
+
+[
+ local,
+ object,
+ uuid(E23E1B15-78F6-4e89-AD2E-49992A040A35),
+ pointer_default(unique)
+]
+interface IWebFrameView : IUnknown
+{
/*!
@method webFrame
@abstract Returns the WebFrame associated with this WebFrameView
- (BOOL)allowsScrolling;
*/
HRESULT allowsScrolling([out, retval] BOOL* flag);
-}\r
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebImage.idl";\r
-\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebImage.idl";
+
/*!
@class WebHistoryItem
@discussion WebHistoryItems are created by WebKit to represent pages visited.
pages visited. With the exception of the displayTitle, the properties of
WebHistoryItems are set by WebKit. WebHistoryItems are normally never created directly.
*/
-[\r
- local,\r
- object,\r
- uuid(1E2970AE-72B7-4500-A7A0-12B0FFEB91FC),\r
- pointer_default(unique)\r
-]\r
-interface IWebHistoryItem : IUnknown\r
-{\r
+[
+ local,
+ object,
+ uuid(1E2970AE-72B7-4500-A7A0-12B0FFEB91FC),
+ pointer_default(unique)
+]
+interface IWebHistoryItem : IUnknown
+{
/*!
@method initWithURLString:title:lastVisitedTimeInterval:
@param URLString The URL string for the item.
@discussion This icon returned will be determined by the WebKit.
@result The icon associated with this item's URL.
- (NSImage *)icon;
- */\r
- HRESULT icon([in] IWebImage* image);\r
-}\r
+ */
+ HRESULT icon([in] IWebImage* image);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebImage.idl";\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebImage.idl";
/*!
@class WebIconDatabase
@interface WebIconDatabase : NSObject
*/
-[\r
- local,\r
- object,\r
- uuid(E93F2616-2560-47d9-BD4D-6E2F1E1D3174),\r
- pointer_default(unique)\r
-]\r
-interface IWebIconDatabase : IUnknown\r
-{\r
+[
+ local,
+ object,
+ uuid(E93F2616-2560-47d9-BD4D-6E2F1E1D3174),
+ pointer_default(unique)
+]
+interface IWebIconDatabase : IUnknown
+{
/*!
@method sharedIconDatabase
@abstract Returns a shared instance of the icon database
allowDatabaseCleanup decrements an internal counter that when 0 begins the database clean-up.
The counter equals 0 at initialization.
- (void)allowDatabaseCleanup;
- */\r
- HRESULT allowDatabaseCleanup();\r
-}\r
+ */
+ HRESULT allowDatabaseCleanup();
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-\r
-interface WebImageRep;\r
-interface WebImageDelegate;\r
-\r
-typedef enum {\r
- WebImageCacheDefault,\r
- WebImageCacheAlways,\r
- WebImageCacheBySize,\r
- WebImageCacheNever\r
-} WebImageCacheMode;\r
-\r
-typedef enum _WebCompositingOperation {\r
- WebCompositeClear = 0,\r
- WebCompositeCopy = 1,\r
- WebCompositeSourceOver = 2,\r
- WebCompositeSourceIn = 3,\r
- WebCompositeSourceOut = 4,\r
- WebCompositeSourceAtop = 5,\r
- WebCompositeDestinationOver = 6,\r
- WebCompositeDestinationIn = 7,\r
- WebCompositeDestinationOut = 8,\r
- WebCompositeDestinationAtop = 9,\r
- WebCompositeXOR = 10,\r
- WebCompositePlusDarker = 11,\r
- WebCompositeHighlight = 12,\r
- WebCompositePlusLighter = 13\r
-} WebCompositingOperation;\r
-\r
-typedef enum _WebTIFFCompression {\r
- WebTIFFCompressionNone = 1,\r
- WebTIFFCompressionCCITTFAX3 = 3,\r
- WebTIFFCompressionCCITTFAX4 = 4,\r
- WebTIFFCompressionLZW = 5,\r
- WebTIFFCompressionJPEG = 6,\r
- WebTIFFCompressionNEXT = 32766,\r
- WebTIFFCompressionPackBits = 32773,\r
- WebTIFFCompressionOldJPEG = 32865\r
-} WebTIFFCompression;\r
-\r
-typedef enum {\r
- WebImageLoadStatusCompleted,\r
- WebImageLoadStatusCancelled,\r
- WebImageLoadStatusInvalidData,\r
- WebImageLoadStatusUnexpectedEOF,\r
- WebImageLoadStatusReadError\r
-} WebImageLoadStatus;\r
-\r
-[\r
- local,\r
- object,\r
- uuid(95BA7FC9-7D12-4f5c-B8CB-8CB28D0EE47E),\r
- pointer_default(unique)\r
-]\r
-interface IWebImage : IUnknown\r
-{\r
- /*\r
- + (BOOL)canInitWithPasteboard:(NSPasteboard *)pasteboard\r
- */\r
- HRESULT canInitWithPasteboard([in] IDataObject* pasteboard, [out, retval] BOOL* result);\r
-\r
- /*\r
- + (NSArray *)imageFileTypes\r
- */\r
- HRESULT imageFileTypes([out] int* cTypes, [out, retval] BSTR** types);\r
-\r
- /*\r
- + (id)imageNamed:(NSString *)name\r
- */\r
- HRESULT imageNamed([in] BSTR name, [out, retval] IUnknown* result);\r
-\r
- /*\r
- + (NSArray *)imagePasteboardTypes\r
- */\r
- HRESULT imagePasteboardTypes([out] int* cTypes, [out, retval] BSTR** types);\r
-\r
- /*\r
- + (NSArray *)imageUnfilteredFileTypes\r
- */\r
- HRESULT imageUnfilteredFileTypes([out] int* cTypes, [out, retval] BSTR** types);\r
-\r
- /*\r
- + (NSArray *)imageUnfilteredPasteboardTypes\r
- */\r
- HRESULT imageUnfilteredPasteboardTypes([out] int* cTypes, [out, retval] BSTR** types);\r
-\r
- /*\r
- - (void)addRepresentation:(NSImageRep *)imageRep\r
- */\r
- HRESULT addRepresentation([in] WebImageRep* imageRep);\r
-\r
- /*\r
- - (void)addRepresentations:(NSArray *)imageReps\r
- */\r
- HRESULT addRepresentations([in] int cImageReps, [in, size_is(cImageReps)] WebImageRep** imageReps);\r
-\r
- /*\r
- - (NSColor *)backgroundColor\r
- */\r
- HRESULT backgroundColor([out, retval] COLORREF* result);\r
-\r
- /*\r
- - (NSImageRep *)bestRepresentationForDevice:(NSDictionary *)deviceDescription\r
- */\r
- HRESULT bestRepresentationForDevice([in] IPropertyBag* deviceDescription, [out, retval] WebImageRep** result);\r
-\r
- /*\r
- - (BOOL)cacheDepthMatchesImageDepth\r
- */\r
- HRESULT cacheDepthMatchesImageDepth([out, retval] BOOL* result);\r
-\r
- /*\r
- -(NSImageCacheMode)cacheMode\r
- */\r
- HRESULT cacheMode([out, retval] WebImageCacheMode* result);\r
-\r
- /*\r
- - (void)cancelIncrementalLoad\r
- */\r
- HRESULT cancelIncrementalLoad();\r
-\r
- /*\r
- - (void)compositeToPoint:(NSPoint)aPoint fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op\r
- - (void)compositeToPoint:(NSPoint)aPoint fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(float)delta\r
- - (void)compositeToPoint:(NSPoint)aPoint operation:(NSCompositingOperation)op\r
- - (void)compositeToPoint:(NSPoint)aPoint operation:(NSCompositingOperation)op fraction:(float)delta\r
- */\r
- HRESULT compositeToPoint([in, optional] LPPOINT aPoint, [in, optional] LPRECT srcRect, [in, optional] WebCompositingOperation op, [in, optional] float delta);\r
-\r
- /*\r
- - (id)delegate\r
- */\r
- HRESULT delegate([in] WebImageDelegate* d);\r
-\r
- /*\r
- - (void)dissolveToPoint:(NSPoint)aPoint fraction:(float)delta\r
- - (void)dissolveToPoint:(NSPoint)aPoint fromRect:(NSRect)srcRect fraction:(float)delta\r
- */\r
- HRESULT dissolveToPoint([in] LPPOINT aPoint, [in] float delta, [in, optional] LPRECT srcRect);\r
-\r
- /*\r
- - (void)drawAtPoint:(NSPoint)point fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(float)delta\r
- */\r
- HRESULT drawAtPoint([in] LPPOINT point, [in] LPRECT srcRect, [in] WebCompositingOperation op, [in] float delta);\r
-\r
- /*\r
- - (void)drawInRect:(NSRect)dstRect fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(float)delta\r
- */\r
- HRESULT drawInRect([in] LPRECT dstRect, [in] LPRECT srcRect, [in] WebCompositingOperation op, [in] float delta);\r
-\r
- /*\r
- - (BOOL)drawRepresentation:(NSImageRep *)imageRep inRect:(NSRect)dstRect\r
- */\r
- HRESULT drawRepresentation([in] WebImageRep* imageRep, [in] LPRECT dstRect, [out, retval] BOOL* result);\r
-\r
- /*\r
- - (id)initByReferencingFile:(NSString *)filename\r
- */\r
- HRESULT initByReferencingFile([in] BSTR fileName);\r
-\r
- /*\r
- - (id)initByReferencingURL:(NSURL *)url\r
- */\r
- HRESULT initByReferencingURL([in] BSTR url);\r
-\r
- /*\r
- - (id)initWithContentsOfFile:(NSString *)filename\r
- */\r
- HRESULT initWithContentsOfFile([in] BSTR filename);\r
-\r
- /*\r
- - (id)initWithContentsOfURL:(NSURL *)aURL\r
- */\r
- HRESULT initWithContentsOfURL([in] BSTR aURL);\r
-\r
- /*\r
- - (id)initWithData:(NSData *)data\r
- */\r
- HRESULT initWithData([in] IStream* data);\r
-\r
- /*\r
- - (id)initWithPasteboard:(NSPasteboard *)pasteboard\r
- */\r
- HRESULT initWithPasteboard([in] IDataObject* pasteboard);\r
-\r
- /*\r
- - (id)initWithSize:(NSSize)aSize\r
- */\r
- HRESULT initWithSize([in] LPPOINT aSize);\r
-\r
- /*\r
- - (BOOL)isCachedSeparately\r
- */\r
- HRESULT isCachedSeparately([out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)isDataRetained\r
- */\r
- HRESULT isDataRetained([out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)isFlipped\r
- */\r
- HRESULT isFlipped([out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)isValid\r
- */\r
- HRESULT isValid([out, retval] BOOL* result);\r
-\r
- /*\r
- - (void)lockFocus\r
- */\r
- HRESULT lockFocus();\r
-\r
- /*\r
- - (void)lockFocusOnRepresentation:(NSImageRep *)imageRepresentation\r
- */\r
- HRESULT lockFocusOnRepresentation([in] WebImageRep* imageRepresentation);\r
-\r
- /*\r
- - (BOOL)matchesOnMultipleResolution\r
- */\r
- HRESULT matchesOnMultipleResolution([out, retval] BOOL* result);\r
-\r
- /*\r
- - (NSString *)name\r
- */\r
- HRESULT name([out, retval] BSTR* result);\r
-\r
- /*\r
- - (BOOL)prefersColorMatch\r
- */\r
- HRESULT prefersColorMatch([out, retval] BOOL* result);\r
-\r
- /*\r
- - (void)recache\r
- */\r
- HRESULT recache();\r
-\r
- /*\r
- - (void)removeRepresentation:(NSImageRep *)imageRep\r
- */\r
- HRESULT removeRepresentation([in] WebImageRep* imageRep);\r
-\r
- /*\r
- - (NSArray *)representations\r
- */\r
- HRESULT representations([out] int* count, [out, retval] WebImageRep** result);\r
-\r
- /*\r
- - (BOOL)scalesWhenResized\r
- */\r
- HRESULT scalesWhenResized([out, retval] BOOL* result);\r
-\r
- /*\r
- - (void)setBackgroundColor:(NSColor *)aColor\r
- */\r
- HRESULT setBackgroundColor([in] COLORREF* aColor);\r
-\r
- /*\r
- - (void)setCacheDepthMatchesImageDepth:(BOOL)flag\r
- */\r
- HRESULT setCacheDepthMatchesImageDepth([in] BOOL flag);\r
-\r
- /*\r
- - (void)setCachedSeparately:(BOOL)flag\r
- */\r
- HRESULT setCachedSeparately([in] BOOL flag);\r
-\r
- /*\r
- -(void)setCacheMode:(NSImageCacheMode)mode\r
- */\r
- HRESULT setCacheMode([in] WebImageCacheMode mode);\r
-\r
- /*\r
- - (void)setDataRetained:(BOOL)flag\r
- */\r
- HRESULT setDataRetained([in] BOOL flag);\r
-\r
- /*\r
- - (void)setDelegate:(id)anObject\r
- */\r
- HRESULT setDelegate([in] WebImageDelegate* d);\r
-\r
- /*\r
- - (void)setFlipped:(BOOL)flag\r
- */\r
- HRESULT setFlipped([in] BOOL flag);\r
-\r
- /*\r
- - (void)setMatchesOnMultipleResolution:(BOOL)flag\r
- */\r
- HRESULT setMatchesOnMultipleResolution([in] BOOL flag);\r
-\r
- /*\r
- - (BOOL)setName:(NSString *)aString\r
- */\r
- HRESULT setName([in] BSTR aString, [out, retval] BOOL* result);\r
-\r
- /*\r
- - (void)setPrefersColorMatch:(BOOL)flag\r
- */\r
- HRESULT setPrefersColorMatch([in] BOOL flag);\r
-\r
- /*\r
- - (void)setScalesWhenResized:(BOOL)flag\r
- */\r
- HRESULT setScalesWhenResized([in] BOOL flag);\r
-\r
- /*\r
- - (void)setSize:(NSSize)aSize\r
- */\r
- HRESULT setSize([in] LPSIZE size);\r
-\r
- /*\r
- - (void)setUsesEPSOnResolutionMismatch:(BOOL)flag\r
- */\r
- HRESULT setUsesEPSOnResolutionMismatch([in] BOOL flag);\r
-\r
- /*\r
- - (NSSize)size\r
- */\r
- HRESULT size([out, retval] LPSIZE* size);\r
-\r
- /*\r
- - (NSData *)TIFFRepresentation\r
- */\r
- HRESULT TIFFRepresentation([out, retval] IStream** result);\r
-\r
- /*\r
- - (NSData *)TIFFRepresentationUsingCompression:(NSTIFFCompression)comp factor:(float)aFloat\r
- */\r
- HRESULT TIFFRepresentationUsingCompression([in] WebTIFFCompression comp, [in] float aFloat, [out, retval] IStream** result);\r
-\r
- /*\r
- - (void)unlockFocus\r
- */\r
- HRESULT unlockFocus();\r
-\r
- /*\r
- - (BOOL)usesEPSOnResolutionMismatch\r
- */\r
- HRESULT usesEPSOnResolutionMismatch([out, retval] BOOL* result);\r
-}\r
-\r
-[\r
- local,\r
- object,\r
- uuid(A3FAD4F7-4D02-4285-8E78-6C20BA6134E9),\r
- pointer_default(unique)\r
-]\r
-interface WebImageDelegate : IUnknown\r
-{\r
- /*\r
- - (void)image:(NSImage *)image didLoadRepresentation:(NSImageRep *)rep withStatus:(NSImageLoadStatus)status\r
- */\r
- HRESULT didLoadRepresentation([in] IWebImage* image, [in] WebImageRep* rep, [in] WebImageLoadStatus status);\r
-\r
- /*\r
- - (void)image:(NSImage *)image didLoadPartOfRepresentation:(NSImageRep *)rep withValidRows:(int)rows\r
- */\r
- HRESULT didLoadPartOfRepresentation([in] IWebImage* image, [in] WebImageRep* rep, [in] int rows);\r
-\r
- /*\r
- - (void)image:(NSImage *)image didLoadRepresentationHeader:(NSImageRep *)rep\r
- */\r
- HRESULT didLoadRepresentationHeader([in] IWebImage* image, [in] WebImageRep* rep);\r
-\r
- /*\r
- - (void)image:(NSImage *)image willLoadRepresentation:(NSImageRep *)rep\r
- */\r
- HRESULT willLoadRepresentation([in] IWebImage* image, [in] WebImageRep* rep);\r
-\r
- /*\r
- - (NSImage *)imageDidNotDraw:(id)sender inRect:(NSRect)aRect\r
- */\r
- HRESULT imageDidNotDraw([in] IWebImage* image, [in] LPRECT aRect);\r
-}\r
-\r
-[\r
- local,\r
- object,\r
- uuid(6FF5CD5A-16C6-4f47-A7B3-0DFDFD9802B9),\r
- pointer_default(unique)\r
-]\r
-interface WebImageRep : IUnknown\r
-{\r
- /*\r
- + (BOOL)canInitWithData:(NSData *)data\r
- */\r
- HRESULT canInitWithData([in] IStream* data, [out, retval] BOOL* result);\r
-\r
- /*\r
- + (BOOL)canInitWithPasteboard:(NSPasteboard *)pasteboard\r
- */\r
- HRESULT canInitWithPasteboard([in] IDataObject* pasteboard, [out, retval] BOOL* result);\r
-\r
- /*\r
- + (NSArray *)imageFileTypes\r
- */\r
- HRESULT imageFileTypes([out] int* cTypes, [out, retval] BSTR** types);\r
-\r
- /*\r
- + (NSArray *)imagePasteboardTypes\r
- */\r
- HRESULT imagePasteboardTypes([out] int* cTypes, [out, retval] BSTR** types);\r
-\r
- /*\r
- + (Class)imageRepClassForData:(NSData *)data\r
- */\r
- HRESULT imageRepClassForData([in] IStream* data);\r
-\r
- /*\r
- + (Class)imageRepClassForFileType:(NSString *)type\r
- */\r
- HRESULT imageRepClassForFileType([in] BSTR type);\r
-\r
- /*\r
- + (Class)imageRepClassForPasteboardType:(NSString *)type\r
- */\r
- HRESULT imageRepClassForPasteboardType([in] BSTR type);\r
-\r
- /*\r
- + (NSArray *)imageRepsWithContentsOfFile:(NSString *)filename\r
- */\r
- HRESULT imageRepsWithContentsOfFile([in] BSTR filename, [out] int* cReps, [out, retval] WebImageRep** reps);\r
-\r
- /*\r
- + (NSArray *)imageRepsWithContentsOfURL:(NSURL *)aURL\r
- */\r
- HRESULT imageRepsWithContentsOfURL([in] BSTR aURL, [out] int* cReps, [out, retval] WebImageRep** reps);\r
-\r
- /*\r
- + (NSArray *)imageRepsWithPasteboard:(NSPasteboard *)pasteboard\r
- */\r
- HRESULT imageRepsWithPasteboard([in] IDataObject* pasteboard, [out] int* cReps, [out, retval] WebImageRep** reps);\r
-\r
- /*\r
- + (id)imageRepWithContentsOfFile:(NSString *)filename\r
- */\r
- HRESULT imageRepWithContentsOfFile([in] BSTR filename);\r
-\r
- /*\r
- + (id)imageRepWithContentsOfURL:(NSURL *)aURL\r
- */\r
- HRESULT imageRepWithContentsOfURL([in] BSTR aURL);\r
-\r
- /*\r
- + (id)imageRepWithPasteboard:(NSPasteboard *)pasteboard\r
- */\r
- HRESULT imageRepWithPasteboard([in] IDataObject* pasteboard);\r
-\r
- /*\r
- + (NSArray *)imageUnfilteredFileTypes\r
- */\r
- HRESULT imageUnfilteredFileTypes([out] int* cTypes, [out, retval] BSTR* types);\r
-\r
- /*\r
- + (NSArray *)imageUnfilteredPasteboardTypes\r
- */\r
- HRESULT imageUnfilteredPasteboardTypes([out] int* cTypes, [out, retval] BSTR* types);\r
-\r
- /*\r
- + (NSArray *)registeredImageRepClasses\r
- */\r
- HRESULT registeredImageRepClasses([out] int* cTypes, [out, retval] WebImageRep* types);\r
-\r
- /*\r
- + (void)registerImageRepClass:(Class)imageRepClass\r
- */\r
- HRESULT registerImageRepClass([in] WebImageRep* repClass);\r
-\r
- /*\r
- + (void)unregisterImageRepClass:(Class)imageRepClass\r
- */\r
- HRESULT unregisterImageRepClass([in] WebImageRep* repClass);\r
-\r
- /*\r
- - (int)bitsPerSample\r
- */\r
- HRESULT bitsPerSample([out, retval] int* result);\r
-\r
- /*\r
- - (NSString *)colorSpaceName\r
- */\r
- HRESULT colorSpaceName([out, retval] BSTR* result);\r
-\r
- /*\r
- - (BOOL)draw\r
- */\r
- HRESULT draw([out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)drawAtPoint:(NSPoint)aPoint\r
- */\r
- HRESULT drawAtPoint([in] LPPOINT aPoint, [out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)drawInRect:(NSRect)rect\r
- */\r
- HRESULT drawInRect([in] LPRECT rect, [out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)hasAlpha\r
- */\r
- HRESULT hasAlpha([out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)isOpaque\r
- */\r
- HRESULT isOpaque([out, retval] BOOL* result);\r
-\r
- /*\r
- - (int)pixelsHigh\r
- */\r
- HRESULT pixelsHigh([out, retval] int* result);\r
-\r
- /*\r
- - (int)pixelsWide\r
- */\r
- HRESULT pixelsWide([out, retval] int* result);\r
-\r
- /*\r
- - (void)setAlpha:(BOOL)flag\r
- */\r
- HRESULT setAlpha([in] BOOL flag);\r
-\r
- /*\r
- - (void)setBitsPerSample:(int)anInt\r
- */\r
- HRESULT setBitsPerSample([in] int anInt);\r
-\r
- /*\r
- - (void)setColorSpaceName:(NSString *)string\r
- */\r
- HRESULT setColorSpaceName([in] BSTR str);\r
-\r
- /*\r
- - (void)setOpaque:(BOOL)flag\r
- */\r
- HRESULT setOpaque([in] BOOL flag);\r
-\r
- /*\r
- - (void)setPixelsHigh:(int)anInt\r
- */\r
- HRESULT setPixelsHigh([in] int anInt);\r
-\r
- /*\r
- - (void)setPixelsWide:(int)anInt\r
- */\r
- HRESULT setPixelsWide([in] int anInt);\r
-\r
- /*\r
- - (void)setSize:(NSSize)aSize\r
- */\r
- HRESULT setSize([in] LPSIZE aSize);\r
-\r
- /*\r
- - (NSSize)size\r
- */\r
- HRESULT size([out, retval] LPSIZE* result);\r
-}\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+
+interface WebImageRep;
+interface WebImageDelegate;
+
+typedef enum {
+ WebImageCacheDefault,
+ WebImageCacheAlways,
+ WebImageCacheBySize,
+ WebImageCacheNever
+} WebImageCacheMode;
+
+typedef enum _WebCompositingOperation {
+ WebCompositeClear = 0,
+ WebCompositeCopy = 1,
+ WebCompositeSourceOver = 2,
+ WebCompositeSourceIn = 3,
+ WebCompositeSourceOut = 4,
+ WebCompositeSourceAtop = 5,
+ WebCompositeDestinationOver = 6,
+ WebCompositeDestinationIn = 7,
+ WebCompositeDestinationOut = 8,
+ WebCompositeDestinationAtop = 9,
+ WebCompositeXOR = 10,
+ WebCompositePlusDarker = 11,
+ WebCompositeHighlight = 12,
+ WebCompositePlusLighter = 13
+} WebCompositingOperation;
+
+typedef enum _WebTIFFCompression {
+ WebTIFFCompressionNone = 1,
+ WebTIFFCompressionCCITTFAX3 = 3,
+ WebTIFFCompressionCCITTFAX4 = 4,
+ WebTIFFCompressionLZW = 5,
+ WebTIFFCompressionJPEG = 6,
+ WebTIFFCompressionNEXT = 32766,
+ WebTIFFCompressionPackBits = 32773,
+ WebTIFFCompressionOldJPEG = 32865
+} WebTIFFCompression;
+
+typedef enum {
+ WebImageLoadStatusCompleted,
+ WebImageLoadStatusCancelled,
+ WebImageLoadStatusInvalidData,
+ WebImageLoadStatusUnexpectedEOF,
+ WebImageLoadStatusReadError
+} WebImageLoadStatus;
+
+[
+ local,
+ object,
+ uuid(95BA7FC9-7D12-4f5c-B8CB-8CB28D0EE47E),
+ pointer_default(unique)
+]
+interface IWebImage : IUnknown
+{
+ /*
+ + (BOOL)canInitWithPasteboard:(NSPasteboard *)pasteboard
+ */
+ HRESULT canInitWithPasteboard([in] IDataObject* pasteboard, [out, retval] BOOL* result);
+
+ /*
+ + (NSArray *)imageFileTypes
+ */
+ HRESULT imageFileTypes([out] int* cTypes, [out, retval] BSTR** types);
+
+ /*
+ + (id)imageNamed:(NSString *)name
+ */
+ HRESULT imageNamed([in] BSTR name, [out, retval] IUnknown* result);
+
+ /*
+ + (NSArray *)imagePasteboardTypes
+ */
+ HRESULT imagePasteboardTypes([out] int* cTypes, [out, retval] BSTR** types);
+
+ /*
+ + (NSArray *)imageUnfilteredFileTypes
+ */
+ HRESULT imageUnfilteredFileTypes([out] int* cTypes, [out, retval] BSTR** types);
+
+ /*
+ + (NSArray *)imageUnfilteredPasteboardTypes
+ */
+ HRESULT imageUnfilteredPasteboardTypes([out] int* cTypes, [out, retval] BSTR** types);
+
+ /*
+ - (void)addRepresentation:(NSImageRep *)imageRep
+ */
+ HRESULT addRepresentation([in] WebImageRep* imageRep);
+
+ /*
+ - (void)addRepresentations:(NSArray *)imageReps
+ */
+ HRESULT addRepresentations([in] int cImageReps, [in, size_is(cImageReps)] WebImageRep** imageReps);
+
+ /*
+ - (NSColor *)backgroundColor
+ */
+ HRESULT backgroundColor([out, retval] COLORREF* result);
+
+ /*
+ - (NSImageRep *)bestRepresentationForDevice:(NSDictionary *)deviceDescription
+ */
+ HRESULT bestRepresentationForDevice([in] IPropertyBag* deviceDescription, [out, retval] WebImageRep** result);
+
+ /*
+ - (BOOL)cacheDepthMatchesImageDepth
+ */
+ HRESULT cacheDepthMatchesImageDepth([out, retval] BOOL* result);
+
+ /*
+ -(NSImageCacheMode)cacheMode
+ */
+ HRESULT cacheMode([out, retval] WebImageCacheMode* result);
+
+ /*
+ - (void)cancelIncrementalLoad
+ */
+ HRESULT cancelIncrementalLoad();
+
+ /*
+ - (void)compositeToPoint:(NSPoint)aPoint fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op
+ - (void)compositeToPoint:(NSPoint)aPoint fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(float)delta
+ - (void)compositeToPoint:(NSPoint)aPoint operation:(NSCompositingOperation)op
+ - (void)compositeToPoint:(NSPoint)aPoint operation:(NSCompositingOperation)op fraction:(float)delta
+ */
+ HRESULT compositeToPoint([in, optional] LPPOINT aPoint, [in, optional] LPRECT srcRect, [in, optional] WebCompositingOperation op, [in, optional] float delta);
+
+ /*
+ - (id)delegate
+ */
+ HRESULT delegate([in] WebImageDelegate* d);
+
+ /*
+ - (void)dissolveToPoint:(NSPoint)aPoint fraction:(float)delta
+ - (void)dissolveToPoint:(NSPoint)aPoint fromRect:(NSRect)srcRect fraction:(float)delta
+ */
+ HRESULT dissolveToPoint([in] LPPOINT aPoint, [in] float delta, [in, optional] LPRECT srcRect);
+
+ /*
+ - (void)drawAtPoint:(NSPoint)point fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(float)delta
+ */
+ HRESULT drawAtPoint([in] LPPOINT point, [in] LPRECT srcRect, [in] WebCompositingOperation op, [in] float delta);
+
+ /*
+ - (void)drawInRect:(NSRect)dstRect fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(float)delta
+ */
+ HRESULT drawInRect([in] LPRECT dstRect, [in] LPRECT srcRect, [in] WebCompositingOperation op, [in] float delta);
+
+ /*
+ - (BOOL)drawRepresentation:(NSImageRep *)imageRep inRect:(NSRect)dstRect
+ */
+ HRESULT drawRepresentation([in] WebImageRep* imageRep, [in] LPRECT dstRect, [out, retval] BOOL* result);
+
+ /*
+ - (id)initByReferencingFile:(NSString *)filename
+ */
+ HRESULT initByReferencingFile([in] BSTR fileName);
+
+ /*
+ - (id)initByReferencingURL:(NSURL *)url
+ */
+ HRESULT initByReferencingURL([in] BSTR url);
+
+ /*
+ - (id)initWithContentsOfFile:(NSString *)filename
+ */
+ HRESULT initWithContentsOfFile([in] BSTR filename);
+
+ /*
+ - (id)initWithContentsOfURL:(NSURL *)aURL
+ */
+ HRESULT initWithContentsOfURL([in] BSTR aURL);
+
+ /*
+ - (id)initWithData:(NSData *)data
+ */
+ HRESULT initWithData([in] IStream* data);
+
+ /*
+ - (id)initWithPasteboard:(NSPasteboard *)pasteboard
+ */
+ HRESULT initWithPasteboard([in] IDataObject* pasteboard);
+
+ /*
+ - (id)initWithSize:(NSSize)aSize
+ */
+ HRESULT initWithSize([in] LPPOINT aSize);
+
+ /*
+ - (BOOL)isCachedSeparately
+ */
+ HRESULT isCachedSeparately([out, retval] BOOL* result);
+
+ /*
+ - (BOOL)isDataRetained
+ */
+ HRESULT isDataRetained([out, retval] BOOL* result);
+
+ /*
+ - (BOOL)isFlipped
+ */
+ HRESULT isFlipped([out, retval] BOOL* result);
+
+ /*
+ - (BOOL)isValid
+ */
+ HRESULT isValid([out, retval] BOOL* result);
+
+ /*
+ - (void)lockFocus
+ */
+ HRESULT lockFocus();
+
+ /*
+ - (void)lockFocusOnRepresentation:(NSImageRep *)imageRepresentation
+ */
+ HRESULT lockFocusOnRepresentation([in] WebImageRep* imageRepresentation);
+
+ /*
+ - (BOOL)matchesOnMultipleResolution
+ */
+ HRESULT matchesOnMultipleResolution([out, retval] BOOL* result);
+
+ /*
+ - (NSString *)name
+ */
+ HRESULT name([out, retval] BSTR* result);
+
+ /*
+ - (BOOL)prefersColorMatch
+ */
+ HRESULT prefersColorMatch([out, retval] BOOL* result);
+
+ /*
+ - (void)recache
+ */
+ HRESULT recache();
+
+ /*
+ - (void)removeRepresentation:(NSImageRep *)imageRep
+ */
+ HRESULT removeRepresentation([in] WebImageRep* imageRep);
+
+ /*
+ - (NSArray *)representations
+ */
+ HRESULT representations([out] int* count, [out, retval] WebImageRep** result);
+
+ /*
+ - (BOOL)scalesWhenResized
+ */
+ HRESULT scalesWhenResized([out, retval] BOOL* result);
+
+ /*
+ - (void)setBackgroundColor:(NSColor *)aColor
+ */
+ HRESULT setBackgroundColor([in] COLORREF* aColor);
+
+ /*
+ - (void)setCacheDepthMatchesImageDepth:(BOOL)flag
+ */
+ HRESULT setCacheDepthMatchesImageDepth([in] BOOL flag);
+
+ /*
+ - (void)setCachedSeparately:(BOOL)flag
+ */
+ HRESULT setCachedSeparately([in] BOOL flag);
+
+ /*
+ -(void)setCacheMode:(NSImageCacheMode)mode
+ */
+ HRESULT setCacheMode([in] WebImageCacheMode mode);
+
+ /*
+ - (void)setDataRetained:(BOOL)flag
+ */
+ HRESULT setDataRetained([in] BOOL flag);
+
+ /*
+ - (void)setDelegate:(id)anObject
+ */
+ HRESULT setDelegate([in] WebImageDelegate* d);
+
+ /*
+ - (void)setFlipped:(BOOL)flag
+ */
+ HRESULT setFlipped([in] BOOL flag);
+
+ /*
+ - (void)setMatchesOnMultipleResolution:(BOOL)flag
+ */
+ HRESULT setMatchesOnMultipleResolution([in] BOOL flag);
+
+ /*
+ - (BOOL)setName:(NSString *)aString
+ */
+ HRESULT setName([in] BSTR aString, [out, retval] BOOL* result);
+
+ /*
+ - (void)setPrefersColorMatch:(BOOL)flag
+ */
+ HRESULT setPrefersColorMatch([in] BOOL flag);
+
+ /*
+ - (void)setScalesWhenResized:(BOOL)flag
+ */
+ HRESULT setScalesWhenResized([in] BOOL flag);
+
+ /*
+ - (void)setSize:(NSSize)aSize
+ */
+ HRESULT setSize([in] LPSIZE size);
+
+ /*
+ - (void)setUsesEPSOnResolutionMismatch:(BOOL)flag
+ */
+ HRESULT setUsesEPSOnResolutionMismatch([in] BOOL flag);
+
+ /*
+ - (NSSize)size
+ */
+ HRESULT size([out, retval] LPSIZE* size);
+
+ /*
+ - (NSData *)TIFFRepresentation
+ */
+ HRESULT TIFFRepresentation([out, retval] IStream** result);
+
+ /*
+ - (NSData *)TIFFRepresentationUsingCompression:(NSTIFFCompression)comp factor:(float)aFloat
+ */
+ HRESULT TIFFRepresentationUsingCompression([in] WebTIFFCompression comp, [in] float aFloat, [out, retval] IStream** result);
+
+ /*
+ - (void)unlockFocus
+ */
+ HRESULT unlockFocus();
+
+ /*
+ - (BOOL)usesEPSOnResolutionMismatch
+ */
+ HRESULT usesEPSOnResolutionMismatch([out, retval] BOOL* result);
+}
+
+[
+ local,
+ object,
+ uuid(A3FAD4F7-4D02-4285-8E78-6C20BA6134E9),
+ pointer_default(unique)
+]
+interface WebImageDelegate : IUnknown
+{
+ /*
+ - (void)image:(NSImage *)image didLoadRepresentation:(NSImageRep *)rep withStatus:(NSImageLoadStatus)status
+ */
+ HRESULT didLoadRepresentation([in] IWebImage* image, [in] WebImageRep* rep, [in] WebImageLoadStatus status);
+
+ /*
+ - (void)image:(NSImage *)image didLoadPartOfRepresentation:(NSImageRep *)rep withValidRows:(int)rows
+ */
+ HRESULT didLoadPartOfRepresentation([in] IWebImage* image, [in] WebImageRep* rep, [in] int rows);
+
+ /*
+ - (void)image:(NSImage *)image didLoadRepresentationHeader:(NSImageRep *)rep
+ */
+ HRESULT didLoadRepresentationHeader([in] IWebImage* image, [in] WebImageRep* rep);
+
+ /*
+ - (void)image:(NSImage *)image willLoadRepresentation:(NSImageRep *)rep
+ */
+ HRESULT willLoadRepresentation([in] IWebImage* image, [in] WebImageRep* rep);
+
+ /*
+ - (NSImage *)imageDidNotDraw:(id)sender inRect:(NSRect)aRect
+ */
+ HRESULT imageDidNotDraw([in] IWebImage* image, [in] LPRECT aRect);
+}
+
+[
+ local,
+ object,
+ uuid(6FF5CD5A-16C6-4f47-A7B3-0DFDFD9802B9),
+ pointer_default(unique)
+]
+interface WebImageRep : IUnknown
+{
+ /*
+ + (BOOL)canInitWithData:(NSData *)data
+ */
+ HRESULT canInitWithData([in] IStream* data, [out, retval] BOOL* result);
+
+ /*
+ + (BOOL)canInitWithPasteboard:(NSPasteboard *)pasteboard
+ */
+ HRESULT canInitWithPasteboard([in] IDataObject* pasteboard, [out, retval] BOOL* result);
+
+ /*
+ + (NSArray *)imageFileTypes
+ */
+ HRESULT imageFileTypes([out] int* cTypes, [out, retval] BSTR** types);
+
+ /*
+ + (NSArray *)imagePasteboardTypes
+ */
+ HRESULT imagePasteboardTypes([out] int* cTypes, [out, retval] BSTR** types);
+
+ /*
+ + (Class)imageRepClassForData:(NSData *)data
+ */
+ HRESULT imageRepClassForData([in] IStream* data);
+
+ /*
+ + (Class)imageRepClassForFileType:(NSString *)type
+ */
+ HRESULT imageRepClassForFileType([in] BSTR type);
+
+ /*
+ + (Class)imageRepClassForPasteboardType:(NSString *)type
+ */
+ HRESULT imageRepClassForPasteboardType([in] BSTR type);
+
+ /*
+ + (NSArray *)imageRepsWithContentsOfFile:(NSString *)filename
+ */
+ HRESULT imageRepsWithContentsOfFile([in] BSTR filename, [out] int* cReps, [out, retval] WebImageRep** reps);
+
+ /*
+ + (NSArray *)imageRepsWithContentsOfURL:(NSURL *)aURL
+ */
+ HRESULT imageRepsWithContentsOfURL([in] BSTR aURL, [out] int* cReps, [out, retval] WebImageRep** reps);
+
+ /*
+ + (NSArray *)imageRepsWithPasteboard:(NSPasteboard *)pasteboard
+ */
+ HRESULT imageRepsWithPasteboard([in] IDataObject* pasteboard, [out] int* cReps, [out, retval] WebImageRep** reps);
+
+ /*
+ + (id)imageRepWithContentsOfFile:(NSString *)filename
+ */
+ HRESULT imageRepWithContentsOfFile([in] BSTR filename);
+
+ /*
+ + (id)imageRepWithContentsOfURL:(NSURL *)aURL
+ */
+ HRESULT imageRepWithContentsOfURL([in] BSTR aURL);
+
+ /*
+ + (id)imageRepWithPasteboard:(NSPasteboard *)pasteboard
+ */
+ HRESULT imageRepWithPasteboard([in] IDataObject* pasteboard);
+
+ /*
+ + (NSArray *)imageUnfilteredFileTypes
+ */
+ HRESULT imageUnfilteredFileTypes([out] int* cTypes, [out, retval] BSTR* types);
+
+ /*
+ + (NSArray *)imageUnfilteredPasteboardTypes
+ */
+ HRESULT imageUnfilteredPasteboardTypes([out] int* cTypes, [out, retval] BSTR* types);
+
+ /*
+ + (NSArray *)registeredImageRepClasses
+ */
+ HRESULT registeredImageRepClasses([out] int* cTypes, [out, retval] WebImageRep* types);
+
+ /*
+ + (void)registerImageRepClass:(Class)imageRepClass
+ */
+ HRESULT registerImageRepClass([in] WebImageRep* repClass);
+
+ /*
+ + (void)unregisterImageRepClass:(Class)imageRepClass
+ */
+ HRESULT unregisterImageRepClass([in] WebImageRep* repClass);
+
+ /*
+ - (int)bitsPerSample
+ */
+ HRESULT bitsPerSample([out, retval] int* result);
+
+ /*
+ - (NSString *)colorSpaceName
+ */
+ HRESULT colorSpaceName([out, retval] BSTR* result);
+
+ /*
+ - (BOOL)draw
+ */
+ HRESULT draw([out, retval] BOOL* result);
+
+ /*
+ - (BOOL)drawAtPoint:(NSPoint)aPoint
+ */
+ HRESULT drawAtPoint([in] LPPOINT aPoint, [out, retval] BOOL* result);
+
+ /*
+ - (BOOL)drawInRect:(NSRect)rect
+ */
+ HRESULT drawInRect([in] LPRECT rect, [out, retval] BOOL* result);
+
+ /*
+ - (BOOL)hasAlpha
+ */
+ HRESULT hasAlpha([out, retval] BOOL* result);
+
+ /*
+ - (BOOL)isOpaque
+ */
+ HRESULT isOpaque([out, retval] BOOL* result);
+
+ /*
+ - (int)pixelsHigh
+ */
+ HRESULT pixelsHigh([out, retval] int* result);
+
+ /*
+ - (int)pixelsWide
+ */
+ HRESULT pixelsWide([out, retval] int* result);
+
+ /*
+ - (void)setAlpha:(BOOL)flag
+ */
+ HRESULT setAlpha([in] BOOL flag);
+
+ /*
+ - (void)setBitsPerSample:(int)anInt
+ */
+ HRESULT setBitsPerSample([in] int anInt);
+
+ /*
+ - (void)setColorSpaceName:(NSString *)string
+ */
+ HRESULT setColorSpaceName([in] BSTR str);
+
+ /*
+ - (void)setOpaque:(BOOL)flag
+ */
+ HRESULT setOpaque([in] BOOL flag);
+
+ /*
+ - (void)setPixelsHigh:(int)anInt
+ */
+ HRESULT setPixelsHigh([in] int anInt);
+
+ /*
+ - (void)setPixelsWide:(int)anInt
+ */
+ HRESULT setPixelsWide([in] int anInt);
+
+ /*
+ - (void)setSize:(NSSize)aSize
+ */
+ HRESULT setSize([in] LPSIZE aSize);
+
+ /*
+ - (NSSize)size
+ */
+ HRESULT size([out, retval] LPSIZE* result);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebURLRequest.idl";\r
-\r
-interface IWebURLRequest;\r
-\r
-[\r
- local,\r
- object,\r
- uuid(C4042773-371F-427e-AFA9-9D4B358A0D93),\r
- pointer_default(unique)\r
-]\r
-interface IWebMutableURLRequest : IWebURLRequest\r
-{\r
- /*\r
- - (void)addValue:(NSString *)value forHTTPHeaderField:(NSString *)field\r
- */\r
- HRESULT addValue([in] BSTR value, [in] BSTR field);\r
-\r
- /*\r
- - (void)setAllHTTPHeaderFields:(NSDictionary *)headerFields\r
- */\r
- HRESULT setAllHTTPHeaderFields([in] IPropertyBag* headerFields);\r
-\r
- /*\r
- - (void)setCachePolicy:(NSURLRequestCachePolicy)policy\r
- */\r
- HRESULT setCachePolicy([in] WebURLRequestCachePolicy policy);\r
-\r
- /*\r
- - (void)setHTTPBody:(NSData *)data\r
- */\r
- HRESULT setHTTPBody([in] IStream* data);\r
-\r
- /*\r
- - (void)setHTTPBodyStream:(NSInputStream *)inputStream\r
- */\r
- HRESULT setHTTPBodyStream([in] IStream* data);\r
-\r
- /*\r
- - (void)setHTTPMethod:(NSString *)method\r
- */\r
- HRESULT setHTTPMethod([in] BSTR method);\r
-\r
- /*\r
- - (void)setHTTPShouldHandleCookies:(BOOL)handleCookies\r
- */\r
- HRESULT setHTTPShouldHandleCookies([in] BOOL handleCookies);\r
-\r
- /*\r
- - (void)setMainDocumentURL:(NSURL *)theURL\r
- */\r
- HRESULT setMainDocumentURL([in] BSTR theURL);\r
-\r
- /*\r
- - (void)setTimeoutInterval:(NSTimeInterval)timeoutInterval\r
- */\r
- HRESULT setTimeoutInterval([in] UINT timeoutInterval);\r
-\r
- /*\r
- - (void)setURL:(NSURL *)theURL\r
- */\r
- HRESULT setURL([in] BSTR theURL);\r
-\r
- /*\r
- - (void)setValue:(NSString *)value forHTTPHeaderField:(NSString *)field\r
- */\r
- HRESULT setValue([in] BSTR value, [in] BSTR field);\r
-}\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebURLRequest.idl";
+
+interface IWebURLRequest;
+
+[
+ local,
+ object,
+ 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] UINT 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);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-\r
-[\r
- local,\r
- object,\r
- uuid(93598207-3E34-49ec-97EC-EFA9A1E16335),\r
- pointer_default(unique)\r
-]\r
-interface IWebNotification : IUnknown\r
-{\r
- /*\r
- + (id)notificationWithName:(NSString *)aName object:(id)anObject\r
- + (id)notificationWithName:(NSString *)aName object:(id)anObject userInfo:(NSDictionary *)userInfo\r
- */\r
- HRESULT notificationWithName([in] BSTR aName, [in] IUnknown* anObject, [in, optional] IPropertyBag* userInfo);\r
-\r
- /*\r
- - (NSString *)name\r
- */\r
- HRESULT name([out, retval] BSTR* result);\r
-\r
- /*\r
- - (id)object\r
- */\r
- HRESULT object_([out, retval] IUnknown* result);\r
-\r
- /*\r
- - (NSDictionary *)userInfo\r
- */\r
- HRESULT userInfo([out, retval] IPropertyBag* result);\r
-}\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+
+[
+ local,
+ object,
+ 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, optional] IPropertyBag* userInfo);
+
+ /*
+ - (NSString *)name
+ */
+ HRESULT name([out, retval] BSTR* result);
+
+ /*
+ - (id)object
+ */
+ HRESULT object_([out, retval] IUnknown* result);
+
+ /*
+ - (NSDictionary *)userInfo
+ */
+ HRESULT userInfo([out, retval] IPropertyBag* result);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
interface IWebError;
interface IWebURLResponse;
interface IWebView;
interface IWebFrame;
interface IWebPolicyPrivate;
-\r
+
/*!
@enum WebNavigationType
@abstract The type of action that triggered a possible navigation.
with a sheet, for example.
@protocol WebPolicyDecisionListener <NSObject>
*/
-[\r
- local,\r
- object,\r
- uuid(DFCDE523-FD96-4f95-958B-151540FE122A),\r
- pointer_default(unique)\r
-]\r
-interface IWebPolicyDecisionListener : IUnknown\r
+[
+ local,
+ object,
+ uuid(DFCDE523-FD96-4f95-958B-151540FE122A),
+ pointer_default(unique)
+]
+interface IWebPolicyDecisionListener : IUnknown
{
/*!
@method use
this case, conent policy will be checked for each one.
@interface NSObject (WebPolicyDelegate)
*/
-[\r
- local,\r
- object,\r
- uuid(9B0BAE6C-A496-4000-9E22-2E89F0747401),\r
- pointer_default(unique)\r
-]\r
-interface IWebPolicyDelegate : IUnknown\r
+[
+ local,
+ object,
+ uuid(9B0BAE6C-A496-4000-9E22-2E89F0747401),
+ pointer_default(unique)
+]
+interface IWebPolicyDelegate : IUnknown
{
/*!
@method webView:decidePolicyForNavigationAction:request:frame:decisionListener:
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+
/*!
@class WebPreferences
@interface WebPreferences: NSObject <NSCoding>
-*/\r
-[\r
- local,\r
- object,\r
- uuid(0930D594-A5A3-46e1-858E-AB17A13CD28E),\r
- pointer_default(unique)\r
-]\r
-interface IWebPreferences : IUnknown\r
-{\r
+*/
+[
+ local,
+ object,
+ uuid(0930D594-A5A3-46e1-858E-AB17A13CD28E),
+ pointer_default(unique)
+]
+interface IWebPreferences : IUnknown
+{
/*!
@method standardPreferences
+ (WebPreferences *)standardPreferences;
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
/*!
@class WebResource
@interface WebResource : NSObject <NSCoding, NSCopying>
*/
-[\r
- local,\r
- object,\r
- uuid(09567E0E-7859-494a-B0E4-92C13CFE5574),\r
- pointer_default(unique)\r
-]\r
-interface IWebResource : IUnknown\r
-{\r
+[
+ local,
+ object,
+ uuid(09567E0E-7859-494a-B0E4-92C13CFE5574),
+ pointer_default(unique)
+]
+interface IWebResource : IUnknown
+{
/*!
@method initWithData:URL:MIMEType:textEncodingName:frameName
@abstract The initializer for WebResource.
@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;
- */\r
- HRESULT frameName([out, retval] BSTR* name);\r
-}\r
+ */
+ HRESULT frameName([out, retval] BSTR* name);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebDataSource.idl";\r
-import "IWebURLResponse.idl";\r
-import "IWebURLAuthenticationChallenge.idl";\r
-import "IWebError.idl";\r
-\r
-interface IWebView;\r
-interface IWebDataSource;\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebDataSource.idl";
+import "IWebURLResponse.idl";
+import "IWebURLAuthenticationChallenge.idl";
+import "IWebError.idl";
+
+interface IWebView;
+interface IWebDataSource;
interface IWebURLAuthenticationChallenge;
interface IWebURLResponse;
interface IWebURLRequest;
interface IWebError;
-\r
+
/*!
@category WebResourceLoadDelegate
@discussion Implementors of this protocol will receive messages indicating
resource:willSendRequest:redirectResponse:fromDataSource: messages as it's URL is redirected.
@interface NSObject (WebResourceLoadDelegate)
*/
-\r
-[\r
- local,\r
- object,\r
- uuid(AF3289AA-90DB-4ca4-A112-A1E5F0517953),\r
- pointer_default(unique)\r
-]\r
-interface IWebResourceLoadDelegate : IUnknown\r
+
+[
+ local,
+ object,
+ uuid(AF3289AA-90DB-4ca4-A112-A1E5F0517953),
+ pointer_default(unique)
+]
+interface IWebResourceLoadDelegate : IUnknown
{
/*!
@method webView:identifierForInitialRequest:fromDataSource:
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+
/*!
@class WebScriptObject
@discussion WebScriptObjects are used to wrap script objects passed from
@interface WebScriptObject : NSObject
*/
-[\r
- local,\r
- object,\r
- uuid(7022340A-649C-43fc-9214-85CA7D3BE3C7),\r
- pointer_default(unique)\r
-]\r
-interface IWebScriptObject : IUnknown\r
-{\r
+[
+ local,
+ object,
+ uuid(7022340A-649C-43fc-9214-85CA7D3BE3C7),
+ pointer_default(unique)
+]
+interface IWebScriptObject : IUnknown
+{
/*!
@method throwException:
@discussion Throws an exception in the current script execution context.
@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;\r
+ - (void)setException: (NSString *)description;
*/
HRESULT setException([in] BSTR description);
-}\r
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebURLRequest.idl";\r
-\r
-interface IWebView;\r
-interface IWebURLRequest;\r
-\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebURLRequest.idl";
+
+interface IWebView;
+interface IWebURLRequest;
+
/*!
@enum WebMenuItemTag
@discussion Each menu item in the default menu items array passed in
WebMenuItemPDFNextPage,
WebMenuItemPDFPreviousPage
} WebMenuItemTag;
-\r
+
/*!
@enum WebDragDestinationAction
@abstract Actions that the destination of a drag can perform.
WebDragDestinationActionLoad = 4,
WebDragDestinationActionAny = (unsigned long)-1
} WebDragDestinationAction;
-\r
+
/*!
@enum WebDragSourceAction
@abstract Actions that the source of a drag can perform.
WebDragSourceActionSelection = 8,
WebDragSourceActionAny = (unsigned long)-1
} WebDragSourceAction;
-\r
-\r
+
+
/*!
@protocol WebOpenPanelResultListener
@discussion This protocol is used to call back with the results of
the file open panel requested by runOpenPanelForFileButtonWithResultListener:
@protocol WebOpenPanelResultListener <NSObject>
*/
-[\r
- local,\r
- object,\r
- uuid(634198C7-9DFC-4aba-9E8C-90AEEA7A4144),\r
- pointer_default(unique)\r
-]\r
-interface IWebOpenPanelResultListener : IUnknown\r
+[
+ local,
+ object,
+ uuid(634198C7-9DFC-4aba-9E8C-90AEEA7A4144),
+ pointer_default(unique)
+]
+interface IWebOpenPanelResultListener : IUnknown
{
/*!
@method chooseFilename:
- (void)cancel;
*/
HRESULT cancel();
-}\r
-\r
+}
+
/*!
@category WebUIDelegate
@discussion A class that implements WebUIDelegate provides
windows and control aspects of existing windows.
@interface NSObject (WebUIDelegate)
*/
-[\r
- local,\r
- object,\r
- uuid(2452A889-A74A-4fbc-9617-326A0A953630),\r
- pointer_default(unique)\r
-]\r
-interface IWebUIDelegate : IUnknown\r
+[
+ local,
+ object,
+ uuid(2452A889-A74A-4fbc-9617-326A0A953630),
+ pointer_default(unique)
+]
+interface IWebUIDelegate : IUnknown
{
/*!
@method webView:createWebViewWithRequest:
- (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);
-}\r
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebError.idl";\r
-import "IWebURLResponse.idl";\r
-\r
-interface IWebURLAuthenticationChallengeSender;\r
-interface IWebURLProtectionSpace;\r
-interface IWebURLCredential;\r
-\r
-typedef enum {\r
- WebURLCredentialPersistenceNone,\r
- WebURLCredentialPersistenceForSession,\r
- WebURLCredentialPersistencePermanent\r
-} WebURLCredentialPersistence;\r
-\r
-[\r
- local,\r
- object,\r
- uuid(5382DABA-C3C3-40c5-AA40-04079F11A844),\r
- pointer_default(unique)\r
-]\r
-interface IWebURLAuthenticationChallenge : IUnknown\r
-{\r
- /*\r
- - (NSError *)error\r
- */\r
- HRESULT error([out, retval] IWebError** result);\r
-\r
- /*\r
- - (NSURLResponse *)failureResponse\r
- */\r
- HRESULT failureResponse([out, retval] IWebURLResponse* result);\r
-\r
- /*\r
- - (id)initWithAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge sender:(id<NSURLAuthenticationChallengeSender>)sender\r
- */\r
- HRESULT initWithAuthenticationChallenge([in] IWebURLAuthenticationChallenge* challenge, [in] IWebURLAuthenticationChallengeSender* sender);\r
-\r
- /*\r
- - (id)initWithProtectionSpace:(NSURLProtectionSpace *)space proposedCredential:(NSURLCredential *)credential previousFailureCount:(int)count failureResponse:(NSURLResponse *)response error:(NSError *)error sender:(id <NSURLAuthenticationChallengeSender>)sender\r
- */\r
- HRESULT initWithProtectionSpace([in] IWebURLProtectionSpace* space, [in] IWebURLCredential* proposedCredential, [in] int previousFailureCount, [in] IWebURLResponse* failureResponse, [in] IWebError* error, [in] IWebURLAuthenticationChallengeSender* sender);\r
-\r
- /*\r
- -(unsigned)previousFailureCount\r
- */\r
- HRESULT previousFailureCount([out, retval] UINT* result);\r
-\r
- /*\r
- -(NSURLCredential *)proposedCredential\r
- */\r
- HRESULT proposedCredential([out, retval] IWebURLCredential** result);\r
-\r
- /*\r
- - (NSURLProtectionSpace *)protectionSpace\r
- */\r
- HRESULT protectionSpace([out, retval] IWebURLProtectionSpace** result);\r
-\r
- /*\r
- - (id<NSURLAuthenticationChallengeSender>)sender\r
- */\r
- HRESULT sender([out, retval] IWebURLAuthenticationChallengeSender** sender);\r
-}\r
-\r
-[\r
- local,\r
- object,\r
- uuid(9360D6FB-186C-4ff7-AE57-D1B973DA0D1C),\r
- pointer_default(unique)\r
-]\r
-interface IWebURLAuthenticationChallengeSender : IUnknown\r
-{\r
- /*\r
- - (void)cancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge\r
- */\r
- HRESULT cancelAuthenticationChallenge([in] IWebURLAuthenticationChallenge* challenge);\r
-\r
- /*\r
- - (void)continueWithoutCredentialForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge\r
- */\r
- HRESULT continueWithoutCredentialForAuthenticationChallenge([in] IWebURLAuthenticationChallenge* challenge);\r
-\r
- /*\r
- - (void)useCredential:(NSURLCredential *)credential forAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge\r
- */\r
- HRESULT useCredential([in] IWebURLCredential* credential, [in] IWebURLAuthenticationChallenge* challenge);\r
-}\r
-\r
-[\r
- local,\r
- object,\r
- uuid(71D2622A-3FF2-404b-BD45-C60659C901AF),\r
- pointer_default(unique)\r
-]\r
-interface IWebURLProtectionSpace : IUnknown\r
-{\r
- /*\r
- -(NSString *)authenticationMethod\r
- */\r
- HRESULT authenticationMethod([out, retval] BSTR* result);\r
-\r
- /*\r
- -(NSString *)host\r
- */\r
- HRESULT host([out, retval] BSTR* result);\r
-\r
- /*\r
- -(id)initWithHost:(NSString *)host port:(int)port protocol:(NSString *)protocol realm:(NSString *)realm authenticationMethod:(NSString *)authenticationMethod\r
- */\r
- HRESULT initWithHost([in] BSTR host, [in] int port, [in] BSTR protocol, [in] BSTR realm, [in] BSTR authenticationMethod);\r
-\r
- /*\r
- -(id)initWithProxyHost:(NSString *)host port:(int)port type:(NSString *)proxyType realm:(NSString *)realm authenticationMethod:(NSString *)authenticationMethod\r
- */\r
- HRESULT initWithProxyHost([in] BSTR host, [in] int port, [in] BSTR proxyType, [in] BSTR realm, [in] BSTR authenticationMethod);\r
-\r
- /*\r
- -(BOOL)isProxy\r
- */\r
- HRESULT isProxy([out, retval] BOOL* result);\r
-\r
- /*\r
- -(int)port\r
- */\r
- HRESULT port([out, retval] int* result);\r
-\r
- /*\r
- -(NSString *)protocol\r
- */\r
- HRESULT protocol([out, retval] BSTR* result);\r
-\r
- /*\r
- -(NSString *)proxyType\r
- */\r
- HRESULT proxyType([out, retval] BSTR* result);\r
-\r
- /*\r
- -(NSString *)realm\r
- */\r
- HRESULT realm([out, retval] BSTR* result);\r
-\r
- /*\r
- -(BOOL)receivesCredentialSecurely\r
- */\r
- HRESULT receivesCredentialSecurely([out, retval] BOOL* result);\r
-}\r
-\r
-[\r
- local,\r
- object,\r
- uuid(A1E9D765-FACE-4189-BBE3-AED7EBF65EBD),\r
- pointer_default(unique)\r
-]\r
-interface IWebURLCredential : IUnknown\r
-{\r
- /*\r
- + (NSURLCredential *)credentialWithUser:(NSString *)user password:(NSString *)password persistence:(NSURLCredentialPersistence)persistence\r
- */\r
- HRESULT credentialWithUser([in] BSTR user, [in] BSTR password, [in] WebURLCredentialPersistence persistence);\r
-\r
- /*\r
- -(BOOL)hasPassword\r
- */\r
- HRESULT hasPassword([out, retval] BOOL* result);\r
-\r
- /*\r
- -(id)initWithUser:(NSString *)user password:(NSString *)password persistence:(NSURLCredentialPersistence)persistence\r
- */\r
- HRESULT initWithuser([in] BSTR user, [in] BSTR password, [in] WebURLCredentialPersistence persistence);\r
-\r
- /*\r
- -(NSString *)password\r
- */\r
- HRESULT password([out, retval] BSTR* password);\r
-\r
- /*\r
- -(NSURLCredentialPersistence)persistence\r
- */\r
- HRESULT persistence([out, retval] WebURLCredentialPersistence* result);\r
-\r
- /*\r
- -(NSString *)user\r
- */\r
- HRESULT user([out, retval] BSTR* result);\r
-}\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebError.idl";
+import "IWebURLResponse.idl";
+
+interface IWebURLAuthenticationChallengeSender;
+interface IWebURLProtectionSpace;
+interface IWebURLCredential;
+
+typedef enum {
+ WebURLCredentialPersistenceNone,
+ WebURLCredentialPersistenceForSession,
+ WebURLCredentialPersistencePermanent
+} WebURLCredentialPersistence;
+
+[
+ local,
+ object,
+ 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);
+}
+
+[
+ local,
+ object,
+ 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);
+}
+
+[
+ local,
+ object,
+ 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);
+}
+
+[
+ local,
+ object,
+ uuid(A1E9D765-FACE-4189-BBE3-AED7EBF65EBD),
+ pointer_default(unique)
+]
+interface IWebURLCredential : IUnknown
+{
+ /*
+ + (NSURLCredential *)credentialWithUser:(NSString *)user password:(NSString *)password persistence:(NSURLCredentialPersistence)persistence
+ */
+ HRESULT credentialWithUser([in] BSTR user, [in] BSTR password, [in] WebURLCredentialPersistence persistence);
+
+ /*
+ -(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);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-\r
-typedef enum _WebURLRequestCachePolicy\r
-{\r
- WebURLRequestUseProtocolCachePolicy,\r
- WebURLRequestReloadIgnoringCacheData,\r
- WebURLRequestReturnCacheDataElseLoad,\r
- WebURLRequestReturnCacheDataDontLoad\r
-} WebURLRequestCachePolicy;\r
-\r
-[\r
- local,\r
- object,\r
- uuid(F4B85F1D-F3B2-493d-B786-0930E804A3BA),\r
- pointer_default(unique)\r
-]\r
-interface IWebURLRequest : IUnknown\r
-{\r
- /*\r
- + (id)requestWithURL:(NSURL *)theURL\r
- + (id)requestWithURL:(NSURL *)theURL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval\r
- */\r
- HRESULT requestWithURL([in] BSTR theURL, [in, optional] WebURLRequestCachePolicy cachePolicy, [in, optional] UINT timeoutInterval);\r
-\r
- /*\r
- - (NSDictionary *)allHTTPHeaderFields\r
- */\r
- HRESULT allHTTPHeaderFields([out, retval] IPropertyBag** result);\r
-\r
- /*\r
- - (NSURLRequestCachePolicy)cachePolicy\r
- */\r
- HRESULT cachePolicy([out, retval] WebURLRequestCachePolicy* result);\r
-\r
- /*\r
- - (NSData *)HTTPBody\r
- */\r
- HRESULT HTTPBody([out, retval] IStream** result);\r
-\r
- /*\r
- - (NSInputStream *)HTTPBodyStream\r
- */\r
- HRESULT HTTPBodyStream([out, retval] IStream** result);\r
-\r
- /*\r
- - (NSString *)HTTPMethod\r
- */\r
- HRESULT HTTPMethod([out, retval] BSTR *result);\r
-\r
- /*\r
- - (BOOL)HTTPShouldHandleCookies\r
- */\r
- HRESULT HTTPShouldHandleCookies([out, retval] BOOL *result);\r
-\r
- /*\r
- - (id)initWithURL:(NSURL *)theURL\r
- - (id)initWithURL:(NSURL *)theURL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval\r
- */\r
- HRESULT initWithURL([in] BSTR url, [in, optional] WebURLRequestCachePolicy cachePolicy, [in, optional] UINT timeoutInterval);\r
-\r
- /*\r
- - (NSURL *)mainDocumentURL\r
- */\r
- HRESULT mainDocumentURL([out, retval] BSTR* result);\r
-\r
- /*\r
- -(NSTimeInterval)timeoutInterval\r
- */\r
- HRESULT timeoutInterval([out, retval] UINT* result);\r
-\r
- /*\r
- -(NSURL *)URL\r
- */\r
- HRESULT URL([out, retval] BSTR* result);\r
-\r
- /*\r
- -(NSString *)valueForHTTPHeaderField:(NSString *)field\r
- */\r
- HRESULT valueForHTTPHeaderField([in] BSTR field, [out, retval] BSTR* result);\r
-}\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+
+typedef enum _WebURLRequestCachePolicy
+{
+ WebURLRequestUseProtocolCachePolicy,
+ WebURLRequestReloadIgnoringCacheData,
+ WebURLRequestReturnCacheDataElseLoad,
+ WebURLRequestReturnCacheDataDontLoad
+} WebURLRequestCachePolicy;
+
+[
+ local,
+ object,
+ 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, optional] WebURLRequestCachePolicy cachePolicy, [in, optional] UINT 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, optional] WebURLRequestCachePolicy cachePolicy, [in, optional] UINT timeoutInterval);
+
+ /*
+ - (NSURL *)mainDocumentURL
+ */
+ HRESULT mainDocumentURL([out, retval] BSTR* result);
+
+ /*
+ -(NSTimeInterval)timeoutInterval
+ */
+ HRESULT timeoutInterval([out, retval] UINT* result);
+
+ /*
+ -(NSURL *)URL
+ */
+ HRESULT URL([out, retval] BSTR* result);
+
+ /*
+ -(NSString *)valueForHTTPHeaderField:(NSString *)field
+ */
+ HRESULT valueForHTTPHeaderField([in] BSTR field, [out, retval] BSTR* result);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-\r
-[\r
- local,\r
- object,\r
- uuid(9814930B-E037-4477-8DF1-4D898B648995),\r
- pointer_default(unique)\r
-]\r
-\r
-interface IWebURLResponse : IUnknown\r
-{\r
- /*\r
- - (long long)expectedContentLength\r
- */\r
- HRESULT expectedContentLength([out, retval] long long *result); \r
-\r
- /*\r
- - (id)initWithURL:(NSURL *)URL MIMEType:(NSString *)MIMEType expectedContentLength:(int)length textEncodingName:(NSString *)name\r
- */\r
- HRESULT initWithURL([in] BSTR url, [in] BSTR mimeType, [in] int expectedContentLength, [in] BSTR textEncodingName);\r
-\r
- /*\r
- - (NSString *)MIMEType\r
- */\r
- HRESULT MIMEType([out, retval] BSTR* result);\r
-\r
- /*\r
- - (NSString *)suggestedFilename\r
- */\r
- HRESULT suggestedFilename([out, retval] BSTR* result);\r
-\r
- /*\r
- - (NSString *)textEncodingName\r
- */\r
- HRESULT textEncodingName([out, retval] BSTR* result);\r
-\r
- /*\r
- - (NSURL *)URL\r
- */\r
- HRESULT URL([out, retval] BSTR* result);\r
-}\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+
+[
+ local,
+ object,
+ 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);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-\r
-interface IWebInvocation;\r
-interface IWebMethodSignature;\r
-\r
-[\r
- local,\r
- object,\r
- uuid(D25D748C-6C1E-478d-9832-FDA26E8F7EE4),\r
- pointer_default(unique)\r
-]\r
-interface IWebUndoManager : IUnknown\r
-{\r
- /*\r
- - (void)beginUndoGrouping\r
- */\r
- HRESULT beginUndoGrouping();\r
-\r
- /*\r
- - (BOOL)canRedo\r
- */\r
- HRESULT canRedo([out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)canUndo\r
- */\r
- HRESULT canUndo([out, retval] BOOL* result);\r
-\r
- /*\r
- - (void)disableUndoRegistration\r
- */\r
- HRESULT disableUndoRegistration();\r
-\r
- /*\r
- - (void)enableUndoRegistration\r
- */\r
- HRESULT enableUndoRegistration();\r
-\r
- /*\r
- - (void)endUndoGrouping\r
- */\r
- HRESULT endUndoGrouping();\r
-\r
- /*\r
- - (void)forwardInvocation:(NSInvocation *)anInvocation\r
- */\r
- HRESULT forwardInvocation([in] IWebInvocation* anInvocation);\r
-\r
- /*\r
- - (int)groupingLevel\r
- */\r
- HRESULT groupingLevel([out, retval] int* groupingLevel);\r
-\r
- /*\r
- - (BOOL)groupsByEvent\r
- */\r
- HRESULT groupsByEvent([out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)isRedoing\r
- */\r
- HRESULT isRedoing([out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)isUndoing\r
- */\r
- HRESULT isUndoing([out, retval] BOOL* result);\r
-\r
- /*\r
- - (BOOL)isUndoRegistrationEnabled\r
- */\r
- HRESULT isUndoRegistrationEnabled([out, retval] BOOL* result);\r
-\r
- /*\r
- - (unsigned)levelsOfUndo\r
- */\r
- HRESULT levelsOfUndo([out, retval] UINT* result);\r
-\r
- /*\r
- - (id)prepareWithInvocationTarget:(id)target\r
- */\r
- HRESULT prepareWithInvocationTarget([in] IUnknown* target, [out, retval] IUnknown** result);\r
-\r
- /*\r
- - (void)redo\r
- */\r
- HRESULT redo();\r
-\r
- /*\r
- - (NSString *)redoActionName\r
- */\r
- HRESULT redoActionName([out, retval] BSTR* result);\r
-\r
- /*\r
- - (NSString *)redoMenuItemTitle\r
- */\r
- HRESULT redoMenuItemTitle([out, retval] BSTR* result);\r
-\r
- /*\r
- - (NSString *)redoMenuTitleForUndoActionName:(NSString *)actionName\r
- */\r
- HRESULT redoMenuTitleForUndoActionName([in] BSTR actionName, [out, retval] BSTR* result);\r
-\r
- /*\r
- - (void)registerUndoWithTarget:(id)target selector:(SEL)aSelector object:(id)anObject\r
- */\r
- HRESULT registerUndoWithTarget([in] IUnknown* target, [in] UINT aSelector, [in] IUnknown* anObject);\r
-\r
- /*\r
- - (void)removeAllActions\r
- */\r
- HRESULT removeAllActions();\r
-\r
- /*\r
- - (void)removeAllActionsWithTarget:(id)target\r
- */\r
- HRESULT removeAllActionsWithTarget([in] IUnknown* target);\r
-\r
- /*\r
- - (NSArray *)runLoopModes\r
- */\r
- HRESULT runLoopModes([out] int* cModes, [out, retval] BSTR** modes);\r
-\r
- /*\r
- - (void)setActionName:(NSString *)actionName\r
- */\r
- HRESULT setActionName([in] BSTR actionName);\r
-\r
- /*\r
- - (void)setGroupsByEvent:(BOOL)flag\r
- */\r
- HRESULT setGroupsByEvent([in] BOOL flag);\r
-\r
- /*\r
- - (void)setLevelsOfUndo:(unsigned)anInt\r
- */\r
- HRESULT setLevelsOfUndo([in] UINT anInt);\r
-\r
- /*\r
- - (void)setRunLoopModes:(NSArray *)modes\r
- */\r
- HRESULT setRunLoopModes([in] int cModes, [in, size_is(cModes)] BSTR* modes);\r
-\r
- /*\r
- - (void)undo\r
- */\r
- HRESULT undo();\r
-\r
- /*\r
- - (NSString *)undoActionName\r
- */\r
- HRESULT undoActionName([out, retval] BSTR* result);\r
-\r
- /*\r
- - (NSString *)undoMenuItemTitle\r
- */\r
- HRESULT undoMenuItemTitle([out, retval] BSTR* result);\r
-\r
- /*\r
- - (NSString *)undoMenuTitleForUndoActionName:(NSString *)actionName\r
- */\r
- HRESULT undoMenuTitleForUndoActionName([in] BSTR actionName, [out, retval] BSTR* result);\r
-\r
- /*\r
- - (void)undoNestedGroup\r
- */\r
- HRESULT undoNestedGroup();\r
-}\r
-\r
-[\r
- local,\r
- object,\r
- uuid(67B067BE-4DE6-45c2-AD39-A91DFA84FF4E),\r
- pointer_default(unique)\r
-]\r
-interface IWebInvocation : IUnknown\r
-{\r
- /*\r
- + (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)signature\r
- */\r
- HRESULT invocationWithMethodSignature([in] IWebMethodSignature* signature);\r
-\r
- /*\r
- - (BOOL)argumentsRetained\r
- */\r
- HRESULT argumentsRetained([out, retval] BOOL* result);\r
-\r
- /*\r
- - (void)getArgument:(void *)buffer atIndex:(int)index\r
- */\r
- HRESULT getArgument([in] void* buffer, [in] int index);\r
-\r
- /*\r
- - (void)getReturnValue:(void *)buffer\r
- */\r
- HRESULT getReturnValue([in] void* buffer);\r
-\r
- /*\r
- - (void)invoke\r
- */\r
- HRESULT invoke();\r
-\r
- /*\r
- - (void)invokeWithTarget:(id)anObject\r
- */\r
- HRESULT invokeWithTarget([in] IUnknown* anObject);\r
-\r
- /*\r
- - (NSMethodSignature *)methodSignature\r
- */\r
- HRESULT methodSignature([out, retval] IWebMethodSignature** result);\r
-\r
- /*\r
- - (void)retainArguments\r
- */\r
- HRESULT retainArguments();\r
-\r
- /*\r
- - (SEL)selector\r
- */\r
- HRESULT selector([out, retval] UINT* result);\r
-\r
- /*\r
- - (void)setArgument:(void *)buffer atIndex:(int)index\r
- */\r
- HRESULT setArgument([in] void* buffer, [in] int atIndex);\r
-\r
- /*\r
- - (void)setReturnValue:(void *)buffer\r
- */\r
- HRESULT setReturnValue([in] void* buffer);\r
-\r
- /*\r
- - (void)setSelector:(SEL)selector\r
- */\r
- HRESULT setSelector([in] UINT selector);\r
-\r
- /*\r
- - (void)setTarget:(id)anObject\r
- */\r
- HRESULT setTarget([in] IUnknown* anObject);\r
-\r
- /*\r
- - (id)target\r
- */\r
- HRESULT target([out, retval] IUnknown** result);\r
-}\r
-\r
-[\r
- local,\r
- object,\r
- uuid(431DD6B2-56BF-4f48-943B-78CCEAC418E4),\r
- pointer_default(unique)\r
-]\r
-interface IWebMethodSignature : IUnknown\r
-{\r
- /*\r
- - (unsigned)frameLength\r
- */\r
- HRESULT frameLength([out, retval] UINT* result);\r
-\r
- /*\r
- - (const char *)getArgumentTypeAtIndex:(unsigned)index\r
- */\r
- HRESULT getArgumentTypeAtIndex([in] UINT index, [out, retval] const char** result);\r
-\r
- /*\r
- - (BOOL)isOneway\r
- */\r
- HRESULT isOneway([out, retval] BOOL* result);\r
-\r
- /*\r
- - (unsigned)methodReturnLength\r
- */\r
- HRESULT methodReturnLength([out, retval] UINT* result);\r
-\r
- /*\r
- - (const char *)methodReturnType\r
- */\r
- HRESULT methodReturnType([out, retval] const char** result);\r
-\r
- /*\r
- - (unsigned)numberOfArguments\r
- */\r
- HRESULT numberOfArguments([out, retval] UINT* result);\r
-}\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+
+interface IWebInvocation;
+interface IWebMethodSignature;
+
+[
+ local,
+ object,
+ 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] int* cModes, [out, retval] BSTR** modes);
+
+ /*
+ - (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();
+}
+
+[
+ local,
+ object,
+ 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
+ */
+ HRESULT getArgument([in] void* buffer, [in] int index);
+
+ /*
+ - (void)getReturnValue:(void *)buffer
+ */
+ 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
+ */
+ HRESULT setArgument([in] void* buffer, [in] int atIndex);
+
+ /*
+ - (void)setReturnValue:(void *)buffer
+ */
+ 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);
+}
+
+[
+ local,
+ object,
+ 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] const char** result);
+
+ /*
+ - (BOOL)isOneway
+ */
+ HRESULT isOneway([out, retval] BOOL* result);
+
+ /*
+ - (unsigned)methodReturnLength
+ */
+ HRESULT methodReturnLength([out, retval] UINT* result);
+
+ /*
+ - (const char *)methodReturnType
+ */
+ HRESULT methodReturnType([out, retval] const char** result);
+
+ /*
+ - (unsigned)numberOfArguments
+ */
+ HRESULT numberOfArguments([out, retval] UINT* result);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-import "IWebUIDelegate.idl";\r
-import "IWebResourceLoadDelegate.idl";\r
-import "IWebDownload.idl";\r
-import "IWebFrameLoadDelegate.idl";\r
-import "IWebPolicyDelegate.idl";\r
-import "IWebBackForwardList.idl";\r
-import "IWebHistoryItem.idl";\r
-import "IWebPreferences.idl";\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "IWebUIDelegate.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";
interface IWebPreferences;
interface IWebScriptObject;
-interface IWebUIDelegate;\r
-interface IWebResourceLoadDelegate;\r
-interface IWebDownloadDelegate;\r
-interface IWebFrameLoadDelegate;\r
-interface IWebPolicyDelegate;\r
-interface IWebDocumentView;\r
-interface IWebDocumentRepresentation;\r
-interface IWebUndoManager;\r
-interface IWebViewEditingDelegate;\r
-\r
+interface IWebUIDelegate;
+interface IWebResourceLoadDelegate;
+interface IWebDownloadDelegate;
+interface IWebFrameLoadDelegate;
+interface IWebPolicyDelegate;
+interface IWebDocumentView;
+interface IWebDocumentRepresentation;
+interface IWebUndoManager;
+interface IWebViewEditingDelegate;
+
/*!
@class WebView
WebView manages the interaction between WebFrameViews and WebDataSources. Modification
content should be handled, based on the resource's URL and MIME type.
@interface WebView : NSView
-*/\r
-[\r
- local,\r
- object,\r
- uuid(174BBEFD-058E-49c7-91DF-6F110AA4AC28),\r
- pointer_default(unique)\r
-]\r
-interface IWebView : IUnknown\r
-{\r
+*/
+[
+ local,
+ object,
+ 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.
+ (NSArray *)MIMETypesShownAsHTML;
*/
HRESULT MIMETypesShownAsHTML([out] int* count, [out, retval] BSTR** mimeTypes);
-\r
+
/*!
@method setMIMETypesShownAsHTML:
@discussion Sets the array of NSString MIME types that WebKit will
@param delegate The WebUIDelegate to set as the delegate.
- (void)setUIDelegate:(id)delegate;
*/
- HRESULT setUIDelegate([in] IWebUIDelegate* d);\r
+ HRESULT setUIDelegate([in] IWebUIDelegate* d);
/*!
@method UIDelegate
@result The WebView's WebUIDelegate.
- (id)UIDelegate;
*/
- HRESULT uiDelegate([retval, out] IWebUIDelegate** d);\r
+ HRESULT uiDelegate([retval, out] IWebUIDelegate** d);
/*!
@method setResourceLoadDelegate:
@param delegate The WebResourceLoadDelegate to set as the load delegate.
- (void)setResourceLoadDelegate:(id)delegate;
*/
- HRESULT setResourceLoadDelegate([in] IWebResourceLoadDelegate* d);\r
+ HRESULT setResourceLoadDelegate([in] IWebResourceLoadDelegate* d);
/*!
@method resourceLoadDelegate
@result Return the WebView's WebResourceLoadDelegate.
- (id)resourceLoadDelegate;
*/
- HRESULT resourceLoadDelegate([retval, out] IWebResourceLoadDelegate** d);\r
+ HRESULT resourceLoadDelegate([retval, out] IWebResourceLoadDelegate** d);
/*!
@method setDownloadDelegate:
@param delegate The WebDownloadDelegate to set as the download delegate.
- (void)setDownloadDelegate:(id)delegate;
*/
- HRESULT setDownloadDelegate([in] IWebDownloadDelegate* d);\r
+ HRESULT setDownloadDelegate([in] IWebDownloadDelegate* d);
/*!
@method downloadDelegate
@result The WebView's WebDownloadDelegate.
- (id)downloadDelegate;
*/
- HRESULT downloadDelegate([retval, out] IWebDownloadDelegate** d);\r
+ HRESULT downloadDelegate([retval, out] IWebDownloadDelegate** d);
/*!
@method setFrameLoadDelegate:
@param delegate The WebFrameLoadDelegate to set as the delegate.
- (void)setFrameLoadDelegate:(id)delegate;
*/
- HRESULT setFrameLoadDelegate([in] IWebFrameLoadDelegate* d);\r
+ HRESULT setFrameLoadDelegate([in] IWebFrameLoadDelegate* d);
/*!
@method frameLoadDelegate
@result The WebView's WebFrameLoadDelegate delegate.
- (id)frameLoadDelegate;
*/
- HRESULT frameLoadDelegate([retval, out] IWebFrameLoadDelegate** d);\r
+ HRESULT frameLoadDelegate([retval, out] IWebFrameLoadDelegate** d);
/*!
@method setPolicyDelegate:
@param delegate The WebPolicyDelegate to set as the delegate.
- (void)setPolicyDelegate:(id)delegate;
*/
- HRESULT setPolicyDelegate([in] IWebPolicyDelegate* d);\r
+ HRESULT setPolicyDelegate([in] IWebPolicyDelegate* d);
/*!
@method policyDelegate
@result The WebView's WebPolicyDelegate.
- (id)policyDelegate;
*/
- HRESULT policyDelegate([retval, out] IWebPolicyDelegate** d);\r
+ HRESULT policyDelegate([retval, out] IWebPolicyDelegate** d);
/*!
@method mainFrame
@result The main frame.
- (WebFrame *)mainFrame;
*/
- HRESULT mainFrame([retval, out] IWebFrame** frame);\r
+ HRESULT mainFrame([retval, out] IWebFrame** frame);
/*!
@method backForwardList
@result The backforward list for this webView.
- (WebBackForwardList *)backForwardList;
*/
- HRESULT backForwardList([retval, out] IWebBackForwardList** list);\r
+ HRESULT backForwardList([retval, out] IWebBackForwardList** list);
/*!
@method setMaintainsBackForwardList:
@param flag Turns use of the back forward list on or off
- (void)setMaintainsBackForwardList:(BOOL)flag;
*/
- HRESULT setMaintainsBackForwardList([in] BOOL flag);\r
+ HRESULT setMaintainsBackForwardList([in] BOOL flag);
/*!
@method goBack
@param multiplier A fractional percentage value, 1.0 is 100%.
- (void)setTextSizeMultiplier:(float)multiplier;
*/
- HRESULT setTextSizeMultiplier([in] float multiplier);\r
+ HRESULT setTextSizeMultiplier([in] float multiplier);
/*!
@method textSizeMultiplier
@result The text size multipler.
- (float)textSizeMultiplier;
*/
- HRESULT textSizeMultiplier([out, retval] float* multiplier);\r
+ HRESULT textSizeMultiplier([out, retval] float* multiplier);
/*!
@method setApplicationNameForUserAgent:
@param applicationName The application name
- (void)setApplicationNameForUserAgent:(NSString *)applicationName;
*/
- HRESULT setApplicationNameForUserAgent([in] BSTR applicationName);\r
+ 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);\r
+ HRESULT applicationNameForUserAgent([out, retval] BSTR* applicationName);
/*!
@method setCustomUserAgent:
@param userAgentString The user agent description
- (void)setCustomUserAgent:(NSString *)userAgentString;
*/
- HRESULT setCustomUserAgent([in] BSTR userAgentString);\r
+ 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);\r
+ HRESULT customUserAgent([out, retval] BSTR* userAgentString);
/*!
@method userAgentForURL:
@param encoding The text encoding name to use to display a page or nil.
- (void)setCustomTextEncodingName:(NSString *)encodingName;
*/
- HRESULT setCustomTextEncodingName([in] BSTR encodingName);\r
+ 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);\r
+ HRESULT customTextEncodingName([out, retval] BSTR* encodingName);
/*!
@method setMediaStyle:
@param mediaStyle The value to use for the CSS media property.
- (void)setMediaStyle:(NSString *)mediaStyle;
*/
- HRESULT setMediaStyle([in] BSTR media);\r
+ HRESULT setMediaStyle([in] BSTR media);
/*!
@method mediaStyle
will be nil unless set by that method.
- (NSString *)mediaStyle;
*/
- HRESULT mediaStyle([out, retval] BSTR* media);\r
+ HRESULT mediaStyle([out, retval] BSTR* media);
/*!
@method stringByEvaluatingJavaScriptFromString:
@result Returns the window object from the script environment.
- (WebScriptObject *)windowScriptObject;
*/
- HRESULT windowScriptObject([out, retval] IWebScriptObject* webScriptObject);\r
+ HRESULT windowScriptObject([out, retval] IWebScriptObject* webScriptObject);
/*!
@method setPreferences:
@abstract Override the standard setting for the webView.
- (void)setPreferences: (WebPreferences *)prefs;
*/
- HRESULT setPreferences([in] IWebPreferences* prefs);\r
+ HRESULT setPreferences([in] IWebPreferences* prefs);
/*!
@method preferences
other instance of WebPreferences has been set.
- (WebPreferences *)preferences;
*/
- HRESULT preferences([out, retval] IWebPreferences** prefs);\r
+ HRESULT preferences([out, retval] IWebPreferences** prefs);
/*!
@method setPreferencesIdentifier:
string set in this method will be used a key prefix.
- (void)setPreferencesIdentifier:(NSString *)anIdentifier;
*/
- HRESULT setPreferencesIdentifier([in] BSTR anIdentifier);\r
+ HRESULT setPreferencesIdentifier([in] BSTR anIdentifier);
/*!
@method preferencesIdentifier
not in an actual window.
- (void)setHostWindow:(NSWindow *)hostWindow;
*/
- HRESULT setHostWindow([in] HWND window);\r
+ HRESULT setHostWindow([in] HWND window);
/*!
@method hostWindow
@result The host window for the web view.
- (NSWindow *)hostWindow;
*/
- HRESULT hostWindow([out, retval] HWND* window);\r
+ HRESULT hostWindow([out, retval] HWND* window);
/*!
@method searchFor:direction:caseSensitive:
+ (void)registerViewClass:(Class)viewClass representationClass:(Class)representationClass forMIMEType:(NSString *)MIMEType;
*/
HRESULT registerViewClass([in] IWebDocumentView* view, [in] IWebDocumentRepresentation* representation, [in] BSTR forMIMEType);
-}\r
-\r
-/*\r
+}
+
+/*
@interface WebView (WebIBActions) <NSUserInterfaceValidations>
*/
-[\r
- local,\r
- object,\r
- uuid(8F0E3A30-B924-44f8-990A-1AE61ED6C632),\r
- pointer_default(unique)\r
-]\r
-interface IWebIBActions : IUnknown\r
-{\r
- /*\r
+[
+ local,
+ object,
+ uuid(8F0E3A30-B924-44f8-990A-1AE61ED6C632),
+ pointer_default(unique)
+]
+interface IWebIBActions : IUnknown
+{
+ /*
- (IBAction)takeStringURLFrom:(id)sender;
*/
HRESULT takeStringURLFrom([in] IUnknown* sender);
*/
HRESULT makeTextSmaller([in] IUnknown* sender);
}
-\r
-/*\r
+
+/*
@interface WebView (WebViewCSS)
*/
-[\r
- local,\r
- object,\r
- uuid(ADF68A8C-336F-405c-A053-3D11A9D5B092),\r
- pointer_default(unique)\r
-]\r
-interface IWebViewCSS : IUnknown\r
+[
+ local,
+ object,
+ 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);
}
-/*\r
+/*
@interface WebView (WebViewEditing)
*/
-[\r
- local,\r
- object,\r
- uuid(07BDAC9A-19A1-4086-864D-BAD9E0F00D5C),\r
- pointer_default(unique)\r
-]\r
-interface IWebViewEditing : IUnknown\r
+[
+ local,
+ object,
+ uuid(07BDAC9A-19A1-4086-864D-BAD9E0F00D5C),
+ pointer_default(unique)
+]
+interface IWebViewEditing : IUnknown
{
/*
- (DOMRange *)editableDOMRangeForPoint:(NSPoint)point;
HRESULT styleDeclarationWithText([in] BSTR text, [out, retval] IDOMCSSStyleDeclaration** style);
}
-/*\r
+/*
@interface WebView (WebViewUndoableEditing)
*/
-[\r
- local,\r
- object,\r
- uuid(639E7121-13C8-4a12-BC18-6E1F3D68F3C3),\r
- pointer_default(unique)\r
-]\r
-interface IWebViewUndoableEditing : IUnknown\r
+[
+ local,
+ object,
+ uuid(639E7121-13C8-4a12-BC18-6E1F3D68F3C3),
+ pointer_default(unique)
+]
+interface IWebViewUndoableEditing : IUnknown
{
/*
- (void)replaceSelectionWithNode:(DOMNode *)node;
HRESULT applyStyle([in] IDOMCSSStyleDeclaration* style);
}
-/*\r
+/*
@interface WebView (WebViewEditingActions)
*/
-[\r
- local,\r
- object,\r
- uuid(7E066C42-8E81-4778-888D-D6CC93E27D4C),\r
- pointer_default(unique)\r
-]\r
-interface IWebViewEditingActions : IUnknown\r
+[
+ local,
+ object,
+ uuid(7E066C42-8E81-4778-888D-D6CC93E27D4C),
+ pointer_default(unique)
+]
+interface IWebViewEditingActions : IUnknown
{
/*
- (void)copy:(id)sender;
HRESULT stopSpeaking([in] IUnknown* sender);
}
-[\r
- local,\r
- object,\r
- uuid(74C30FE8-C2AB-4fec-A9B1-48153C8AC7D8),\r
- pointer_default(unique)\r
-]\r
-interface IWebViewExt : IUnknown\r
-{\r
- HRESULT viewWindow([out, retval] HWND* window);\r
-}\r
+[
+ local,
+ object,
+ uuid(74C30FE8-C2AB-4fec-A9B1-48153C8AC7D8),
+ pointer_default(unique)
+]
+interface IWebViewExt : IUnknown
+{
+ HRESULT viewWindow([out, retval] HWND* window);
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-cpp_quote("/*")\r
-cpp_quote(" * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.")\r
-cpp_quote(" *")\r
-cpp_quote(" * Redistribution and use in source and binary forms, with or without")\r
-cpp_quote(" * modification, are permitted provided that the following conditions")\r
-cpp_quote(" * are met:")\r
-cpp_quote(" * 1. Redistributions of source code must retain the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer.")\r
-cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")\r
-cpp_quote(" * notice, this list of conditions and the following disclaimer in the")\r
-cpp_quote(" * documentation and/or other materials provided with the distribution.")\r
-cpp_quote(" *")\r
-cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")\r
-cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")\r
-cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")\r
-cpp_quote(" * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR")\r
-cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")\r
-cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")\r
-cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")\r
-cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")\r
-cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")\r
-cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")\r
-cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")\r
-cpp_quote(" */")\r
-\r
-import "oaidl.idl";\r
-import "ocidl.idl";\r
-\r
-import "IWebView.idl";\r
-import "IWebUIDelegate.idl";\r
-import "IWebResourceLoadDelegate.idl";\r
-import "IWebDownload.idl";\r
-import "IWebFrameLoadDelegate.idl";\r
-import "IWebPolicyDelegate.idl";\r
-import "IWebFrame.idl";\r
-import "IWebBackForwardList.idl";\r
-import "IWebHistoryItem.idl";\r
-import "IWebScriptObject.idl";\r
-import "IWebPreferences.idl";\r
-import "IWebDocument.idl";\r
-import "IWebURLRequest.idl";\r
-import "IWebDataSource.idl";\r
-import "IWebURLResponse.idl";\r
-import "IWebURLAuthenticationChallenge.idl";\r
-import "IWebError.idl";\r
-import "IWebMutableURLRequest.idl";\r
-import "IWebArchive.idl";\r
-import "IWebResource.idl";\r
-import "IWebFrameView.idl";\r
-import "DOMHTML.idl";\r
-import "IWebImage.idl";\r
-import "IWebIconDatabase.idl";\r
-\r
-[\r
- uuid(D3217C21-2D11-450d-9389-06F0BD4D8AD9)\r
-]\r
-library WebKit\r
-{\r
- [uuid(ED2B13E0-66AB-4cc2-9B9F-5B8F85D9AD1D)]\r
- coclass WebView {\r
- interface IWebView;\r
- interface IWebIBActions;\r
- interface IWebViewCSS;\r
- interface IWebViewEditing;\r
- interface IWebViewUndoableEditing;\r
- interface IWebViewEditingActions;\r
- }\r
-\r
- [uuid(982FE6C0-60BB-4c12-A3D4-0381428CCCB1)]\r
- coclass WebIconDatabase {\r
- interface IWebIconDatabase;\r
- }\r
-\r
- [uuid(C77FFC11-EE19-4337-92F6-52BF16B0C1A7)]\r
- coclass WebMutableURLRequest {\r
- interface IWebMutableURLRequest;\r
- }\r
-}\r
+
+cpp_quote("/*")
+cpp_quote(" * Copyright (C) 2006 Apple Computer, 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(" */")
+
+import "oaidl.idl";
+import "ocidl.idl";
+
+import "IWebView.idl";
+import "IWebUIDelegate.idl";
+import "IWebResourceLoadDelegate.idl";
+import "IWebDownload.idl";
+import "IWebFrameLoadDelegate.idl";
+import "IWebPolicyDelegate.idl";
+import "IWebFrame.idl";
+import "IWebBackForwardList.idl";
+import "IWebHistoryItem.idl";
+import "IWebScriptObject.idl";
+import "IWebPreferences.idl";
+import "IWebDocument.idl";
+import "IWebURLRequest.idl";
+import "IWebDataSource.idl";
+import "IWebURLResponse.idl";
+import "IWebURLAuthenticationChallenge.idl";
+import "IWebError.idl";
+import "IWebMutableURLRequest.idl";
+import "IWebArchive.idl";
+import "IWebResource.idl";
+import "IWebFrameView.idl";
+import "DOMHTML.idl";
+import "IWebImage.idl";
+import "IWebIconDatabase.idl";
+
+[
+ uuid(D3217C21-2D11-450d-9389-06F0BD4D8AD9)
+]
+library WebKit
+{
+ [uuid(ED2B13E0-66AB-4cc2-9B9F-5B8F85D9AD1D)]
+ coclass WebView {
+ interface IWebView;
+ interface IWebIBActions;
+ interface IWebViewCSS;
+ interface IWebViewEditing;
+ interface IWebViewUndoableEditing;
+ interface IWebViewEditingActions;
+ }
+
+ [uuid(982FE6C0-60BB-4c12-A3D4-0381428CCCB1)]
+ coclass WebIconDatabase {
+ interface IWebIconDatabase;
+ }
+
+ [uuid(C77FFC11-EE19-4337-92F6-52BF16B0C1A7)]
+ coclass WebMutableURLRequest {
+ interface IWebMutableURLRequest;
+ }
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-#include "WebKitDLL.h"\r
-#include "WebBackForwardList.h"\r
-\r
-// WebBackForwardList ----------------------------------------------------------------\r
-\r
-WebBackForwardList::WebBackForwardList()\r
-: m_refCount(0)\r
-, m_position(-1)\r
-, m_maximumSize(100) // typically set by browser app\r
-{\r
- gClassCount++;\r
-}\r
-\r
-WebBackForwardList::~WebBackForwardList()\r
-{\r
+
+#include "WebKitDLL.h"
+#include "WebBackForwardList.h"
+
+// WebBackForwardList ----------------------------------------------------------------
+
+WebBackForwardList::WebBackForwardList()
+: m_refCount(0)
+, m_position(-1)
+, m_maximumSize(100) // typically set by browser app
+{
+ gClassCount++;
+}
+
+WebBackForwardList::~WebBackForwardList()
+{
Vector<WebHistoryItem*>::iterator end = m_list.end();
for (Vector<WebHistoryItem*>::iterator it = m_list.begin(); it != end; ++it)
(*it)->Release();
-\r
- gClassCount--;\r
-}\r
-\r
-WebBackForwardList* WebBackForwardList::createInstance()\r
-{\r
- WebBackForwardList* instance = new WebBackForwardList();\r
- instance->AddRef();\r
- return instance;\r
-}\r
-\r
-// IUnknown -------------------------------------------------------------------\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::QueryInterface(REFIID riid, void** ppvObject)\r
-{\r
- *ppvObject = 0;\r
- if (IsEqualGUID(riid, IID_IUnknown))\r
- *ppvObject = static_cast<IWebBackForwardList*>(this);\r
- else if (IsEqualGUID(riid, IID_IWebBackForwardList))\r
- *ppvObject = static_cast<IWebBackForwardList*>(this);\r
- else\r
- return E_NOINTERFACE;\r
-\r
- AddRef();\r
- return S_OK;\r
-}\r
-\r
-ULONG STDMETHODCALLTYPE WebBackForwardList::AddRef(void)\r
-{\r
- return ++m_refCount;\r
-}\r
-\r
-ULONG STDMETHODCALLTYPE WebBackForwardList::Release(void)\r
-{\r
- ULONG newRef = --m_refCount;\r
- if (!newRef)\r
- delete(this);\r
-\r
- return newRef;\r
-}\r
-\r
-// IWebBackForwardList ---------------------------------------------------------\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::addItem( \r
- /* [in] */ IWebHistoryItem* item)\r
-{\r
- if (!m_maximumSize)\r
- return S_FALSE;\r
-\r
- if (!item)\r
- return E_FAIL;\r
-\r
+
+ gClassCount--;
+}
+
+WebBackForwardList* WebBackForwardList::createInstance()
+{
+ WebBackForwardList* instance = new WebBackForwardList();
+ instance->AddRef();
+ return instance;
+}
+
+// IUnknown -------------------------------------------------------------------
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::QueryInterface(REFIID riid, void** ppvObject)
+{
+ *ppvObject = 0;
+ if (IsEqualGUID(riid, IID_IUnknown))
+ *ppvObject = static_cast<IWebBackForwardList*>(this);
+ else if (IsEqualGUID(riid, IID_IWebBackForwardList))
+ *ppvObject = static_cast<IWebBackForwardList*>(this);
+ else
+ return E_NOINTERFACE;
+
+ AddRef();
+ return S_OK;
+}
+
+ULONG STDMETHODCALLTYPE WebBackForwardList::AddRef(void)
+{
+ return ++m_refCount;
+}
+
+ULONG STDMETHODCALLTYPE WebBackForwardList::Release(void)
+{
+ ULONG newRef = --m_refCount;
+ if (!newRef)
+ delete(this);
+
+ return newRef;
+}
+
+// IWebBackForwardList ---------------------------------------------------------
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::addItem(
+ /* [in] */ IWebHistoryItem* item)
+{
+ if (!m_maximumSize)
+ return S_FALSE;
+
+ if (!item)
+ return E_FAIL;
+
// Toss anything in the forward list
unsigned int end = (unsigned int) m_list.size();
unsigned int clearItem = m_position + 1;
if (clearItem < end) {
Vector<WebHistoryItem*>::iterator it = &m_list.at(clearItem);
- for (unsigned int i=clearItem; i<end; i++) {\r
- (*it)->Release();\r
- m_list.remove(clearItem);\r
- }\r
+ for (unsigned int i=clearItem; i<end; i++) {
+ (*it)->Release();
+ m_list.remove(clearItem);
+ }
}
// Toss the first item if the list is getting too big, as long as we're not using it
m_list.remove(0);
m_position--;
}
-\r
- m_position++;\r
- m_list.append(static_cast<WebHistoryItem*>(item));\r
- item->AddRef();\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::goBack( void)\r
-{\r
- if (m_position < 1)\r
- return E_FAIL;\r
-\r
- m_position--;\r
-\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::goForward( void)\r
-{\r
- if (m_position >= (int)m_list.size()-1)\r
- return E_FAIL;\r
-\r
- m_position++;\r
-\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::goToItem( \r
- /* [in] */ IWebHistoryItem* item)\r
-{\r
+
+ m_position++;
+ m_list.append(static_cast<WebHistoryItem*>(item));
+ item->AddRef();
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::goBack( void)
+{
+ if (m_position < 1)
+ return E_FAIL;
+
+ m_position--;
+
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::goForward( void)
+{
+ if (m_position >= (int)m_list.size()-1)
+ return E_FAIL;
+
+ m_position++;
+
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::goToItem(
+ /* [in] */ IWebHistoryItem* item)
+{
Vector<WebHistoryItem*>::iterator end = m_list.end();
int newPosition = 0;
for (Vector<WebHistoryItem*>::iterator it = m_list.begin(); it != end; ++it, ++newPosition) {
return S_OK;
}
}
-\r
- return E_FAIL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::backItem( \r
- /* [retval][out] */ IWebHistoryItem** item)\r
-{\r
- *item = 0;\r
- if (m_position > 0) {\r
- *item = m_list[m_position-1];\r
- (*item)->AddRef();\r
- }\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::currentItem( \r
- /* [retval][out] */ IWebHistoryItem** item)\r
-{\r
- *item = 0;\r
- if (m_list.size() > 0) {\r
- *item = m_list[m_position];\r
- (*item)->AddRef();\r
- }\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::forwardItem( \r
- /* [retval][out] */ IWebHistoryItem** item)\r
-{\r
- *item = 0;\r
- if (m_position < (int)m_list.size()-1) {\r
- *item = m_list[m_position+1];\r
- (*item)->AddRef();\r
- }\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::backListWithLimit( \r
- /* [in] */ int /*limit*/,\r
- /* [out] */ int* /*listCount*/,\r
- /* [retval][out] */ IWebHistoryItem*** /*list*/)\r
-{\r
- DebugBreak();\r
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::forwardListWithLimit( \r
- /* [in] */ int /*limit*/,\r
- /* [out] */ int* /*listCount*/,\r
- /* [retval][out] */ IWebHistoryItem*** /*list*/)\r
-{\r
- DebugBreak();\r
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::capacity( \r
- /* [retval][out] */ int* result)\r
-{\r
- *result = (int)m_maximumSize;\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::setCapacity( \r
- /* [in] */ int size)\r
-{\r
- if (size < 0)\r
- return E_FAIL;\r
- \r
- m_maximumSize = size;\r
-\r
- if (size == 0)\r
- m_position = 0;\r
- else if (m_position >= size)\r
- m_position = size-1;\r
-\r
- unsigned int uSize = (unsigned int) size;\r
+
+ return E_FAIL;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::backItem(
+ /* [retval][out] */ IWebHistoryItem** item)
+{
+ *item = 0;
+ if (m_position > 0) {
+ *item = m_list[m_position-1];
+ (*item)->AddRef();
+ }
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::currentItem(
+ /* [retval][out] */ IWebHistoryItem** item)
+{
+ *item = 0;
+ if (m_list.size() > 0) {
+ *item = m_list[m_position];
+ (*item)->AddRef();
+ }
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::forwardItem(
+ /* [retval][out] */ IWebHistoryItem** item)
+{
+ *item = 0;
+ if (m_position < (int)m_list.size()-1) {
+ *item = m_list[m_position+1];
+ (*item)->AddRef();
+ }
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::backListWithLimit(
+ /* [in] */ int /*limit*/,
+ /* [out] */ int* /*listCount*/,
+ /* [retval][out] */ IWebHistoryItem*** /*list*/)
+{
+ DebugBreak();
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::forwardListWithLimit(
+ /* [in] */ int /*limit*/,
+ /* [out] */ int* /*listCount*/,
+ /* [retval][out] */ IWebHistoryItem*** /*list*/)
+{
+ DebugBreak();
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::capacity(
+ /* [retval][out] */ int* result)
+{
+ *result = (int)m_maximumSize;
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::setCapacity(
+ /* [in] */ int size)
+{
+ if (size < 0)
+ return E_FAIL;
+
+ m_maximumSize = size;
+
+ if (size == 0)
+ m_position = 0;
+ else if (m_position >= size)
+ m_position = size-1;
+
+ unsigned int uSize = (unsigned int) size;
unsigned int end = (unsigned int) m_list.size();
if (uSize < end) {
Vector<WebHistoryItem*>::iterator it = &m_list.at(size);
- for (unsigned int i=uSize; i<end; i++) {\r
- (*it)->Release();\r
- m_list.remove(size);\r
- }\r
- }\r
-\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::backListCount( \r
- /* [retval][out] */ int* count)\r
-{\r
- *count = m_position;\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::forwardListCount( \r
- /* [retval][out] */ int* sizecount)\r
-{\r
- int listSize = (int) m_list.size();\r
-\r
- *sizecount = (listSize > 0) ? (listSize-m_position-1) : 0;\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::containsItem( \r
- /* [in] */ IWebHistoryItem* item,\r
- /* [retval][out] */ BOOL* result)\r
-{\r
- *result = FALSE;\r
+ for (unsigned int i=uSize; i<end; i++) {
+ (*it)->Release();
+ m_list.remove(size);
+ }
+ }
+
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::backListCount(
+ /* [retval][out] */ int* count)
+{
+ *count = m_position;
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::forwardListCount(
+ /* [retval][out] */ int* sizecount)
+{
+ int listSize = (int) m_list.size();
+
+ *sizecount = (listSize > 0) ? (listSize-m_position-1) : 0;
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::containsItem(
+ /* [in] */ IWebHistoryItem* item,
+ /* [retval][out] */ BOOL* result)
+{
+ *result = FALSE;
Vector<WebHistoryItem*>::iterator end = m_list.end();
for (Vector<WebHistoryItem*>::iterator it = m_list.begin(); it != end; ++it) {
if (item == *it)
*result = TRUE;
}
return S_OK;
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::itemAtIndex( \r
- /* [in] */ int index,\r
- /* [retval][out] */ IWebHistoryItem** item)\r
-{\r
- *item = 0;\r
- if (index < 0 || index > (int)m_list.size())\r
- return E_FAIL;\r
-\r
- *item = m_list.at(index);\r
- (*item)->AddRef();\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::setPageCacheSize( \r
- /* [in] */ UINT /*size*/)\r
-{\r
- DebugBreak();\r
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebBackForwardList::pageCacheSize( \r
- /* [retval][out] */ UINT* /*size*/)\r
-{\r
- DebugBreak();\r
- return E_NOTIMPL;\r
-}\r
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::itemAtIndex(
+ /* [in] */ int index,
+ /* [retval][out] */ IWebHistoryItem** item)
+{
+ *item = 0;
+ if (index < 0 || index > (int)m_list.size())
+ return E_FAIL;
+
+ *item = m_list.at(index);
+ (*item)->AddRef();
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::setPageCacheSize(
+ /* [in] */ UINT /*size*/)
+{
+ DebugBreak();
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebBackForwardList::pageCacheSize(
+ /* [retval][out] */ UINT* /*size*/)
+{
+ DebugBreak();
+ return E_NOTIMPL;
+}
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-#ifndef WebBackForwardList_H\r
-#define WebBackForwardList_H\r
-\r
-#include "config.h"\r
-#include "IWebBackForwardList.h"\r
-\r
-#include "WebHistoryItem.h"\r
-\r
-#pragma warning(push, 0)\r
-#include "Vector.h"\r
-#pragma warning(pop)\r
-\r
-class WebBackForwardList : public IWebBackForwardList\r
-{\r
-public:\r
- static WebBackForwardList* createInstance();\r
-protected:\r
- WebBackForwardList();\r
- ~WebBackForwardList();\r
-\r
-public:\r
- // IUnknown\r
- virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject);\r
- virtual ULONG STDMETHODCALLTYPE AddRef(void);\r
- virtual ULONG STDMETHODCALLTYPE Release(void);\r
-\r
- // IWebBackForwardList\r
- virtual HRESULT STDMETHODCALLTYPE addItem( \r
- /* [in] */ IWebHistoryItem *item);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE goBack( void);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE goForward( void);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE goToItem( \r
- /* [in] */ IWebHistoryItem *item);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE backItem( \r
- /* [retval][out] */ IWebHistoryItem **item);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE currentItem( \r
- /* [retval][out] */ IWebHistoryItem **item);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE forwardItem( \r
- /* [retval][out] */ IWebHistoryItem **item);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE backListWithLimit( \r
- /* [in] */ int limit,\r
- /* [out] */ int *listCount,\r
- /* [retval][out] */ IWebHistoryItem ***list);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE forwardListWithLimit( \r
- /* [in] */ int limit,\r
- /* [out] */ int *listCount,\r
- /* [retval][out] */ IWebHistoryItem ***list);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE capacity( \r
- /* [retval][out] */ int *result);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE setCapacity( \r
- /* [in] */ int size);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE backListCount( \r
- /* [retval][out] */ int *count);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE forwardListCount( \r
- /* [retval][out] */ int *sizecount);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE containsItem( \r
- /* [in] */ IWebHistoryItem *item,\r
- /* [retval][out] */ BOOL *result);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE itemAtIndex( \r
- /* [in] */ int index,\r
- /* [retval][out] */ IWebHistoryItem **item);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE setPageCacheSize( \r
- /* [in] */ UINT size);\r
- \r
- virtual HRESULT STDMETHODCALLTYPE pageCacheSize( \r
- /* [retval][out] */ UINT *size);\r
-\r
- // WebBackForwardList\r
-\r
-protected:\r
- ULONG m_refCount;\r
+
+#ifndef WebBackForwardList_H
+#define WebBackForwardList_H
+
+#include "config.h"
+#include "IWebBackForwardList.h"
+
+#include "WebHistoryItem.h"
+
+#pragma warning(push, 0)
+#include "Vector.h"
+#pragma warning(pop)
+
+class WebBackForwardList : public IWebBackForwardList
+{
+public:
+ static WebBackForwardList* createInstance();
+protected:
+ WebBackForwardList();
+ ~WebBackForwardList();
+
+public:
+ // IUnknown
+ virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject);
+ virtual ULONG STDMETHODCALLTYPE AddRef(void);
+ virtual ULONG STDMETHODCALLTYPE Release(void);
+
+ // IWebBackForwardList
+ virtual HRESULT STDMETHODCALLTYPE addItem(
+ /* [in] */ IWebHistoryItem *item);
+
+ virtual HRESULT STDMETHODCALLTYPE goBack( void);
+
+ virtual HRESULT STDMETHODCALLTYPE goForward( void);
+
+ virtual HRESULT STDMETHODCALLTYPE goToItem(
+ /* [in] */ IWebHistoryItem *item);
+
+ virtual HRESULT STDMETHODCALLTYPE backItem(
+ /* [retval][out] */ IWebHistoryItem **item);
+
+ virtual HRESULT STDMETHODCALLTYPE currentItem(
+ /* [retval][out] */ IWebHistoryItem **item);
+
+ virtual HRESULT STDMETHODCALLTYPE forwardItem(
+ /* [retval][out] */ IWebHistoryItem **item);
+
+ virtual HRESULT STDMETHODCALLTYPE backListWithLimit(
+ /* [in] */ int limit,
+ /* [out] */ int *listCount,
+ /* [retval][out] */ IWebHistoryItem ***list);
+
+ virtual HRESULT STDMETHODCALLTYPE forwardListWithLimit(
+ /* [in] */ int limit,
+ /* [out] */ int *listCount,
+ /* [retval][out] */ IWebHistoryItem ***list);
+
+ virtual HRESULT STDMETHODCALLTYPE capacity(
+ /* [retval][out] */ int *result);
+
+ virtual HRESULT STDMETHODCALLTYPE setCapacity(
+ /* [in] */ int size);
+
+ virtual HRESULT STDMETHODCALLTYPE backListCount(
+ /* [retval][out] */ int *count);
+
+ virtual HRESULT STDMETHODCALLTYPE forwardListCount(
+ /* [retval][out] */ int *sizecount);
+
+ virtual HRESULT STDMETHODCALLTYPE containsItem(
+ /* [in] */ IWebHistoryItem *item,
+ /* [retval][out] */ BOOL *result);
+
+ virtual HRESULT STDMETHODCALLTYPE itemAtIndex(
+ /* [in] */ int index,
+ /* [retval][out] */ IWebHistoryItem **item);
+
+ virtual HRESULT STDMETHODCALLTYPE setPageCacheSize(
+ /* [in] */ UINT size);
+
+ virtual HRESULT STDMETHODCALLTYPE pageCacheSize(
+ /* [retval][out] */ UINT *size);
+
+ // WebBackForwardList
+
+protected:
+ ULONG m_refCount;
Vector<WebHistoryItem*> m_list;
int m_position;
unsigned int m_maximumSize;
-};\r
-\r
-#endif\r
+};
+
+#endif
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-\r
-#include "config.h"\r
-#include "WebKitDLL.h"\r
-#include "WebDataSource.h"\r
-#include "IWebMutableURLRequest.h"\r
-#include "WebFrame.h"\r
-\r
-#pragma warning( push, 0 )\r
-#include "KURL.h"\r
-#pragma warning(pop)\r
-\r
-// WebDataSource ----------------------------------------------------------------\r
-\r
-WebDataSource::WebDataSource()\r
-: m_refCount(0)\r
-, m_request(0)\r
-, m_initialRequest(0)\r
-, m_frame(0)\r
-{\r
- gClassCount++;\r
-}\r
-\r
-WebDataSource::~WebDataSource()\r
-{\r
- if (m_request) {\r
- m_request->Release();\r
- m_request = 0;\r
- }\r
-\r
- if (m_initialRequest)\r
- m_initialRequest->Release();\r
-\r
- gClassCount--;\r
-}\r
-\r
-WebDataSource* WebDataSource::createInstance(WebFrame* frame)\r
-{\r
- WebDataSource* instance = new WebDataSource();\r
- instance->m_frame = frame;\r
- instance->AddRef();\r
- return instance;\r
-}\r
-\r
-// IUnknown -------------------------------------------------------------------\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::QueryInterface(REFIID riid, void** ppvObject)\r
-{\r
- *ppvObject = 0;\r
- if (IsEqualGUID(riid, IID_IUnknown))\r
- *ppvObject = static_cast<IWebDataSource*>(this);\r
- else if (IsEqualGUID(riid, IID_IWebDataSource))\r
- *ppvObject = static_cast<IWebDataSource*>(this);\r
- else\r
- return E_NOINTERFACE;\r
-\r
- AddRef();\r
- return S_OK;\r
-}\r
-\r
-ULONG STDMETHODCALLTYPE WebDataSource::AddRef(void)\r
-{\r
- return ++m_refCount;\r
-}\r
-\r
-ULONG STDMETHODCALLTYPE WebDataSource::Release(void)\r
-{\r
- ULONG newRef = --m_refCount;\r
- if (!newRef)\r
- delete(this);\r
-\r
- return newRef;\r
-}\r
-\r
-// IWebDataSource --------------------------------------------------------------\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::initWithRequest( \r
- /* [in] */ IWebURLRequest* request)\r
-{\r
- HRESULT hr = S_OK;\r
-\r
- if (m_request)\r
- return E_FAIL;\r
-\r
- request->AddRef();\r
- m_request = static_cast<IWebMutableURLRequest*>(request);\r
-\r
- hr = m_frame->loadDataSource(this);\r
-\r
- if (FAILED(hr)) {\r
- request->Release();\r
- m_request = 0;\r
- }\r
-\r
- return hr;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::data( \r
- /* [retval][out] */ IStream** /*stream*/)\r
-{\r
+
+#include "config.h"
+#include "WebKitDLL.h"
+#include "WebDataSource.h"
+#include "IWebMutableURLRequest.h"
+#include "WebFrame.h"
+
+#pragma warning( push, 0 )
+#include "KURL.h"
+#pragma warning(pop)
+
+// WebDataSource ----------------------------------------------------------------
+
+WebDataSource::WebDataSource()
+: m_refCount(0)
+, m_request(0)
+, m_initialRequest(0)
+, m_frame(0)
+{
+ gClassCount++;
+}
+
+WebDataSource::~WebDataSource()
+{
+ if (m_request) {
+ m_request->Release();
+ m_request = 0;
+ }
+
+ if (m_initialRequest)
+ m_initialRequest->Release();
+
+ gClassCount--;
+}
+
+WebDataSource* WebDataSource::createInstance(WebFrame* frame)
+{
+ WebDataSource* instance = new WebDataSource();
+ instance->m_frame = frame;
+ instance->AddRef();
+ return instance;
+}
+
+// IUnknown -------------------------------------------------------------------
+
+HRESULT STDMETHODCALLTYPE WebDataSource::QueryInterface(REFIID riid, void** ppvObject)
+{
+ *ppvObject = 0;
+ if (IsEqualGUID(riid, IID_IUnknown))
+ *ppvObject = static_cast<IWebDataSource*>(this);
+ else if (IsEqualGUID(riid, IID_IWebDataSource))
+ *ppvObject = static_cast<IWebDataSource*>(this);
+ else
+ return E_NOINTERFACE;
+
+ AddRef();
+ return S_OK;
+}
+
+ULONG STDMETHODCALLTYPE WebDataSource::AddRef(void)
+{
+ return ++m_refCount;
+}
+
+ULONG STDMETHODCALLTYPE WebDataSource::Release(void)
+{
+ ULONG newRef = --m_refCount;
+ if (!newRef)
+ delete(this);
+
+ return newRef;
+}
+
+// IWebDataSource --------------------------------------------------------------
+
+HRESULT STDMETHODCALLTYPE WebDataSource::initWithRequest(
+ /* [in] */ IWebURLRequest* request)
+{
+ HRESULT hr = S_OK;
+
+ if (m_request)
+ return E_FAIL;
+
+ request->AddRef();
+ m_request = static_cast<IWebMutableURLRequest*>(request);
+
+ hr = m_frame->loadDataSource(this);
+
+ if (FAILED(hr)) {
+ request->Release();
+ m_request = 0;
+ }
+
+ return hr;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::data(
+ /* [retval][out] */ IStream** /*stream*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::representation( \r
- /* [retval][out] */ IWebDocumentRepresentation** /*rep*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::representation(
+ /* [retval][out] */ IWebDocumentRepresentation** /*rep*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::webFrame( \r
- /* [retval][out] */ IWebFrame** frame)\r
-{\r
- *frame = m_frame;\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::initialRequest( \r
- /* [retval][out] */ IWebURLRequest** request)\r
-{\r
- if (m_initialRequest)\r
- m_initialRequest->AddRef();\r
- *request = m_initialRequest;\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::request( \r
- /* [retval][out] */ IWebMutableURLRequest** request)\r
-{\r
- if (m_request)\r
- m_request->AddRef();\r
- *request = m_request;\r
- return S_OK;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::response( \r
- /* [retval][out] */ IWebURLResponse** /*response*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::webFrame(
+ /* [retval][out] */ IWebFrame** frame)
+{
+ *frame = m_frame;
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::initialRequest(
+ /* [retval][out] */ IWebURLRequest** request)
+{
+ if (m_initialRequest)
+ m_initialRequest->AddRef();
+ *request = m_initialRequest;
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::request(
+ /* [retval][out] */ IWebMutableURLRequest** request)
+{
+ if (m_request)
+ m_request->AddRef();
+ *request = m_request;
+ return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::response(
+ /* [retval][out] */ IWebURLResponse** /*response*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::textEncodingName( \r
- /* [retval][out] */ BSTR* /*name*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::textEncodingName(
+ /* [retval][out] */ BSTR* /*name*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::isLoading( \r
- /* [retval][out] */ BOOL* /*loading*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::isLoading(
+ /* [retval][out] */ BOOL* /*loading*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::pageTitle( \r
- /* [retval][out] */ BSTR* /*title*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::pageTitle(
+ /* [retval][out] */ BSTR* /*title*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::unreachableURL( \r
- /* [retval][out] */ BSTR* /*url*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::unreachableURL(
+ /* [retval][out] */ BSTR* /*url*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::webArchive( \r
- /* [retval][out] */ IWebArchive* /*archive*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::webArchive(
+ /* [retval][out] */ IWebArchive* /*archive*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::mainResource( \r
- /* [retval][out] */ IWebResource* /*resource*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::mainResource(
+ /* [retval][out] */ IWebResource* /*resource*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::subresources( \r
- /* [out] */ int* /*resourceCount*/,\r
- /* [retval][out] */ IWebResource*** /*resources*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::subresources(
+ /* [out] */ int* /*resourceCount*/,
+ /* [retval][out] */ IWebResource*** /*resources*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::subresourceForURL( \r
- /* [in] */ BSTR /*url*/,\r
- /* [retval][out] */ IWebResource* /*resource*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::subresourceForURL(
+ /* [in] */ BSTR /*url*/,
+ /* [retval][out] */ IWebResource* /*resource*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
-\r
-HRESULT STDMETHODCALLTYPE WebDataSource::addSubresource( \r
- /* [in] */ IWebResource* /*subresource*/)\r
-{\r
+ return E_NOTIMPL;
+}
+
+HRESULT STDMETHODCALLTYPE WebDataSource::addSubresource(
+ /* [in] */ IWebResource* /*subresource*/)
+{
DebugBreak();
- return E_NOTIMPL;\r
-}\r
+ return E_NOTIMPL;
+}