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

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

Issue 451713002: DevTools: Introduce module initializers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 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 | Annotate | Revision Log
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._worker = new Worker("script_formatter_worker/ScriptFormatterWorker.js" ); 13 this._worker = Runtime.startWorker("script_formatter_worker");
14 this._worker.onmessage = this._onRuleChunk.bind(this); 14 this._worker.onmessage = this._onRuleChunk.bind(this);
15 this._rules = []; 15 this._rules = [];
16 } 16 }
17 17
18 WebInspector.CSSParser.Events = { 18 WebInspector.CSSParser.Events = {
19 RulesParsed: "RulesParsed" 19 RulesParsed: "RulesParsed"
20 } 20 }
21 21
22 WebInspector.CSSParser.prototype = { 22 WebInspector.CSSParser.prototype = {
23 /** 23 /**
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 /** 121 /**
122 * @typedef {(WebInspector.CSSParser.StyleRule|WebInspector.CSSParser.AtRule)} 122 * @typedef {(WebInspector.CSSParser.StyleRule|WebInspector.CSSParser.AtRule)}
123 */ 123 */
124 WebInspector.CSSParser.Rule; 124 WebInspector.CSSParser.Rule;
125 125
126 /** 126 /**
127 * @typedef {{name: string, value: string}} 127 * @typedef {{name: string, value: string}}
128 */ 128 */
129 WebInspector.CSSParser.Property; 129 WebInspector.CSSParser.Property;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/script_formatter_worker/_module.js ('k') | Source/devtools/front_end/settings/SettingsScreen.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698