OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 _copyStackTrace() { | 360 _copyStackTrace() { |
361 var text = []; | 361 var text = []; |
362 for (var i = 0; i < this._list.length(); i++) { | 362 for (var i = 0; i < this._list.length(); i++) { |
363 var item = this._list.itemAtIndex(i); | 363 var item = this._list.itemAtIndex(i); |
364 if (item.promiseCreationFrame) | 364 if (item.promiseCreationFrame) |
365 continue; | 365 continue; |
366 var itemText = this._itemTitle(item); | 366 var itemText = this._itemTitle(item); |
367 var location = this._itemLocation(item); | 367 var location = this._itemLocation(item); |
368 if (location) { | 368 if (location) { |
369 var uiLocation = Bindings.debuggerWorkspaceBinding.rawLocationToUILocati
on(location); | 369 var uiLocation = Bindings.debuggerWorkspaceBinding.rawLocationToUILocati
on(location); |
370 itemText += ' (' + uiLocation.linkText() + ')'; | 370 itemText += ' (' + uiLocation.linkText(true /* skipTrim */) + ')'; |
371 } | 371 } |
372 text.push(itemText); | 372 text.push(itemText); |
373 } | 373 } |
374 InspectorFrontendHost.copyText(text.join('\n')); | 374 InspectorFrontendHost.copyText(text.join('\n')); |
375 } | 375 } |
376 | 376 |
377 /** | 377 /** |
378 * @param {function(!Array.<!UI.KeyboardShortcut.Descriptor>, function(!Event=
):boolean)} registerShortcutDelegate | 378 * @param {function(!Array.<!UI.KeyboardShortcut.Descriptor>, function(!Event=
):boolean)} registerShortcutDelegate |
379 */ | 379 */ |
380 registerShortcuts(registerShortcutDelegate) { | 380 registerShortcuts(registerShortcutDelegate) { |
381 registerShortcutDelegate( | 381 registerShortcutDelegate( |
382 UI.ShortcutsScreen.SourcesPanelShortcuts.NextCallFrame, this._selectNext
CallFrameOnStack.bind(this)); | 382 UI.ShortcutsScreen.SourcesPanelShortcuts.NextCallFrame, this._selectNext
CallFrameOnStack.bind(this)); |
383 registerShortcutDelegate( | 383 registerShortcutDelegate( |
384 UI.ShortcutsScreen.SourcesPanelShortcuts.PrevCallFrame, this._selectPrev
iousCallFrameOnStack.bind(this)); | 384 UI.ShortcutsScreen.SourcesPanelShortcuts.PrevCallFrame, this._selectPrev
iousCallFrameOnStack.bind(this)); |
385 } | 385 } |
386 }; | 386 }; |
387 | 387 |
388 /** | 388 /** |
389 * @typedef {{ | 389 * @typedef {{ |
390 * debuggerCallFrame: (SDK.DebuggerModel.CallFrame|undefined), | 390 * debuggerCallFrame: (SDK.DebuggerModel.CallFrame|undefined), |
391 * asyncStackHeader: (string|undefined), | 391 * asyncStackHeader: (string|undefined), |
392 * runtimeCallFrame: (Protocol.Runtime.CallFrame|undefined), | 392 * runtimeCallFrame: (Protocol.Runtime.CallFrame|undefined), |
393 * promiseCreationFrame: (Protocol.Runtime.CallFrame|undefined) | 393 * promiseCreationFrame: (Protocol.Runtime.CallFrame|undefined) |
394 * }} | 394 * }} |
395 */ | 395 */ |
396 Sources.CallStackSidebarPane.Item; | 396 Sources.CallStackSidebarPane.Item; |
OLD | NEW |