dom/interfaces/xpath/nsIDOMNSXPathExpression.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 };

mercurial