Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,163 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
namespace Mono.Mozilla.DOM
{
internal enum DocumentEncoderFlags: uint
{
/**
* Output only the selection (as opposed to the whole document).
*/
OutputSelectionOnly = (1 << 0),
/** Plaintext output: Convert html to plaintext that looks like the html.
* Implies wrap (except inside <pre>), since html wraps.
* HTML output: always do prettyprinting, ignoring existing formatting.
* (Probably not well tested for HTML output.)
*/
OutputFormatted = (1 << 1),
/** Don't do prettyprinting of HTML. Don't do any wrapping that's not in
* the existing HTML source. This option overrides OutputFormatted if both
* are set.
* @note This option does not affect entity conversion.
*/
OutputRaw = (1 << 2),
/**
* Do not print html head tags.
*/
OutputBodyOnly = (1 << 3),
/**
* Wrap even if we're not doing formatted output (e.g. for text fields)
* XXXbz this doesn't seem to be used by all serializers... document? How
* does this interact with
* OutputFormatted/OutputRaw/OutputWrap/OutputFormatFlowed?
*/
OutputPreformatted = (1 << 4),
/**
* Output as though the content is preformatted
* (e.g. maybe it's wrapped in a MOZ_PRE or MOZ_PRE_WRAP style tag)
* XXXbz this doesn't seem to be used by all serializers... document? How
* does this interact with
* OutputFormatted/OutputRaw/OutputPreformatted/OutputFormatFlowed?
*/
OutputWrap = (1 << 5),
/**
* Output for format flowed (RFC 2646). This is used when converting
* to text for mail sending. This differs just slightly
* but in an important way from normal formatted, and that is that
* lines are space stuffed. This can't (correctly) be done later.
* XXXbz this doesn't seem to be used by all serializers... document? How
* does this interact with
* OutputFormatted/OutputRaw/OutputPreformatted/OutputWrap?
*/
OutputFormatFlowed = (1 << 6),
/**
* Convert links, image src, and script src to absolute URLs when possible
*/
OutputAbsoluteLinks = (1 << 7),
/**
* Attempt to encode entities standardized at W3C (HTML, MathML, etc).
* This is a catch-all flag for documents with mixed contents. Beware of
* interoperability issues. See below for other flags which might likely
* do what you want.
*/
OutputEncodeW3CEntities = (1 << 8),
/**
* LineBreak processing: if this flag is set than CR line breaks will
* be written. If neither this nor OutputLFLineBreak is set, then we
* will use platform line breaks. The combination of the two flags will
* cause CRLF line breaks to be written.
*/
OutputCRLineBreak = (1 << 9),
/**
* LineBreak processing: if this flag is set than LF line breaks will
* be written. If neither this nor OutputCRLineBreak is set, then we
* will use platform line breaks. The combination of the two flags will
* cause CRLF line breaks to be written.
*/
OutputLFLineBreak = (1 << 10),
/**
* Output the content of noscript elements (only for serializing
* to plaintext).
*/
OutputNoScriptContent = (1 << 11),
/**
* Output the content of noframes elements (only for serializing
* to plaintext).
*/
OutputNoFramesContent = (1 << 12),
/**
* Don't allow any formatting nodes (e.g. <br>, <b>) inside a <pre>.
* This is used primarily by mail.
*/
OutputNoFormattingInPre = (1 << 13),
/**
* Encode entities when outputting to a string.
* E.g. If set, we'll output &nbsp; if clear, we'll output 0xa0.
* The basic set is just &nbsp; &amp; &lt; &gt; &quot; for interoperability
* with older products that don't support &alpha; and friends.
*/
OutputEncodeBasicEntities = (1 << 14),
/**
* Encode entities when outputting to a string.
* The Latin1 entity set additionally includes 8bit accented letters
* between 128 and 255.
*/
OutputEncodeLatin1Entities = (1 << 15),
/**
* Encode entities when outputting to a string.
* The HTML entity set additionally includes accented letters, greek
* letters, and other special markup symbols as defined in HTML4.
*/
OutputEncodeHTMLEntities = (1 << 16),
/**
* Normally &nbsp; is replaced with a space character when
* encoding data as plain text, set this flag if that's
* not desired.
*/
OutputPersistNBSP = (1 << 17),
}
}

View File

