示例#1
0
		public NodeList(WebBrowser control, nsIDOMNodeList nodeList) : base (control)
		{
			if (control.platform != control.enginePlatform)
				unmanagedNodes = nsDOMNodeList.GetProxy (control, nodeList);
			else
				unmanagedNodes = nodeList;
		}
示例#2
0
		protected void Clear () 
		{
			if (nodes != null) {
				for (int i = 0; i < nodeCount; i++) {
					nodes[i] = null;
				}
				nodeCount = 0;
				unmanagedNodes = null;
				nodes = null;
			}
		}
示例#3
0
 public NodeList(WebBrowser control, nsIDOMNodeList nodeList) : base(control)
 {
     if (control.platform != control.enginePlatform)
     {
         unmanagedNodes = nsDOMNodeList.GetProxy(control, nodeList);
     }
     else
     {
         unmanagedNodes = nodeList;
     }
 }
示例#4
0
 protected void Clear()
 {
     if (nodes != null)
     {
         for (int i = 0; i < nodeCount; i++)
         {
             nodes[i] = null;
         }
         nodeCount      = 0;
         unmanagedNodes = null;
         nodes          = null;
     }
 }
示例#5
0
        /// <summary>
        /// Returns a set of elements with the given class name. When called on the document object, the complete document is searched, including the root node.
        /// </summary>
        /// <param name="classes"></param>
        /// <returns></returns>
        public GeckoNodeCollection GetElementsByClassName(string classes)
        {
            nsIDOMNodeList list = nsString.Pass <nsIDOMNodeList>(_domDocument.GetElementsByClassName, classes);

            return(GeckoNodeCollection.Create(list));
        }
 internal GeckoElementCollection(nsIDOMNodeList list)
 {
     this.List = list;
 }
示例#7
0
 internal GeckoElementCollection(mozIDOMWindowProxy window, nsIDOMNodeList list)
 {
     _window   = window;
     this.List = list;
 }
示例#8
0
 protected GeckoNodeCollection(nsIDOMNodeList list)
 {
     this.List = list;
 }
示例#9
0
 internal static GeckoNodeCollection Create(nsIDOMNodeList list)
 {
     return(list == null ? null : new GeckoNodeCollection(list));
 }
 internal GeckoNodeCollection(nsIDOMNodeList list)
 {
     this.List = list;
 }
 internal DomNodeList(nsIDOMNodeList list, Func <TGeckoNode, TWrapper> translator)
 {
     _list       = list;
     _translator = translator;
 }
示例#12
0
 public DomHtmlCollection(mozIDOMWindowProxy window, /*nsIDOMHTMLCollection*/ nsIDOMNodeList collection, Func <mozIDOMWindowProxy, TGeckoNode, TWrapper> translator)
 {
     _window     = window;
     _collection = collection;
     _translator = translator;
 }
示例#13
0
        public static nsIDOMNodeList GetProxy(Mono.WebBrowser.IWebBrowser control, nsIDOMNodeList obj)
        {
            object o = Base.GetProxyForObject(control, typeof(nsIDOMNodeList).GUID, obj);

            return(o as nsIDOMNodeList);
        }
示例#14
0
		public static nsIDOMNodeList GetProxy (Mono.WebBrowser.IWebBrowser control, nsIDOMNodeList obj)
		{
			object o = Base.GetProxyForObject (control, typeof(nsIDOMNodeList).GUID, obj);
			return o as nsIDOMNodeList;
		}
 internal Wrapper1(nsIDOMNodeList list)
 {
     _list   = list;
     _length = (int)list.GetLengthAttribute();
 }
示例#16
0
		public HTMLElementCollection (WebBrowser control, nsIDOMNodeList nodeList) : base (control, nodeList)
		{
		}
示例#17
0
 protected GeckoNodeCollection(mozIDOMWindowProxy window, nsIDOMNodeList list)
 {
     _window   = window;
     _nodeList = new Lazy <NodeList>(() => new NodeList(window, (nsISupports)list));
     this.List = list;
 }
示例#18
0
 public HTMLElementCollection(WebBrowser control, nsIDOMNodeList nodeList) : base(control, nodeList)
 {
 }
 internal GeckoNodeEnumerator(mozIDOMWindowProxy window, nsIDOMNodeList list, Func <mozIDOMWindowProxy, TGeckoNode, TWrapper> translator)
     : this(window, new Wrapper1(window, list), translator)
 {
     _window = window;
 }
 internal Wrapper1(mozIDOMWindowProxy window, nsIDOMNodeList list)
 {
     _list   = list;
     _length = (int)list.GetLengthAttribute();
 }
 internal GeckoNodeEnumerator(nsIDOMNodeList list, Func <TGeckoNode, TWrapper> translator)
     : this(new Wrapper1(list), translator)
 {
 }
示例#22
0
 internal DomNodeList(mozIDOMWindowProxy window, nsIDOMNodeList list, Func <mozIDOMWindowProxy, TGeckoNode, TWrapper> translator)
 {
     _window     = window;
     _list       = list;
     _translator = translator;
 }