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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @param {!WebInspector.DebuggerWorkspaceBinding} debuggerWorkspaceBinding 7 * @param {!WebInspector.DebuggerWorkspaceBinding} debuggerWorkspaceBinding
8 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.BlackboxManager = function(debuggerWorkspaceBinding) 10 WebInspector.BlackboxManager = function(debuggerWorkspaceBinding)
11 { 11 {
12 this._debuggerWorkspaceBinding = debuggerWorkspaceBinding; 12 this._debuggerWorkspaceBinding = debuggerWorkspaceBinding;
13 13
14 WebInspector.targetManager.addModelListener(WebInspector.DebuggerModel, WebI nspector.DebuggerModel.Events.ParsedScriptSource, this._parsedScriptSource, this ); 14 WebInspector.targetManager.addModelListener(WebInspector.DebuggerModel, WebI nspector.DebuggerModel.Events.ParsedScriptSource, this._parsedScriptSource, this );
15 WebInspector.targetManager.addModelListener(WebInspector.DebuggerModel, WebI nspector.DebuggerModel.Events.GlobalObjectCleared, this._globalObjectCleared, th is); 15 WebInspector.targetManager.addModelListener(WebInspector.DebuggerModel, WebI nspector.DebuggerModel.Events.GlobalObjectCleared, this._globalObjectCleared, th is);
16 WebInspector.moduleSetting("skipStackFramesPattern").addChangeListener(this. _patternChanged.bind(this)); 16 WebInspector.moduleSetting("skipStackFramesPattern").addChangeListener(this. _patternChanged.bind(this));
17 WebInspector.moduleSetting("skipContentScripts").addChangeListener(this._pat ternChanged.bind(this)); 17 WebInspector.moduleSetting("skipContentScripts").addChangeListener(this._pat ternChanged.bind(this));
18 18
19 /** @type {!Map<!WebInspector.DebuggerModel, !Map<string, !Array<!DebuggerAg ent.ScriptPosition>>>} */ 19 /** @type {!Map<!WebInspector.DebuggerModel, !Map<string, !Array<!DebuggerAg ent.ScriptPosition>>>} */
20 this._debuggerModelData = new Map(); 20 this._debuggerModelData = new Map();
21 /** @type {!Map<string, boolean>} */ 21 /** @type {!Map<string, boolean>} */
22 this._isBlackboxedURLCache = new Map(); 22 this._isBlackboxedURLCache = new Map();
23 23
24 WebInspector.targetManager.observeTargets(this); 24 WebInspector.targetManager.observeTargets(this);
25 } 25 };
26 26
27 WebInspector.BlackboxManager.prototype = { 27 WebInspector.BlackboxManager.prototype = {
28 /** 28 /**
29 * @param {function(!WebInspector.Event)} listener 29 * @param {function(!WebInspector.Event)} listener
30 * @param {!Object=} thisObject 30 * @param {!Object=} thisObject
31 */ 31 */
32 addChangeListener: function(listener, thisObject) 32 addChangeListener: function(listener, thisObject)
33 { 33 {
34 WebInspector.moduleSetting("skipStackFramesPattern").addChangeListener(l istener, thisObject); 34 WebInspector.moduleSetting("skipStackFramesPattern").addChangeListener(l istener, thisObject);
35 }, 35 },
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 var scheme = parsedURL.scheme; 442 var scheme = parsedURL.scheme;
443 var prefix = ""; 443 var prefix = "";
444 if (scheme && scheme !== "http" && scheme !== "https") { 444 if (scheme && scheme !== "http" && scheme !== "https") {
445 prefix = "^" + scheme + "://"; 445 prefix = "^" + scheme + "://";
446 if (scheme === "chrome-extension") 446 if (scheme === "chrome-extension")
447 prefix += parsedURL.host + "\\b"; 447 prefix += parsedURL.host + "\\b";
448 prefix += ".*"; 448 prefix += ".*";
449 } 449 }
450 return prefix + name.escapeForRegExp() + (url.endsWith(name) ? "$" : "\\ b"); 450 return prefix + name.escapeForRegExp() + (url.endsWith(name) ? "$" : "\\ b");
451 } 451 }
452 } 452 };
453 453
454 /** @type {!WebInspector.BlackboxManager} */ 454 /** @type {!WebInspector.BlackboxManager} */
455 WebInspector.blackboxManager; 455 WebInspector.blackboxManager;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698