1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/xpath/nsIDOMNSXPathExpression.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "domstubs.idl" 1.10 + 1.11 +interface nsIDOMXPathResult; 1.12 +interface XPathException; 1.13 + 1.14 +/** 1.15 + * Interface for Mozilla specific XPathExpression functions. 1.16 + */ 1.17 +[scriptable, uuid(ce600ca8-e98a-4419-ad61-2f6d0cb0ecc8)] 1.18 +interface nsIDOMNSXPathExpression : nsISupports 1.19 +{ 1.20 + /** 1.21 + * Evaluate the expression with the given context. Similar to 1.22 + * nsIDOMXPathExpression::evaluate(), except that this takes the context 1.23 + * position and size too. 1.24 + * 1.25 + * @param contextNode The context node 1.26 + * @param contextPosition The context position 1.27 + * @param contextSize The context size 1.28 + * @param type The needed result type 1.29 + * @param result The result 1.30 + */ 1.31 + nsISupports evaluateWithContext(in nsIDOMNode contextNode, 1.32 + in unsigned long contextPosition, 1.33 + in unsigned long contextSize, 1.34 + in unsigned short type, 1.35 + in nsISupports result) 1.36 + raises(XPathException, 1.37 + DOMException); 1.38 +};