@@ -0,0 +1,44 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
using System;
namespace Mono.Mozilla.DOM
{
internal enum NodeType : ushort
{
Element = 1,
Attribute = 2,
Text = 3,
CDataSection = 4,
EntityReference = 5,
Entity = 6,
ProcessingInstruction = 7,
Comment = 8,
Document = 9,
DocumentType = 10,
DocumentFragment = 11,
Notation = 12
}
}

View File

@@ -0,0 +1,37 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
using System;
namespace Mono.Mozilla
{
internal enum StopOption : uint
{
Network = 1,
Content = 2,
All = 3
}
}

View File

@@ -0,0 +1,39 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
namespace Mono.Mozilla
{
internal delegate void nsIReadSegmentFunDelegate (
[MarshalAs (UnmanagedType.Interface)] nsIOutputStream aInStream,
IntPtr aClosure,
string aFromSegment,
UInt32 aCount,
out UInt32 aWriteCount
);
}

View File

@@ -0,0 +1,36 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
namespace Mono.Mozilla
{
internal delegate void nsITimerCallbackDelegate (
[MarshalAs (UnmanagedType.Interface)] nsITimer timer,
IntPtr closure
);
}

View File

@@ -0,0 +1,42 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
namespace Mono.Mozilla
{
internal delegate void nsIWriteSegmentFunDelegate (
[MarshalAs (UnmanagedType.Interface)] nsIInputStream aInStream,
IntPtr aClosure,
string aFromSegment,
UInt32 aToOffset,
UInt32 aCount,
out UInt32 aWriteCount
);
}

View File

