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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 return !!suffix.length && !suffix.match(SDK.Script.sourceURLRegex); 306 return !!suffix.length && !suffix.match(SDK.Script.sourceURLRegex);
307 } 307 }
308 308
309 /** 309 /**
310 * @param {!Common.Event} event 310 * @param {!Common.Event} event
311 */ 311 */
312 _workingCopyChanged(event) { 312 _workingCopyChanged(event) {
313 this._update(); 313 this._update();
314 } 314 }
315 315
316 /**
317 * @param {!Common.Event} event
318 */
316 _workingCopyCommitted(event) { 319 _workingCopyCommitted(event) {
317 if (this._uiSourceCode.project().canSetFileContent()) 320 if (this._uiSourceCode.project().canSetFileContent())
318 return; 321 return;
319 if (!this._script) 322 if (!this._script)
320 return; 323 return;
321 var debuggerModel = this._resourceScriptMapping._debuggerModel; 324 var debuggerModel = this._resourceScriptMapping._debuggerModel;
322 var source = this._uiSourceCode.workingCopy(); 325 var source = this._uiSourceCode.workingCopy();
323 debuggerModel.setScriptSource(this._script.scriptId, source, scriptSourceWas Set.bind(this)); 326 debuggerModel.setScriptSource(this._script.scriptId, source, scriptSourceWas Set.bind(this));
324 327
325 /** 328 /**
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 hasSourceMapURL() { 444 hasSourceMapURL() {
442 return this._script && !!this._script.sourceMapURL; 445 return this._script && !!this._script.sourceMapURL;
443 } 446 }
444 }; 447 };
445 448
446 /** @enum {symbol} */ 449 /** @enum {symbol} */
447 Bindings.ResourceScriptFile.Events = { 450 Bindings.ResourceScriptFile.Events = {
448 DidMergeToVM: Symbol('DidMergeToVM'), 451 DidMergeToVM: Symbol('DidMergeToVM'),
449 DidDivergeFromVM: Symbol('DidDivergeFromVM'), 452 DidDivergeFromVM: Symbol('DidDivergeFromVM'),
450 }; 453 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698