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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.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 // 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.DebuggerWorkspaceBinding = class { 8 Bindings.DebuggerWorkspaceBinding = class {
9 /** 9 /**
10 * @param {!SDK.TargetManager} targetManager 10 * @param {!SDK.TargetManager} targetManager
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 /** @type {!Map.<string, !Bindings.DebuggerWorkspaceBinding.ScriptInfo>} */ 355 /** @type {!Map.<string, !Bindings.DebuggerWorkspaceBinding.ScriptInfo>} */
356 this.scriptDataMap = new Map(); 356 this.scriptDataMap = new Map();
357 357
358 /** @type {!Set.<!Bindings.DebuggerWorkspaceBinding.Location>} */ 358 /** @type {!Set.<!Bindings.DebuggerWorkspaceBinding.Location>} */
359 this.callFrameLocations = new Set(); 359 this.callFrameLocations = new Set();
360 360
361 var workspace = debuggerWorkspaceBinding._workspace; 361 var workspace = debuggerWorkspaceBinding._workspace;
362 362
363 this._defaultMapping = new Bindings.DefaultScriptMapping(debuggerModel, work space, debuggerWorkspaceBinding); 363 this._defaultMapping = new Bindings.DefaultScriptMapping(debuggerModel, work space, debuggerWorkspaceBinding);
364 this._resourceMapping = 364 this._resourceMapping = new Bindings.ResourceScriptMapping(debuggerModel, wo rkspace, debuggerWorkspaceBinding);
365 new Bindings.ResourceScriptMapping(debuggerModel, workspace, debuggerWor kspaceBinding);
366 this._compilerMapping = new Bindings.CompilerScriptMapping( 365 this._compilerMapping = new Bindings.CompilerScriptMapping(
367 debuggerModel, workspace, Bindings.NetworkProject.forTarget(this._target ), 366 debuggerModel, workspace, Bindings.NetworkProject.forTarget(this._target ), debuggerWorkspaceBinding);
368 debuggerWorkspaceBinding);
369 367
370 /** @type {!Map.<!Workspace.UISourceCode, !Bindings.DebuggerSourceMapping>} */ 368 /** @type {!Map.<!Workspace.UISourceCode, !Bindings.DebuggerSourceMapping>} */
371 this._uiSourceCodeToSourceMapping = new Map(); 369 this._uiSourceCodeToSourceMapping = new Map();
372 370
373 this._eventListeners = [ 371 this._eventListeners = [
374 debuggerModel.addEventListener(SDK.DebuggerModel.Events.ParsedScriptSource , this._parsedScriptSource, this), 372 debuggerModel.addEventListener(SDK.DebuggerModel.Events.ParsedScriptSource , this._parsedScriptSource, this),
375 debuggerModel.addEventListener(SDK.DebuggerModel.Events.FailedToParseScrip tSource, this._parsedScriptSource, this) 373 debuggerModel.addEventListener(SDK.DebuggerModel.Events.FailedToParseScrip tSource, this._parsedScriptSource, this)
376 ]; 374 ];
377 } 375 }
378 376
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 /** 621 /**
624 * @interface 622 * @interface
625 */ 623 */
626 Bindings.DebuggerSourceMapping = function() {}; 624 Bindings.DebuggerSourceMapping = function() {};
627 625
628 Bindings.DebuggerSourceMapping.prototype = { 626 Bindings.DebuggerSourceMapping.prototype = {
629 /** 627 /**
630 * @param {!SDK.DebuggerModel.Location} rawLocation 628 * @param {!SDK.DebuggerModel.Location} rawLocation
631 * @return {?Workspace.UILocation} 629 * @return {?Workspace.UILocation}
632 */ 630 */
633 rawLocationToUILocation: function(rawLocation) {}, 631 rawLocationToUILocation(rawLocation) {},
634 632
635 /** 633 /**
636 * @param {!Workspace.UISourceCode} uiSourceCode 634 * @param {!Workspace.UISourceCode} uiSourceCode
637 * @param {number} lineNumber 635 * @param {number} lineNumber
638 * @param {number} columnNumber 636 * @param {number} columnNumber
639 * @return {?SDK.DebuggerModel.Location} 637 * @return {?SDK.DebuggerModel.Location}
640 */ 638 */
641 uiLocationToRawLocation: function(uiSourceCode, lineNumber, columnNumber) {}, 639 uiLocationToRawLocation(uiSourceCode, lineNumber, columnNumber) {},
642 640
643 /** 641 /**
644 * @return {boolean} 642 * @return {boolean}
645 */ 643 */
646 isIdentity: function() {}, 644 isIdentity() {},
647 645
648 /** 646 /**
649 * @param {!Workspace.UISourceCode} uiSourceCode 647 * @param {!Workspace.UISourceCode} uiSourceCode
650 * @param {number} lineNumber 648 * @param {number} lineNumber
651 * @return {boolean} 649 * @return {boolean}
652 */ 650 */
653 uiLineHasMapping: function(uiSourceCode, lineNumber) {} 651 uiLineHasMapping(uiSourceCode, lineNumber) {}
654 }; 652 };
655 653
656 /** 654 /**
657 * @type {!Bindings.DebuggerWorkspaceBinding} 655 * @type {!Bindings.DebuggerWorkspaceBinding}
658 */ 656 */
659 Bindings.debuggerWorkspaceBinding; 657 Bindings.debuggerWorkspaceBinding;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698