@@ -0,0 +1,254 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("71a3b4e7-e83d-45cf-a20e-9ce292bcf19f")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIAccessNode {
#region nsIAccessNode
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getDOMNode ([MarshalAs (UnmanagedType.Interface) ] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNumChildren (out int ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getChildNodeAt ( int childNum,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getParentNode ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getFirstChildNode ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getLastChildNode ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getPreviousSiblingNode ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNextSiblingNode ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getAccessibleDocument ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessibleDocument ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getInnerHTML ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int scrollTo ( uint aScrollType);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int scrollToPoint ( uint aCoordinateType,
int aX,
int aY);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getOwnerWindow ( IntPtr ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getUniqueID ( IntPtr ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getComputedStyleValue ( /*DOMString*/ HandleRef pseudoElt,
/*DOMString*/ HandleRef propertyName,
/*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getComputedStyleCSSValue ( /*DOMString*/ HandleRef pseudoElt,
/*DOMString*/ HandleRef propertyName,
[MarshalAs (UnmanagedType.Interface) ] out nsIDOMCSSPrimitiveValue ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getLanguage ( /*DOMString*/ HandleRef ret);
#endregion
}
internal class nsAccessNode {
public static nsIAccessNode GetProxy (Mono.WebBrowser.IWebBrowser control, nsIAccessNode obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIAccessNode).GUID, obj);
return o as nsIAccessNode;
}
}
}
#if example
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
internal class AccessNode : nsIAccessNode {
#region nsIAccessNode
int nsIAccessNode.getDOMNode ([MarshalAs (UnmanagedType.Interface) ] out nsIDOMNode ret)
{
return null;
}
int nsIAccessNode.getNumChildren (out int ret)
{
return 0;
}
int nsIAccessNode.getChildNodeAt ( int childNum,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret)
{
return ;
}
int nsIAccessNode.getParentNode ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret)
{
return null;
}
int nsIAccessNode.getFirstChildNode ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret)
{
return null;
}
int nsIAccessNode.getLastChildNode ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret)
{
return null;
}
int nsIAccessNode.getPreviousSiblingNode ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret)
{
return null;
}
int nsIAccessNode.getNextSiblingNode ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret)
{
return null;
}
int nsIAccessNode.getAccessibleDocument ([MarshalAs (UnmanagedType.Interface) ] out nsIAccessibleDocument ret)
{
return null;
}
int nsIAccessNode.getInnerHTML ( /*DOMString*/ HandleRef ret)
{
return null;
}
int nsIAccessNode.scrollTo ( uint aScrollType)
{
return ;
}
int nsIAccessNode.scrollToPoint ( uint aCoordinateType,
int aX,
int aY)
{
return ;
}
int nsIAccessNode.getOwnerWindow ( IntPtr ret)
{
return IntPtr.Zero;
}
int nsIAccessNode.getUniqueID ( IntPtr ret)
{
return IntPtr.Zero;
}
int nsIAccessNode.getComputedStyleValue ( /*DOMString*/ HandleRef pseudoElt,
/*DOMString*/ HandleRef propertyName,
/*DOMString*/ HandleRef ret)
{
return ;
}
int nsIAccessNode.getComputedStyleCSSValue ( /*DOMString*/ HandleRef pseudoElt,
/*DOMString*/ HandleRef propertyName,
[MarshalAs (UnmanagedType.Interface) ] out nsIDOMCSSPrimitiveValue ret)
{
return ;
}
int nsIAccessNode.getLanguage ( /*DOMString*/ HandleRef ret)
{
return null;
}
#endregion
}
#endif

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,176 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("b7ae45bd-21e9-4ed5-a67e-86448b25d56b")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIAccessibleDocument {
#region nsIAccessibleDocument
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getURL ( /*AString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getTitle ( /*AString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getMimeType ( /*AString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getDocType ( /*AString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getDocument ([MarshalAs (UnmanagedType.Interface) ] out nsIDOMDocument ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getWindow ([MarshalAs (UnmanagedType.Interface) ] out nsIDOMWindow ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNameSpaceURIForID ( short nameSpaceID,
/*AString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getWindowHandle ( IntPtr ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getCachedAccessNode ( IntPtr aUniqueID,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getAccessibleInParentChain ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aDOMNode,
bool aCanCreate,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret);
#endregion
}
internal class nsAccessibleDocument {
public static nsIAccessibleDocument GetProxy (Mono.WebBrowser.IWebBrowser control, nsIAccessibleDocument obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIAccessibleDocument).GUID, obj);
return o as nsIAccessibleDocument;
}
}
}
#if example
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
internal class AccessibleDocument : nsIAccessibleDocument {
#region nsIAccessibleDocument
int nsIAccessibleDocument.getURL ( /*AString*/ HandleRef ret)
{
return null;
}
int nsIAccessibleDocument.getTitle ( /*AString*/ HandleRef ret)
{
return null;
}
int nsIAccessibleDocument.getMimeType ( /*AString*/ HandleRef ret)
{
return null;
}
int nsIAccessibleDocument.getDocType ( /*AString*/ HandleRef ret)
{
return null;
}
int nsIAccessibleDocument.getDocument ([MarshalAs (UnmanagedType.Interface) ] out nsIDOMDocument ret)
{
return null;
}
int nsIAccessibleDocument.getWindow ([MarshalAs (UnmanagedType.Interface) ] out nsIDOMWindow ret)
{
return null;
}
int nsIAccessibleDocument.getNameSpaceURIForID ( short nameSpaceID,
/*AString*/ HandleRef ret)
{
return ;
}
int nsIAccessibleDocument.getWindowHandle ( IntPtr ret)
{
return IntPtr.Zero;
}
int nsIAccessibleDocument.getCachedAccessNode ( IntPtr aUniqueID,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret)
{
return ;
}
int nsIAccessibleDocument.getAccessibleInParentChain ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aDOMNode,
bool aCanCreate,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret)
{
return ;
}
#endregion
}
#endif

View File

@@ -0,0 +1,109 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("f42a1589-70ab-4704-877f-4a9162bbe188")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIAccessibleRelation {
#region nsIAccessibleRelation
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getRelationType (out uint ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getTargetsCount (out uint ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getTarget ( uint index,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getTargets ([MarshalAs (UnmanagedType.Interface) ] out nsIArray ret);
#endregion
}
internal class nsAccessibleRelation {
public static nsIAccessibleRelation GetProxy (Mono.WebBrowser.IWebBrowser control, nsIAccessibleRelation obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIAccessibleRelation).GUID, obj);
return o as nsIAccessibleRelation;
}
}
}
#if example
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
internal class AccessibleRelation : nsIAccessibleRelation {
#region nsIAccessibleRelation
int nsIAccessibleRelation.getRelationType (out uint ret)
{
return 0;
}
int nsIAccessibleRelation.getTargetsCount (out uint ret)
{
return 0;
}
int nsIAccessibleRelation.getTarget ( uint index,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret)
{
return ;
}
int nsIAccessibleRelation.getTargets ([MarshalAs (UnmanagedType.Interface) ] out nsIArray ret)
{
return ;
}
#endregion
}
#endif

View File

