OLD | NEW |
1 /** | 1 /** |
2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /** | 7 /** |
8 * @constructor | 8 * @constructor |
9 * @extends {WebInspector.Object} | 9 * @extends {WebInspector.Object} |
10 */ | 10 */ |
11 WebInspector.CSSParser = function() | 11 WebInspector.CSSParser = function() |
12 { | 12 { |
13 this._rules = []; | 13 this._rules = []; |
14 this._terminated = false; | 14 this._terminated = false; |
15 } | 15 } |
16 | 16 |
| 17 /** @enum {symbol} */ |
17 WebInspector.CSSParser.Events = { | 18 WebInspector.CSSParser.Events = { |
18 RulesParsed: "RulesParsed" | 19 RulesParsed: Symbol("RulesParsed") |
19 } | 20 } |
20 | 21 |
21 WebInspector.CSSParser.prototype = { | 22 WebInspector.CSSParser.prototype = { |
22 /** | 23 /** |
23 * @param {!WebInspector.CSSStyleSheetHeader} styleSheetHeader | 24 * @param {!WebInspector.CSSStyleSheetHeader} styleSheetHeader |
24 * @param {function(!Array.<!WebInspector.CSSParser.Rule>)=} callback | 25 * @param {function(!Array.<!WebInspector.CSSParser.Rule>)=} callback |
25 */ | 26 */ |
26 fetchAndParse: function(styleSheetHeader, callback) | 27 fetchAndParse: function(styleSheetHeader, callback) |
27 { | 28 { |
28 this._lock(); | 29 this._lock(); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 this.nameRange; | 188 this.nameRange; |
188 /** @type {string} */ | 189 /** @type {string} */ |
189 this.value; | 190 this.value; |
190 /** @type {!WebInspector.CSSParser.Range} */ | 191 /** @type {!WebInspector.CSSParser.Range} */ |
191 this.valueRange; | 192 this.valueRange; |
192 /** @type {!WebInspector.CSSParser.Range} */ | 193 /** @type {!WebInspector.CSSParser.Range} */ |
193 this.range; | 194 this.range; |
194 /** @type {(boolean|undefined)} */ | 195 /** @type {(boolean|undefined)} */ |
195 this.disabled; | 196 this.disabled; |
196 } | 197 } |
OLD | NEW |