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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js

Issue 2562453003: [DevTools] Remove Common.Event.target field. (Closed)
Patch Set: works Created 4 years 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @implements {Bindings.DebuggerSourceMapping} 5 * @implements {Bindings.DebuggerSourceMapping}
6 * @unrestricted 6 * @unrestricted
7 */ 7 */
8 Sources.FormatterScriptMapping = class { 8 Sources.FormatterScriptMapping = class {
9 /** 9 /**
10 * @param {!SDK.DebuggerModel} debuggerModel 10 * @param {!SDK.DebuggerModel} debuggerModel
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 this._formatData.remove(uiSourceCodes[i]); 286 this._formatData.remove(uiSourceCodes[i]);
287 this._project.removeFile(uiSourceCodes[i].url()); 287 this._project.removeFile(uiSourceCodes[i].url());
288 } 288 }
289 } 289 }
290 } 290 }
291 291
292 /** 292 /**
293 * @param {!Common.Event} event 293 * @param {!Common.Event} event
294 */ 294 */
295 _debuggerReset(event) { 295 _debuggerReset(event) {
296 var debuggerModel = /** @type {!SDK.DebuggerModel} */ (event.target); 296 var debuggerModel = /** @type {!SDK.DebuggerModel} */ (event.data);
297 this._cleanForTarget(debuggerModel.target()); 297 this._cleanForTarget(debuggerModel.target());
298 } 298 }
299 299
300 /** 300 /**
301 * @param {!Workspace.UISourceCode} uiSourceCode 301 * @param {!Workspace.UISourceCode} uiSourceCode
302 * @return {!Array.<!SDK.Script>} 302 * @return {!Array.<!SDK.Script>}
303 */ 303 */
304 _scriptsForUISourceCode(uiSourceCode) { 304 _scriptsForUISourceCode(uiSourceCode) {
305 /** 305 /**
306 * @param {!SDK.Script} script 306 * @param {!SDK.Script} script
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 var targets = SDK.targetManager.targets(); 381 var targets = SDK.targetManager.targets();
382 for (var i = 0; i < targets.length; ++i) { 382 for (var i = 0; i < targets.length; ++i) {
383 var scriptMapping = 383 var scriptMapping =
384 /** @type {!Sources.FormatterScriptMapping} */ (this._scriptMappingB yTarget.get(targets[i])); 384 /** @type {!Sources.FormatterScriptMapping} */ (this._scriptMappingB yTarget.get(targets[i]));
385 Bindings.debuggerWorkspaceBinding.setSourceMapping(targets[i], formatted UISourceCode, scriptMapping); 385 Bindings.debuggerWorkspaceBinding.setSourceMapping(targets[i], formatted UISourceCode, scriptMapping);
386 } 386 }
387 this._showIfNeeded(uiSourceCode, formattedUISourceCode, formatterMapping); 387 this._showIfNeeded(uiSourceCode, formattedUISourceCode, formatterMapping);
388 } 388 }
389 } 389 }
390 }; 390 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698