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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js

Issue 2849583006: [DevTools] Disable contexts in console selector on pause (Closed)
Patch Set: tests 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 * @return {boolean} 682 * @return {boolean}
683 */ 683 */
684 isPausing() { 684 isPausing() {
685 return this._isPausing; 685 return this._isPausing;
686 } 686 }
687 687
688 /** 688 /**
689 * @param {?SDK.DebuggerModel.CallFrame} callFrame 689 * @param {?SDK.DebuggerModel.CallFrame} callFrame
690 */ 690 */
691 setSelectedCallFrame(callFrame) { 691 setSelectedCallFrame(callFrame) {
692 if (this._selectedCallFrame === callFrame)
693 return;
692 this._selectedCallFrame = callFrame; 694 this._selectedCallFrame = callFrame;
693 if (!this._selectedCallFrame) 695 this.dispatchEventToListeners(SDK.DebuggerModel.Events.CallFrameSelected, th is);
694 return;
695
696 this.dispatchEventToListeners(SDK.DebuggerModel.Events.CallFrameSelected, ca llFrame);
697 } 696 }
698 697
699 /** 698 /**
700 * @return {?SDK.DebuggerModel.CallFrame} 699 * @return {?SDK.DebuggerModel.CallFrame}
701 */ 700 */
702 selectedCallFrame() { 701 selectedCallFrame() {
703 return this._selectedCallFrame; 702 return this._selectedCallFrame;
704 } 703 }
705 704
706 /** 705 /**
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 stack.callFrames.shift(); 1462 stack.callFrames.shift();
1464 if (previous && (!stack.callFrames.length && !stack.promiseCreationFrame)) 1463 if (previous && (!stack.callFrames.length && !stack.promiseCreationFrame))
1465 previous.parent = stack.parent; 1464 previous.parent = stack.parent;
1466 else 1465 else
1467 previous = stack; 1466 previous = stack;
1468 stack = stack.parent; 1467 stack = stack.parent;
1469 } 1468 }
1470 return asyncStackTrace; 1469 return asyncStackTrace;
1471 } 1470 }
1472 }; 1471 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698