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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.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 /* 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 30 matching lines...) Expand all
41 this._debuggerWorkspaceBinding = debuggerWorkspaceBinding; 41 this._debuggerWorkspaceBinding = debuggerWorkspaceBinding;
42 var projectId = WebInspector.DefaultScriptMapping.projectIdForTarget(debugge rModel.target()); 42 var projectId = WebInspector.DefaultScriptMapping.projectIdForTarget(debugge rModel.target());
43 this._project = new WebInspector.ContentProviderBasedProject(workspace, proj ectId, WebInspector.projectTypes.Debugger, ""); 43 this._project = new WebInspector.ContentProviderBasedProject(workspace, proj ectId, WebInspector.projectTypes.Debugger, "");
44 /** @type {!Map.<string, !WebInspector.UISourceCode>} */ 44 /** @type {!Map.<string, !WebInspector.UISourceCode>} */
45 this._uiSourceCodeForScriptId = new Map(); 45 this._uiSourceCodeForScriptId = new Map();
46 /** @type {!Map.<!WebInspector.UISourceCode, string>} */ 46 /** @type {!Map.<!WebInspector.UISourceCode, string>} */
47 this._scriptIdForUISourceCode = new Map(); 47 this._scriptIdForUISourceCode = new Map();
48 this._eventListeners = [ 48 this._eventListeners = [
49 debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.GlobalO bjectCleared, this._debuggerReset, this) 49 debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.GlobalO bjectCleared, this._debuggerReset, this)
50 ]; 50 ];
51 } 51 };
52 52
53 WebInspector.DefaultScriptMapping._scriptSymbol = Symbol("symbol"); 53 WebInspector.DefaultScriptMapping._scriptSymbol = Symbol("symbol");
54 54
55 /** 55 /**
56 * @param {!WebInspector.UISourceCode} uiSourceCode 56 * @param {!WebInspector.UISourceCode} uiSourceCode
57 * @return {?WebInspector.Script} 57 * @return {?WebInspector.Script}
58 */ 58 */
59 WebInspector.DefaultScriptMapping.scriptForUISourceCode = function(uiSourceCode) 59 WebInspector.DefaultScriptMapping.scriptForUISourceCode = function(uiSourceCode)
60 { 60 {
61 return uiSourceCode[WebInspector.DefaultScriptMapping._scriptSymbol] || null ; 61 return uiSourceCode[WebInspector.DefaultScriptMapping._scriptSymbol] || null ;
62 } 62 };
63 63
64 WebInspector.DefaultScriptMapping.prototype = { 64 WebInspector.DefaultScriptMapping.prototype = {
65 /** 65 /**
66 * @override 66 * @override
67 * @param {!WebInspector.DebuggerModel.Location} rawLocation 67 * @param {!WebInspector.DebuggerModel.Location} rawLocation
68 * @return {!WebInspector.UILocation} 68 * @return {!WebInspector.UILocation}
69 */ 69 */
70 rawLocationToUILocation: function(rawLocation) 70 rawLocationToUILocation: function(rawLocation)
71 { 71 {
72 var debuggerModelLocation = /** @type {!WebInspector.DebuggerModel.Locat ion} */ (rawLocation); 72 var debuggerModelLocation = /** @type {!WebInspector.DebuggerModel.Locat ion} */ (rawLocation);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 this._scriptIdForUISourceCode.clear(); 139 this._scriptIdForUISourceCode.clear();
140 this._project.reset(); 140 this._project.reset();
141 }, 141 },
142 142
143 dispose: function() 143 dispose: function()
144 { 144 {
145 WebInspector.EventTarget.removeEventListeners(this._eventListeners); 145 WebInspector.EventTarget.removeEventListeners(this._eventListeners);
146 this._debuggerReset(); 146 this._debuggerReset();
147 this._project.dispose(); 147 this._project.dispose();
148 } 148 }
149 } 149 };
150 150
151 /** 151 /**
152 * @param {!WebInspector.Target} target 152 * @param {!WebInspector.Target} target
153 * @return {string} 153 * @return {string}
154 */ 154 */
155 WebInspector.DefaultScriptMapping.projectIdForTarget = function(target) 155 WebInspector.DefaultScriptMapping.projectIdForTarget = function(target)
156 { 156 {
157 return "debugger:" + target.id(); 157 return "debugger:" + target.id();
158 } 158 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698