Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSParser.js

Issue 2261933002: DevTools: Use JS symbols instead of strings for eligible events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698