diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /dom/interfaces/xpath | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/interfaces/xpath')
-rw-r--r-- | dom/interfaces/xpath/moz.build | 13 | ||||
-rw-r--r-- | dom/interfaces/xpath/nsIDOMXPathEvaluator.idl | 24 | ||||
-rw-r--r-- | dom/interfaces/xpath/nsIDOMXPathResult.idl | 26 |
3 files changed, 63 insertions, 0 deletions
diff --git a/dom/interfaces/xpath/moz.build b/dom/interfaces/xpath/moz.build new file mode 100644 index 000000000..06515bd70 --- /dev/null +++ b/dom/interfaces/xpath/moz.build @@ -0,0 +1,13 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +XPIDL_SOURCES += [ + 'nsIDOMXPathEvaluator.idl', + 'nsIDOMXPathResult.idl', +] + +XPIDL_MODULE = 'dom_xpath' + diff --git a/dom/interfaces/xpath/nsIDOMXPathEvaluator.idl b/dom/interfaces/xpath/nsIDOMXPathEvaluator.idl new file mode 100644 index 000000000..9a07b40af --- /dev/null +++ b/dom/interfaces/xpath/nsIDOMXPathEvaluator.idl @@ -0,0 +1,24 @@ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/** + * Corresponds to http://www.w3.org/TR/2002/WD-DOM-Level-3-XPath-20020208 + */ + +#include "domstubs.idl" + +interface XPathException; + +[uuid(92584002-d0e2-4b88-9af9-fa6ff59ee002)] +interface nsIDOMXPathEvaluator : nsISupports +{ + nsISupports evaluate(in DOMString expression, + in nsIDOMNode contextNode, + in nsIDOMNode resolver, + in unsigned short type, + in nsISupports result) + raises(XPathException, + DOMException); +}; diff --git a/dom/interfaces/xpath/nsIDOMXPathResult.idl b/dom/interfaces/xpath/nsIDOMXPathResult.idl new file mode 100644 index 000000000..8101907ac --- /dev/null +++ b/dom/interfaces/xpath/nsIDOMXPathResult.idl @@ -0,0 +1,26 @@ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/** + * Corresponds to http://www.w3.org/TR/2002/WD-DOM-Level-3-XPath-20020208 + */ + +#include "nsISupports.idl" + +[uuid(75506f84-b504-11d5-a7f2-ca108ab8b6fc)] +interface nsIDOMXPathResult : nsISupports +{ + // XPathResultType + const unsigned short ANY_TYPE = 0; + const unsigned short NUMBER_TYPE = 1; + const unsigned short STRING_TYPE = 2; + const unsigned short BOOLEAN_TYPE = 3; + const unsigned short UNORDERED_NODE_ITERATOR_TYPE = 4; + const unsigned short ORDERED_NODE_ITERATOR_TYPE = 5; + const unsigned short UNORDERED_NODE_SNAPSHOT_TYPE = 6; + const unsigned short ORDERED_NODE_SNAPSHOT_TYPE = 7; + const unsigned short ANY_UNORDERED_NODE_TYPE = 8; + const unsigned short FIRST_ORDERED_NODE_TYPE = 9; +}; |