blob: adce873c1d882432d2a668874b1dbbf46e1dec93 [file] [log] [blame]
<html><head><style>
.KEYW {color: #933;}
.COMM {color: #bbb; font-style: italic;}
.NUMB {color: #393;}
.STRN {color: #393;}
.REGX {color: #339;}
.linenumber {border-right: 1px dotted #666; color: #666; font-style: normal;}
</style></head><body><pre><span class='linenumber'> 1</span> <span class="COMM">// Copyright 2009 Google Inc. All Rights Reserved.</span><span class="WHIT">
<span class='linenumber'> 2</span> </span><span class="COMM">//</span><span class="WHIT">
<span class='linenumber'> 3</span> </span><span class="COMM">// Licensed under the Apache License, Version 2.0 (the "License");</span><span class="WHIT">
<span class='linenumber'> 4</span> </span><span class="COMM">// you may not use this file except in compliance with the License.</span><span class="WHIT">
<span class='linenumber'> 5</span> </span><span class="COMM">// You may obtain a copy of the License at</span><span class="WHIT">
<span class='linenumber'> 6</span> </span><span class="COMM">//</span><span class="WHIT">
<span class='linenumber'> 7</span> </span><span class="COMM">// http://www.apache.org/licenses/LICENSE-2.0</span><span class="WHIT">
<span class='linenumber'> 8</span> </span><span class="COMM">//</span><span class="WHIT">
<span class='linenumber'> 9</span> </span><span class="COMM">// Unless required by applicable law or agreed to in writing, software</span><span class="WHIT">
<span class='linenumber'> 10</span> </span><span class="COMM">// distributed under the License is distributed on an "AS-IS" BASIS,</span><span class="WHIT">
<span class='linenumber'> 11</span> </span><span class="COMM">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span><span class="WHIT">
<span class='linenumber'> 12</span> </span><span class="COMM">// See the License for the specific language governing permissions and</span><span class="WHIT">
<span class='linenumber'> 13</span> </span><span class="COMM">// limitations under the License.</span><span class="WHIT">
<span class='linenumber'> 14</span>
<span class='linenumber'> 15</span> </span><span class="COMM">/**
<span class='linenumber'> 16</span> * @fileoverview Interface for error-suppression filters.
<span class='linenumber'> 17</span> */</span><span class="WHIT">
<span class='linenumber'> 18</span>
<span class='linenumber'> 19</span>
<span class='linenumber'> 20</span> </span><span class="NAME">goog.provide</span><span class="PUNC">(</span><span class="STRN">'bidichecker.Filter'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 21</span>
<span class='linenumber'> 22</span> </span><span class="NAME">goog.require</span><span class="PUNC">(</span><span class="STRN">'bidichecker.Error'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 23</span>
<span class='linenumber'> 24</span>
<span class='linenumber'> 25</span> </span><span class="COMM">/**
<span class='linenumber'> 26</span> * Interface for an error-suppression filter.
<span class='linenumber'> 27</span> * @interface
<span class='linenumber'> 28</span> */</span><span class="WHIT">
<span class='linenumber'> 29</span> </span><span class="NAME">bidichecker.Filter</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 30</span>
<span class='linenumber'> 31</span>
<span class='linenumber'> 32</span> </span><span class="COMM">/**
<span class='linenumber'> 33</span> * Decides whether to suppress a particular error.
<span class='linenumber'> 34</span> * @param {!bidichecker.Error} error An error object.
<span class='linenumber'> 35</span> * @param {!Array.&lt;!Element>} locationElements Elements representing the error
<span class='linenumber'> 36</span> * location in the DOM, or an empty array if not applicable. The last
<span class='linenumber'> 37</span> * element in the array is the actual element where the error occurs;
<span class='linenumber'> 38</span> * previous elements represent the frames within which the error appears,
<span class='linenumber'> 39</span> * if relevant.
<span class='linenumber'> 40</span> * @return {boolean} True if the error should be suppressed.
<span class='linenumber'> 41</span> */</span><span class="WHIT">
<span class='linenumber'> 42</span> </span><span class="NAME">bidichecker.Filter.prototype.isSuppressed</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">goog.abstractMethod</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 43</span> </span></pre></body></html>