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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js

Issue 2629073004: ac (Closed)
Patch Set: Created 3 years, 11 months 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 /** @type {!Map.<!SDK.Target, !Bindings.ResourceScriptFile>}*/ 74 /** @type {!Map.<!SDK.Target, !Bindings.ResourceScriptFile>}*/
75 this._scriptFileForTarget = new Map(); 75 this._scriptFileForTarget = new Map();
76 76
77 Common.moduleSetting('skipStackFramesPattern').addChangeListener(this._showB lackboxInfobarIfNeeded, this); 77 Common.moduleSetting('skipStackFramesPattern').addChangeListener(this._showB lackboxInfobarIfNeeded, this);
78 Common.moduleSetting('skipContentScripts').addChangeListener(this._showBlack boxInfobarIfNeeded, this); 78 Common.moduleSetting('skipContentScripts').addChangeListener(this._showBlack boxInfobarIfNeeded, this);
79 79
80 /** @type {!Map.<number, !Element>} */ 80 /** @type {!Map.<number, !Element>} */
81 this._valueWidgets = new Map(); 81 this._valueWidgets = new Map();
82 this.onBindingChanged(); 82 this.onBindingChanged();
83 Bindings.debuggerWorkspaceBinding.addEventListener( 83 Bindings.debuggerWorkspaceBinding.addEventListener(
84 Bindings.DebuggerWorkspaceBinding.Events.SourceMappingChanged, this._o nSourceMappingChanged, this); 84 Bindings.DebuggerWorkspaceBinding.Events.SourceMappingChanged, this._onS ourceMappingChanged, this);
85 } 85 }
86 86
87 /** 87 /**
88 * @override 88 * @override
89 * @return {!Array<!UI.ToolbarItem>} 89 * @return {!Array<!UI.ToolbarItem>}
90 */ 90 */
91 syncToolbarItems() { 91 syncToolbarItems() {
92 var result = super.syncToolbarItems(); 92 var result = super.syncToolbarItems();
93 var originURL = Bindings.CompilerScriptMapping.uiSourceCodeOrigin(this._debu ggerSourceCode); 93 var originURL = Bindings.CompilerScriptMapping.uiSourceCodeOrigin(this._debu ggerSourceCode);
94 if (originURL) { 94 if (originURL) {
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 if (!executionContext) 564 if (!executionContext)
565 return; 565 return;
566 var callFrame = UI.context.flavor(SDK.DebuggerModel.CallFrame); 566 var callFrame = UI.context.flavor(SDK.DebuggerModel.CallFrame);
567 if (!callFrame) 567 if (!callFrame)
568 return; 568 return;
569 569
570 var localScope = callFrame.localScope(); 570 var localScope = callFrame.localScope();
571 var functionLocation = callFrame.functionLocation(); 571 var functionLocation = callFrame.functionLocation();
572 if (localScope && functionLocation) { 572 if (localScope && functionLocation) {
573 Sources.SourceMapNamesResolver.resolveScopeInObject(localScope) 573 Sources.SourceMapNamesResolver.resolveScopeInObject(localScope)
574 .getAllProperties(false, this._prepareScopeVariables.bind(this, callFr ame)); 574 .getAllProperties(false, false, this._prepareScopeVariables.bind(this, callFrame));
575 } 575 }
576 576
577 if (this._clearValueWidgetsTimer) { 577 if (this._clearValueWidgetsTimer) {
578 clearTimeout(this._clearValueWidgetsTimer); 578 clearTimeout(this._clearValueWidgetsTimer);
579 delete this._clearValueWidgetsTimer; 579 delete this._clearValueWidgetsTimer;
580 } 580 }
581 } 581 }
582 582
583 /** 583 /**
584 * @param {!SDK.DebuggerModel.CallFrame} callFrame 584 * @param {!SDK.DebuggerModel.CallFrame} callFrame
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 * @param {boolean} enabled 1287 * @param {boolean} enabled
1288 */ 1288 */
1289 _breakpointWasSetForTest(lineNumber, columnNumber, condition, enabled) { 1289 _breakpointWasSetForTest(lineNumber, columnNumber, condition, enabled) {
1290 } 1290 }
1291 1291
1292 /** 1292 /**
1293 * @override 1293 * @override
1294 */ 1294 */
1295 dispose() { 1295 dispose() {
1296 Bindings.debuggerWorkspaceBinding.removeEventListener( 1296 Bindings.debuggerWorkspaceBinding.removeEventListener(
1297 Bindings.DebuggerWorkspaceBinding.Events.SourceMappingChanged, this._o nSourceMappingChanged, this); 1297 Bindings.DebuggerWorkspaceBinding.Events.SourceMappingChanged, this._onS ourceMappingChanged, this);
1298 this._breakpointManager.removeEventListener( 1298 this._breakpointManager.removeEventListener(
1299 Bindings.BreakpointManager.Events.BreakpointAdded, this._breakpointAdded , this); 1299 Bindings.BreakpointManager.Events.BreakpointAdded, this._breakpointAdded , this);
1300 this._breakpointManager.removeEventListener( 1300 this._breakpointManager.removeEventListener(
1301 Bindings.BreakpointManager.Events.BreakpointRemoved, this._breakpointRem oved, this); 1301 Bindings.BreakpointManager.Events.BreakpointRemoved, this._breakpointRem oved, this);
1302 this.uiSourceCode().removeEventListener( 1302 this.uiSourceCode().removeEventListener(
1303 Workspace.UISourceCode.Events.WorkingCopyChanged, this._workingCopyChang ed, this); 1303 Workspace.UISourceCode.Events.WorkingCopyChanged, this._workingCopyChang ed, this);
1304 this.uiSourceCode().removeEventListener( 1304 this.uiSourceCode().removeEventListener(
1305 Workspace.UISourceCode.Events.WorkingCopyCommitted, this._workingCopyCom mitted, this); 1305 Workspace.UISourceCode.Events.WorkingCopyCommitted, this._workingCopyCom mitted, this);
1306 this.uiSourceCode().removeEventListener( 1306 this.uiSourceCode().removeEventListener(
1307 Workspace.UISourceCode.Events.TitleChanged, this._showBlackboxInfobarIfN eeded, this); 1307 Workspace.UISourceCode.Events.TitleChanged, this._showBlackboxInfobarIfN eeded, this);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 hide() { 1372 hide() {
1373 if (!this.bookmark) 1373 if (!this.bookmark)
1374 return; 1374 return;
1375 this.bookmark.clear(); 1375 this.bookmark.clear();
1376 this.bookmark = null; 1376 this.bookmark = null;
1377 } 1377 }
1378 }; 1378 };
1379 1379
1380 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark'); 1380 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark');
1381 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element'); 1381 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698