|
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/. */ |
|
5 |
|
6 #include "domstubs.idl" |
|
7 |
|
8 interface nsIDOMXPathResult; |
|
9 interface XPathException; |
|
10 |
|
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 }; |