public void walkDomFragment(Node node, AbstractBehavior parentBehavior = null)
        {
            investigateNode(node, parentBehavior);

            //free this for GC when we are done, it has references to a lot of DOM elements
            this.extensionsToBeApplied = null;
        }
        public void walkDomChildren(Node parentNode, AbstractBehavior parentBehavior = null)
        {
            //The fact that we have two entry point into here walkChildren and walkDomFragment continues to screw us
            walkChildren(parentNode, parentBehavior);

            //free this for GC when we are done, it has references to a lot of DOM elements
            this.extensionsToBeApplied = null;
        }
Esempio n. 3
0
        public void walkChildren(Node parentNode, InjectionClassBuilder classBuilder, AbstractBehavior parentBehavior = null)
        {
            var node = parentNode.firstChild;

            while (node != null) {
                investigateNode(node, classBuilder, parentBehavior);
                node = node.nextSibling;
            }
        }
        public void investigateTextNode(Node textNode)
        {
            //We have a list of matches within the text node which tell us what we need to get
            //further we have the original node, which we need to preserve as there may be only parts getting translated
            //even though this is bad form <div>[labels.monkey] is a type of [labels.animal]</div> we still need to support it
            var result = getElementLocalizationComponents(textNode);

            if (result != null) {
                for ( int i=0; i<result.length;i++) {
                    requestTranslation( result[ i ], textNode );
                }

                scheduleTranslation();
            }
        }
Esempio n. 5
0
	public  int compareDocumentPosition(Node other) { return default(int); }
Esempio n. 6
0
 public RandoriApplication(Node rootNode)
 {
     this.rootNode = rootNode;
 }
Esempio n. 7
0
	public  bool isEqualNode(Node other) { return default(bool); }
Esempio n. 8
0
	public  XPathResult evaluate(string expression, Node contextNode, XPathNSResolver resolver, int type, XPathResult inResult) { return default(XPathResult); }
Esempio n. 9
0
	public short acceptNode(Node nodeArg) { return default(short); }
Esempio n. 10
0
	public  Node replaceChild(Node newChild, Node oldChild) { return default(Node); }
Esempio n. 11
0
	public  Node appendChild(Node newChild) { return default(Node); }
Esempio n. 12
0
	public  void importStylesheet(Node stylesheet) {}
Esempio n. 13
0
	public  DocumentFragment transformToFragment(Node source, Document docVal) { return default(DocumentFragment); }
Esempio n. 14
0
	public bool writeToURI(Node nodeArg, string uri) { return default(bool); }
Esempio n. 15
0
	public JsString writeToString(Node nodeArg) { return default(JsString); }
Esempio n. 16
0
	public bool write(Node nodeArg, LSOutput destination) { return default(bool); }
Esempio n. 17
0
	public  void observe(Node target, object options) {}
Esempio n. 18
0
	public Node parseWithContext(LSInput input, Node contextArg, short action) { return default(Node); }
Esempio n. 19
0
	public  bool contains(Node other) { return default(bool); }
Esempio n. 20
0
	public  Document transformToDocument(Node source) { return default(Document); }
Esempio n. 21
0
	public  Node insertBefore(Node newChild, Node refChild) { return default(Node); }
Esempio n. 22
0
        private void investigateNode(Node node, InjectionClassBuilder classBuilder, AbstractBehavior parentBehavior)
        {
            if (node.nodeType == Node.ELEMENT_NODE) {

                //Just an optimization, need to create constants for all of these things
                if (node.nodeName == "SCRIPT" || node.nodeName == "META") {
                    return;
                }

                if ( node.nodeName == "LINK" ) {
                    investigateLinkElement(node.As<HtmlLinkElement>());
                } else {
                    investigateDomElement(node.As<HtmlElement>(), classBuilder, parentBehavior);
                }

            } else if (node.nodeType == Node.TEXT_NODE) {
                //This is a text node, check to see if it needs internationalization
                localizationProvider.investigateTextNode(node);
            } else {
                walkChildren(node, classBuilder, parentBehavior);
            }
        }
Esempio n. 23
0
	public  Node removeChild(Node oldChild) { return default(Node); }
Esempio n. 24
0
	public object evaluate(string expression, Node contextNode, XPathNSResolver resolver, short type, object result) { return default(object); }
Esempio n. 25
0
	public  XPathNSResolver createNSResolver(Node nodeResolver) { return default(XPathNSResolver); }
Esempio n. 26
0
 public void walkDomFragment(Node node, InjectionClassBuilder classBuilder, AbstractBehavior parentBehavior = null)
 {
     investigateNode(node, classBuilder, parentBehavior);
 }
Esempio n. 27
0
		public static Range Get(Node node) { throw new NotImplementedException(); }
Esempio n. 28
0
	public  bool isSameNode(Node other) { return default(bool); }
Esempio n. 29
0
	public  XPathResult evaluate(Node contextNode, int type, XPathResult inResult) { return default(XPathResult); }
Esempio n. 30
0
 public void dirxml(Node node) { }