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/xul/templates/nsIXULTemplateRuleFilter.idl | |
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/xul/templates/nsIXULTemplateRuleFilter.idl')
-rw-r--r-- | dom/xul/templates/nsIXULTemplateRuleFilter.idl | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dom/xul/templates/nsIXULTemplateRuleFilter.idl b/dom/xul/templates/nsIXULTemplateRuleFilter.idl new file mode 100644 index 000000000..59c88e072 --- /dev/null +++ b/dom/xul/templates/nsIXULTemplateRuleFilter.idl @@ -0,0 +1,36 @@ +/* -*- Mode: C++; 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/. */ + +#include "domstubs.idl" + +interface nsISupports; +interface nsIXULTemplateResult; + +/** + * A rule filter may be used to add additional filtering of results to a rule. + * The filter is used to further reject results from matching the template's + * rules, beyond what the template syntax can do itself, thus allowing for + * more complex result filtering. The rule filter is applied after the rule + * syntax within the template. + * + * Only one filter may apply to each rule within the template and may be + * assigned using the template builder's addRuleFilter method. + */ +[scriptable, uuid(819cd1ed-8010-42e1-a8b9-778b726a1ff3)] +interface nsIXULTemplateRuleFilter : nsISupports +{ + /** + * Evaluate a result and return true if the result is accepted by this + * filter, or false if it is rejected. Accepted results will have output + * generated for them for the rule. Rejected results will not, but they + * may still match another rule. + * + * @param aRef the result to examine + * @param aRule the rule node + * + * @return true if the rule matches + */ + boolean match(in nsIXULTemplateResult aRef, in nsIDOMNode aRule); +}; |