@@ -0,0 +1,233 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("244e4c67-a1d3-44f2-9cab-cdaa31b68046")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIAccessibleRetrieval {
#region nsIAccessibleRetrieval
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getAccessibleFor ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getAttachedAccessibleFor ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getRelevantContentNodeFor ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getAccessibleInWindow ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] nsIDOMWindow aDOMWin,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getAccessibleInWeakShell ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] nsIWeakReference aPresShell,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getAccessibleInShell ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
/*nsIPresShell*/ IntPtr aPresShell,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getCachedAccessNode ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] nsIWeakReference aShell,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getCachedAccessible ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] nsIWeakReference aShell,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getStringRole ( uint aRole,
/*AString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getStringStates ( uint aStates,
uint aExtraStates,
[MarshalAs (UnmanagedType.Interface) ] out nsIDOMDOMStringList ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getStringEventType ( uint aEventType,
/*AString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getStringRelationType ( uint aRelationType,
/*AString*/ HandleRef ret);
#endregion
}
internal class nsAccessibleRetrieval {
public static nsIAccessibleRetrieval GetProxy (Mono.WebBrowser.IWebBrowser control, nsIAccessibleRetrieval obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIAccessibleRetrieval).GUID, obj);
return o as nsIAccessibleRetrieval;
}
}
}
#if example
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
internal class AccessibleRetrieval : nsIAccessibleRetrieval {
#region nsIAccessibleRetrieval
int nsIAccessibleRetrieval.getAccessibleFor ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret)
{
return ;
}
int nsIAccessibleRetrieval.getAttachedAccessibleFor ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret)
{
return ;
}
int nsIAccessibleRetrieval.getRelevantContentNodeFor ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] out nsIDOMNode ret)
{
return ;
}
int nsIAccessibleRetrieval.getAccessibleInWindow ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] nsIDOMWindow aDOMWin,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret)
{
return ;
}
int nsIAccessibleRetrieval.getAccessibleInWeakShell ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] nsIWeakReference aPresShell,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret)
{
return ;
}
int nsIAccessibleRetrieval.getAccessibleInShell ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
/*nsIPresShell*/ IntPtr aPresShell,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret)
{
return ;
}
int nsIAccessibleRetrieval.getCachedAccessNode ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] nsIWeakReference aShell,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessNode ret)
{
return ;
}
int nsIAccessibleRetrieval.getCachedAccessible ([MarshalAs (UnmanagedType.Interface) ] nsIDOMNode aNode,
[MarshalAs (UnmanagedType.Interface) ] nsIWeakReference aShell,
[MarshalAs (UnmanagedType.Interface) ] out nsIAccessible ret)
{
return ;
}
int nsIAccessibleRetrieval.getStringRole ( uint aRole,
/*AString*/ HandleRef ret)
{
return ;
}
int nsIAccessibleRetrieval.getStringStates ( uint aStates,
uint aExtraStates,
[MarshalAs (UnmanagedType.Interface) ] out nsIDOMDOMStringList ret)
{
return ;
}
int nsIAccessibleRetrieval.getStringEventType ( uint aEventType,
/*AString*/ HandleRef ret)
{
return ;
}
int nsIAccessibleRetrieval.getStringRelationType ( uint aRelationType,
/*AString*/ HandleRef ret)
{
return ;
}
#endregion
}
#endif

View File

@@ -0,0 +1,116 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("114744d9-c369-456e-b55a-52fe52880d2d")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIArray {
#region nsIArray
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getLength (out uint ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int queryElementAt ( uint index,
[MarshalAs (UnmanagedType.LPStruct) ] Guid uuid,
out IntPtr result);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int indexOf ( uint startIndex,
[MarshalAs (UnmanagedType.Interface) ] IntPtr element,
out uint ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int enumerate ([MarshalAs (UnmanagedType.Interface) ] out nsISimpleEnumerator ret);
#endregion
}
internal class nsArray {
public static nsIArray GetProxy (Mono.WebBrowser.IWebBrowser control, nsIArray obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIArray).GUID, obj);
return o as nsIArray;
}
}
}
#if example
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
internal class Array : nsIArray {
#region nsIArray
int nsIArray.getLength (out uint ret)
{
return 0;
}
int nsIArray.queryElementAt ( uint index,
[MarshalAs (UnmanagedType.LPStruct) ] Guid uuid,
out IntPtr result)
{
return ;
}
int nsIArray.indexOf ( uint startIndex,
[MarshalAs (UnmanagedType.Interface) ] IntPtr element,
out uint ret)
{
return ;
}
int nsIArray.enumerate ([MarshalAs (UnmanagedType.Interface) ] out nsISimpleEnumerator ret)
{
return ;
}
#endregion
}
#endif

