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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {SDK.TargetManager.Observer} 5 * @implements {SDK.TargetManager.Observer}
6 * @unrestricted 6 * @unrestricted
7 */ 7 */
8 Bindings.BlackboxManager = class { 8 Bindings.BlackboxManager = class {
9 /** 9 /**
10 * @param {!Bindings.DebuggerWorkspaceBinding} debuggerWorkspaceBinding 10 * @param {!Bindings.DebuggerWorkspaceBinding} debuggerWorkspaceBinding
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 } 297 }
298 298
299 _patternChangeFinishedForTests() { 299 _patternChangeFinishedForTests() {
300 // This method is sniffed in tests. 300 // This method is sniffed in tests.
301 } 301 }
302 302
303 /** 303 /**
304 * @param {!Common.Event} event 304 * @param {!Common.Event} event
305 */ 305 */
306 _globalObjectCleared(event) { 306 _globalObjectCleared(event) {
307 var debuggerModel = /** @type {!SDK.DebuggerModel} */ (event.target); 307 var debuggerModel = /** @type {!SDK.DebuggerModel} */ (event.data);
308 this._debuggerModelData.delete(debuggerModel); 308 this._debuggerModelData.delete(debuggerModel);
309 this._isBlackboxedURLCache.clear(); 309 this._isBlackboxedURLCache.clear();
310 } 310 }
311 311
312 /** 312 /**
313 * @param {!Common.Event} event 313 * @param {!Common.Event} event
314 */ 314 */
315 _parsedScriptSource(event) { 315 _parsedScriptSource(event) {
316 var script = /** @type {!SDK.Script} */ (event.data); 316 var script = /** @type {!SDK.Script} */ (event.data);
317 this._addScript(script); 317 this._addScript(script);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 if (scheme === 'chrome-extension') 423 if (scheme === 'chrome-extension')
424 prefix += parsedURL.host + '\\b'; 424 prefix += parsedURL.host + '\\b';
425 prefix += '.*'; 425 prefix += '.*';
426 } 426 }
427 return prefix + name.escapeForRegExp() + (url.endsWith(name) ? '$' : '\\b'); 427 return prefix + name.escapeForRegExp() + (url.endsWith(name) ? '$' : '\\b');
428 } 428 }
429 }; 429 };
430 430
431 /** @type {!Bindings.BlackboxManager} */ 431 /** @type {!Bindings.BlackboxManager} */
432 Bindings.blackboxManager; 432 Bindings.blackboxManager;
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698