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

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

Issue 2842843003: DevTools: Display product information in ConsoleContextSelector (Closed)
Patch Set: cleanup Created 3 years, 7 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) 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 291 }
292 292
293 /** 293 /**
294 * @param {!Sources.CallStackSidebarPane.Item} item 294 * @param {!Sources.CallStackSidebarPane.Item} item
295 */ 295 */
296 _activateItem(item) { 296 _activateItem(item) {
297 var location = this._itemLocation(item); 297 var location = this._itemLocation(item);
298 if (!location) 298 if (!location)
299 return; 299 return;
300 if (item.debuggerCallFrame && UI.context.flavor(SDK.DebuggerModel.CallFrame) !== item.debuggerCallFrame) { 300 if (item.debuggerCallFrame && UI.context.flavor(SDK.DebuggerModel.CallFrame) !== item.debuggerCallFrame) {
301 this._debuggerModel.setSelectedCallFrame(item.debuggerCallFrame);
301 UI.context.setFlavor(SDK.DebuggerModel.CallFrame, item.debuggerCallFrame); 302 UI.context.setFlavor(SDK.DebuggerModel.CallFrame, item.debuggerCallFrame);
einbinder 2017/05/05 22:58:00 The ConsoleContextSelector checks the selectedCall
302 this._debuggerModel.setSelectedCallFrame(item.debuggerCallFrame);
303 } else { 303 } else {
304 Common.Revealer.reveal(Bindings.debuggerWorkspaceBinding.rawLocationToUILo cation(location)); 304 Common.Revealer.reveal(Bindings.debuggerWorkspaceBinding.rawLocationToUILo cation(location));
305 } 305 }
306 } 306 }
307 307
308 /** 308 /**
309 * @param {!UI.ContextMenu} contextMenu 309 * @param {!UI.ContextMenu} contextMenu
310 * @param {!Workspace.UISourceCode} uiSourceCode 310 * @param {!Workspace.UISourceCode} uiSourceCode
311 */ 311 */
312 appendBlackboxURLContextMenuItems(contextMenu, uiSourceCode) { 312 appendBlackboxURLContextMenuItems(contextMenu, uiSourceCode) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698