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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/Script.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 return !!this.sourceURL && !startsAtZero; 282 return !!this.sourceURL && !startsAtZero;
283 } 283 }
284 284
285 /** 285 /**
286 * @param {string} sourceMapURL 286 * @param {string} sourceMapURL
287 */ 287 */
288 addSourceMapURL(sourceMapURL) { 288 addSourceMapURL(sourceMapURL) {
289 if (this.sourceMapURL) 289 if (this.sourceMapURL)
290 return; 290 return;
291 this.sourceMapURL = sourceMapURL; 291 this.sourceMapURL = sourceMapURL;
292 this.dispatchEventToListeners(SDK.Script.Events.SourceMapURLAdded, this.sour ceMapURL); 292 this.dispatchEventToListeners(SDK.Script.Events.SourceMapURLAdded, this);
293 } 293 }
294 294
295 /** 295 /**
296 * @return {boolean} 296 * @return {boolean}
297 */ 297 */
298 isAnonymousScript() { 298 isAnonymousScript() {
299 return !this.sourceURL; 299 return !this.sourceURL;
300 } 300 }
301 301
302 /** 302 /**
(...skipping 29 matching lines...) Expand all
332 } 332 }
333 }; 333 };
334 334
335 /** @enum {symbol} */ 335 /** @enum {symbol} */
336 SDK.Script.Events = { 336 SDK.Script.Events = {
337 ScriptEdited: Symbol('ScriptEdited'), 337 ScriptEdited: Symbol('ScriptEdited'),
338 SourceMapURLAdded: Symbol('SourceMapURLAdded') 338 SourceMapURLAdded: Symbol('SourceMapURLAdded')
339 }; 339 };
340 340
341 SDK.Script.sourceURLRegex = /^[\040\t]*\/\/[@#] sourceURL=\s*(\S*?)\s*$/m; 341 SDK.Script.sourceURLRegex = /^[\040\t]*\/\/[@#] sourceURL=\s*(\S*?)\s*$/m;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698