View File

@@ -0,0 +1,57 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("d94ac0a0-bb18-46b8-844e-84159064b0bd")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsICancelable {
#region nsICancelable
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int cancel (
int aReason);
#endregion
}
internal class nsCancelable {
public static nsICancelable GetProxy (Mono.WebBrowser.IWebBrowser control, nsICancelable obj)
{
object o = Base.GetProxyForObject (control, typeof(nsICancelable).GUID, obj);
return o as nsICancelable;
}
}
}

View File

@@ -0,0 +1,161 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("c63a055a-a676-4e71-bf3c-6cfa11082018")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIChannel : nsIRequest {
#region nsIRequest
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getName ( /*AUTF8String*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int isPending ( out bool ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getStatus ( out int ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int cancel (
int aStatus);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int suspend ();
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int resume ();
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getLoadGroup ([MarshalAs (UnmanagedType.Interface)] out nsILoadGroup ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setLoadGroup ([MarshalAs (UnmanagedType.Interface)] nsILoadGroup value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getLoadFlags ( out ulong ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setLoadFlags ( ulong value);
#endregion
#region nsIChannel
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getOriginalURI ([MarshalAs (UnmanagedType.Interface)] out nsIURI ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setOriginalURI ([MarshalAs (UnmanagedType.Interface)] nsIURI value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getURI ([MarshalAs (UnmanagedType.Interface)] out nsIURI ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getOwner ( out IntPtr ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setOwner ( IntPtr value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNotificationCallbacks ([MarshalAs (UnmanagedType.Interface)] out nsIInterfaceRequestor ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setNotificationCallbacks ([MarshalAs (UnmanagedType.Interface)] nsIInterfaceRequestor value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getSecurityInfo ( out IntPtr ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getContentType ( /*ACString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setContentType ( /*ACString*/ HandleRef value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getContentCharset ( /*ACString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setContentCharset ( /*ACString*/ HandleRef value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getContentLength ( out int ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setContentLength ( int value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int open ([MarshalAs (UnmanagedType.Interface)] out nsIInputStream ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int asyncOpen (
[MarshalAs (UnmanagedType.Interface)] nsIStreamListener aListener,
IntPtr aContext);
#endregion
}
internal class nsChannel {
public static nsIChannel GetProxy (Mono.WebBrowser.IWebBrowser control, nsIChannel obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIChannel).GUID, obj);
return o as nsIChannel;
}
}
}

View File

@@ -0,0 +1,87 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("986c11d0-f340-11d4-9075-0010a4e73d9a")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIClassInfo {
#region nsIClassInfo
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getInterfaces (
out UInt32 count,
out IntPtr array);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getHelperForLanguage (
UInt32 language,[MarshalAs (UnmanagedType.Interface)] out IntPtr ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getContractID ( ref IntPtr ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getClassDescription ( ref IntPtr ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getClassID ([MarshalAs (UnmanagedType.LPStruct)] out Guid ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getImplementationLanguage ( out UInt32 ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getFlags ( out UInt32 ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getClassIDNoAlloc ([MarshalAs (UnmanagedType.LPStruct)] out Guid ret);
#endregion
}
internal class nsClassInfo {
public static nsIClassInfo GetProxy (Mono.WebBrowser.IWebBrowser control, nsIClassInfo obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIClassInfo).GUID, obj);
return o as nsIClassInfo;
}
}
}

View File

@@ -0,0 +1,56 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("F51EBADE-8B1A-11D3-AAE7-0010830123B4")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIDOMAbstractView {
#region nsIDOMAbstractView
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getDocument ([MarshalAs (UnmanagedType.Interface)] out nsIDOMDocumentView ret);
#endregion
}
internal class nsDOMAbstractView {
public static nsIDOMAbstractView GetProxy (Mono.WebBrowser.IWebBrowser control, nsIDOMAbstractView obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIDOMAbstractView).GUID, obj);
return o as nsIDOMAbstractView;
}
}
}

View File

@@ -0,0 +1,183 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("a6cf9070-15b3-11d2-932e-00805f8add32")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIDOMAttr : nsIDOMNode {
#region nsIDOMNode
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNodeName ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNodeValue ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setNodeValue ( /*DOMString*/ HandleRef value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNodeType ( out ushort ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getParentNode ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getChildNodes ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNodeList ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getFirstChild ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getLastChild ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getPreviousSibling ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNextSibling ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getAttributes ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNamedNodeMap ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getOwnerDocument ([MarshalAs (UnmanagedType.Interface)] out nsIDOMDocument ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int insertBefore (
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode newChild,
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode refChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int replaceChild (
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode newChild,
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode oldChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int removeChild (
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode oldChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int appendChild (
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode newChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int hasChildNodes ( out bool ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int cloneNode (
bool deep,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int normalize ();
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int isSupported (
/*DOMString*/ HandleRef feature,
/*DOMString*/ HandleRef version, out bool ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNamespaceURI ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getPrefix ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setPrefix ( /*DOMString*/ HandleRef value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getLocalName ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int hasAttributes ( out bool ret);
#endregion
#region nsIDOMAttr
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getName ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getSpecified ( out bool ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getValue ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setValue ( /*DOMString*/ HandleRef value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getOwnerElement ([MarshalAs (UnmanagedType.Interface)] out nsIDOMElement ret);
#endregion
}
internal class nsDOMAttr {
public static nsIDOMAttr GetProxy (Mono.WebBrowser.IWebBrowser control, nsIDOMAttr obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIDOMAttr).GUID, obj);
return o as nsIDOMAttr;
}
}
}

View File

@@ -0,0 +1,60 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("9eb2c150-1d56-11d3-8221-0060083a0bcf")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIDOMBarProp {
#region nsIDOMBarProp
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getVisible ( out bool ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setVisible ( bool value);
#endregion
}
internal class nsDOMBarProp {
public static nsIDOMBarProp GetProxy (Mono.WebBrowser.IWebBrowser control, nsIDOMBarProp obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIDOMBarProp).GUID, obj);
return o as nsIDOMBarProp;
}
}
}

View File

@@ -0,0 +1,216 @@
// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
// EDITING IS PROBABLY UNWISE
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007, 2008 Novell, Inc.
//
// Authors:
// Andreia Gaita (avidigal@novell.com)
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
namespace Mono.Mozilla {
[Guid ("a6cf9071-15b3-11d2-932e-00805f8add32")]
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[ComImport ()]
internal interface nsIDOMCDATASection : nsIDOMText {
#region nsIDOMNode
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNodeName ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNodeValue ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setNodeValue ( /*DOMString*/ HandleRef value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNodeType ( out ushort ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getParentNode ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getChildNodes ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNodeList ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getFirstChild ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getLastChild ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getPreviousSibling ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNextSibling ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getAttributes ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNamedNodeMap ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getOwnerDocument ([MarshalAs (UnmanagedType.Interface)] out nsIDOMDocument ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int insertBefore (
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode newChild,
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode refChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int replaceChild (
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode newChild,
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode oldChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int removeChild (
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode oldChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int appendChild (
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode newChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int hasChildNodes ( out bool ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int cloneNode (
bool deep,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int normalize ();
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int isSupported (
/*DOMString*/ HandleRef feature,
/*DOMString*/ HandleRef version, out bool ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getNamespaceURI ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getPrefix ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setPrefix ( /*DOMString*/ HandleRef value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getLocalName ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int hasAttributes ( out bool ret);
#endregion
#region nsIDOMCharacterData
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getData ( /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int setData ( /*DOMString*/ HandleRef value);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int getLength ( out uint ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int substringData (
uint offset,
uint count, /*DOMString*/ HandleRef ret);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int appendData (
/*DOMString*/ HandleRef arg);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int insertData (
uint offset,
/*DOMString*/ HandleRef arg);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int deleteData (
uint offset,
uint count);
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int replaceData (
uint offset,
uint count,
/*DOMString*/ HandleRef arg);
#endregion
#region nsIDOMText
[PreserveSigAttribute]
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
int splitText (
uint offset,[MarshalAs (UnmanagedType.Interface)] out nsIDOMText ret);
#endregion
#region nsIDOMCDATASection
#endregion
}
internal class nsDOMCDATASection {
public static nsIDOMCDATASection GetProxy (Mono.WebBrowser.IWebBrowser control, nsIDOMCDATASection obj)
{
object o = Base.GetProxyForObject (control, typeof(nsIDOMCDATASection).GUID, obj);
return o as nsIDOMCDATASection;
}
}
}

Some files were not shown because too many files have changed in this diff Show More