| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 } | 289 } |
| 290 | 290 |
| 291 /** | 291 /** |
| 292 * @param {!Sources.CallStackSidebarPane.Item} item | 292 * @param {!Sources.CallStackSidebarPane.Item} item |
| 293 */ | 293 */ |
| 294 _activateItem(item) { | 294 _activateItem(item) { |
| 295 var location = this._itemLocation(item); | 295 var location = this._itemLocation(item); |
| 296 if (!location) | 296 if (!location) |
| 297 return; | 297 return; |
| 298 if (item.debuggerCallFrame && UI.context.flavor(SDK.DebuggerModel.CallFrame)
!== item.debuggerCallFrame) { | 298 if (item.debuggerCallFrame && UI.context.flavor(SDK.DebuggerModel.CallFrame)
!== item.debuggerCallFrame) { |
| 299 this._debuggerModel.setSelectedCallFrame(item.debuggerCallFrame); |
| 299 UI.context.setFlavor(SDK.DebuggerModel.CallFrame, item.debuggerCallFrame); | 300 UI.context.setFlavor(SDK.DebuggerModel.CallFrame, item.debuggerCallFrame); |
| 300 this._debuggerModel.setSelectedCallFrame(item.debuggerCallFrame); | |
| 301 } else { | 301 } else { |
| 302 Common.Revealer.reveal(Bindings.debuggerWorkspaceBinding.rawLocationToUILo
cation(location)); | 302 Common.Revealer.reveal(Bindings.debuggerWorkspaceBinding.rawLocationToUILo
cation(location)); |
| 303 } | 303 } |
| 304 } | 304 } |
| 305 | 305 |
| 306 /** | 306 /** |
| 307 * @param {!UI.ContextMenu} contextMenu | 307 * @param {!UI.ContextMenu} contextMenu |
| 308 * @param {!Workspace.UISourceCode} uiSourceCode | 308 * @param {!Workspace.UISourceCode} uiSourceCode |
| 309 */ | 309 */ |
| 310 appendBlackboxURLContextMenuItems(contextMenu, uiSourceCode) { | 310 appendBlackboxURLContextMenuItems(contextMenu, uiSourceCode) { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 385 |
| 386 /** | 386 /** |
| 387 * @typedef {{ | 387 * @typedef {{ |
| 388 * debuggerCallFrame: (SDK.DebuggerModel.CallFrame|undefined), | 388 * debuggerCallFrame: (SDK.DebuggerModel.CallFrame|undefined), |
| 389 * asyncStackHeader: (string|undefined), | 389 * asyncStackHeader: (string|undefined), |
| 390 * runtimeCallFrame: (Protocol.Runtime.CallFrame|undefined), | 390 * runtimeCallFrame: (Protocol.Runtime.CallFrame|undefined), |
| 391 * promiseCreationFrame: (Protocol.Runtime.CallFrame|undefined) | 391 * promiseCreationFrame: (Protocol.Runtime.CallFrame|undefined) |
| 392 * }} | 392 * }} |
| 393 */ | 393 */ |
| 394 Sources.CallStackSidebarPane.Item; | 394 Sources.CallStackSidebarPane.Item; |
| OLD | NEW |