Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "domstubs.idl"
8 interface nsIDOMXPathResult;
9 interface XPathException;
11 /**
12 * Interface for Mozilla specific XPathExpression functions.
13 */
14 [scriptable, uuid(ce600ca8-e98a-4419-ad61-2f6d0cb0ecc8)]
15 interface nsIDOMNSXPathExpression : nsISupports
16 {
17 /**
18 * Evaluate the expression with the given context. Similar to
19 * nsIDOMXPathExpression::evaluate(), except that this takes the context
20 * position and size too.
21 *
22 * @param contextNode The context node
23 * @param contextPosition The context position
24 * @param contextSize The context size
25 * @param type The needed result type
26 * @param result The result
27 */
28 nsISupports evaluateWithContext(in nsIDOMNode contextNode,
29 in unsigned long contextPosition,
30 in unsigned long contextSize,
31 in unsigned short type,
32 in nsISupports result)
33 raises(XPathException,
34 DOMException);
35 };