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

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

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 if (!sourceMap) 110 if (!sourceMap)
111 return null; 111 return null;
112 var lineNumber = debuggerModelLocation.lineNumber; 112 var lineNumber = debuggerModelLocation.lineNumber;
113 var columnNumber = debuggerModelLocation.columnNumber || 0; 113 var columnNumber = debuggerModelLocation.columnNumber || 0;
114 var entry = sourceMap.findEntry(lineNumber, columnNumber); 114 var entry = sourceMap.findEntry(lineNumber, columnNumber);
115 if (!entry || !entry.sourceURL) 115 if (!entry || !entry.sourceURL)
116 return null; 116 return null;
117 var script = rawLocation.script(); 117 var script = rawLocation.script();
118 if (!script) 118 if (!script)
119 return null; 119 return null;
120 var uiSourceCode = Bindings.NetworkProject.uiSourceCodeForScriptURL(this._wo rkspace, /** @type {string} */ (entry.sourceURL), script); 120 var uiSourceCode = Bindings.NetworkProject.uiSourceCodeForScriptURL(
121 this._workspace, /** @type {string} */ (entry.sourceURL), script);
121 if (!uiSourceCode) 122 if (!uiSourceCode)
122 return null; 123 return null;
123 return uiSourceCode.uiLocation( 124 return uiSourceCode.uiLocation(
124 /** @type {number} */ (entry.sourceLineNumber), /** @type {number} */ (e ntry.sourceColumnNumber)); 125 /** @type {number} */ (entry.sourceLineNumber), /** @type {number} */ (e ntry.sourceColumnNumber));
125 } 126 }
126 127
127 /** 128 /**
128 * @override 129 * @override
129 * @param {!Workspace.UISourceCode} uiSourceCode 130 * @param {!Workspace.UISourceCode} uiSourceCode
130 * @param {number} lineNumber 131 * @param {number} lineNumber
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 } 375 }
375 376
376 dispose() { 377 dispose() {
377 Common.EventTarget.removeEventListeners(this._eventListeners); 378 Common.EventTarget.removeEventListeners(this._eventListeners);
378 this._debuggerReset(); 379 this._debuggerReset();
379 this._stubProject.dispose(); 380 this._stubProject.dispose();
380 } 381 }
381 }; 382 };
382 383
383 Bindings.CompilerScriptMapping._originSymbol = Symbol('origin'); 384 Bindings.CompilerScriptMapping._originSymbol = Symbol('origin');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698