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

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

Issue 548323002: DevTools: Blackbox content scripts - frontend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added a test Created 6 years, 3 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 | Annotate | Revision Log
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 this._isPausing = false; 53 this._isPausing = false;
54 WebInspector.settings.pauseOnExceptionEnabled.addChangeListener(this._pauseO nExceptionStateChanged, this); 54 WebInspector.settings.pauseOnExceptionEnabled.addChangeListener(this._pauseO nExceptionStateChanged, this);
55 WebInspector.settings.pauseOnCaughtException.addChangeListener(this._pauseOn ExceptionStateChanged, this); 55 WebInspector.settings.pauseOnCaughtException.addChangeListener(this._pauseOn ExceptionStateChanged, this);
56 56
57 WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asyncSt ackTracesStateChanged, this); 57 WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asyncSt ackTracesStateChanged, this);
58 WebInspector.profilingLock().addEventListener(WebInspector.Lock.Events.State Changed, this._profilingStateChanged, this); 58 WebInspector.profilingLock().addEventListener(WebInspector.Lock.Events.State Changed, this._profilingStateChanged, this);
59 59
60 this.enableDebugger(); 60 this.enableDebugger();
61 61
62 WebInspector.settings.skipStackFramesPattern.addChangeListener(this._applySk ipStackFrameSettings, this); 62 WebInspector.settings.skipStackFramesPattern.addChangeListener(this._applySk ipStackFrameSettings, this);
63 WebInspector.settings.skipContentScripts.addChangeListener(this._applySkipSt ackFrameSettings, this);
63 this._applySkipStackFrameSettings(); 64 this._applySkipStackFrameSettings();
64 } 65 }
65 66
66 /** @typedef {{location: ?WebInspector.DebuggerModel.Location, sourceURL: ?strin g, functionName: string, scopeChain: (Array.<!DebuggerAgent.Scope>|null)}} */ 67 /** @typedef {{location: ?WebInspector.DebuggerModel.Location, sourceURL: ?strin g, functionName: string, scopeChain: (Array.<!DebuggerAgent.Scope>|null)}} */
67 WebInspector.DebuggerModel.FunctionDetails; 68 WebInspector.DebuggerModel.FunctionDetails;
68 69
69 /** 70 /**
70 * Keep these in sync with WebCore::ScriptDebugServer 71 * Keep these in sync with WebCore::ScriptDebugServer
71 * 72 *
72 * @enum {string} 73 * @enum {string}
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 { 660 {
660 // FIXME: declare this property in protocol and in JavaScript. 661 // FIXME: declare this property in protocol and in JavaScript.
661 if (details && details["stack_update_needs_step_in"]) 662 if (details && details["stack_update_needs_step_in"])
662 this.stepInto(); 663 this.stepInto();
663 else if (newCallFrames && newCallFrames.length) 664 else if (newCallFrames && newCallFrames.length)
664 this._pausedScript(newCallFrames, this._debuggerPausedDetails.reason , this._debuggerPausedDetails.auxData, this._debuggerPausedDetails.breakpointIds , asyncStackTrace); 665 this._pausedScript(newCallFrames, this._debuggerPausedDetails.reason , this._debuggerPausedDetails.auxData, this._debuggerPausedDetails.breakpointIds , asyncStackTrace);
665 }, 666 },
666 667
667 _applySkipStackFrameSettings: function() 668 _applySkipStackFrameSettings: function()
668 { 669 {
669 this._agent.skipStackFrames(WebInspector.settings.skipStackFramesPattern .get()); 670 this._agent.skipStackFrames(WebInspector.settings.skipStackFramesPattern .get(), WebInspector.settings.skipContentScripts.get());
670 }, 671 },
671 672
672 /** 673 /**
673 * @param {!WebInspector.RemoteObject} remoteObject 674 * @param {!WebInspector.RemoteObject} remoteObject
674 * @param {function(?WebInspector.DebuggerModel.FunctionDetails)} callback 675 * @param {function(?WebInspector.DebuggerModel.FunctionDetails)} callback
675 */ 676 */
676 functionDetails: function(remoteObject, callback) 677 functionDetails: function(remoteObject, callback)
677 { 678 {
678 this._agent.getFunctionDetails(remoteObject.objectId, didGetDetails.bind (this)); 679 this._agent.getFunctionDetails(remoteObject.objectId, didGetDetails.bind (this));
679 680
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 removeBreakpointListener: function(breakpointId, listener, thisObject) 716 removeBreakpointListener: function(breakpointId, listener, thisObject)
716 { 717 {
717 this._breakpointResolvedEventTarget.removeEventListener(breakpointId, li stener, thisObject); 718 this._breakpointResolvedEventTarget.removeEventListener(breakpointId, li stener, thisObject);
718 }, 719 },
719 720
720 dispose: function() 721 dispose: function()
721 { 722 {
722 WebInspector.settings.pauseOnExceptionEnabled.removeChangeListener(this. _pauseOnExceptionStateChanged, this); 723 WebInspector.settings.pauseOnExceptionEnabled.removeChangeListener(this. _pauseOnExceptionStateChanged, this);
723 WebInspector.settings.pauseOnCaughtException.removeChangeListener(this._ pauseOnExceptionStateChanged, this); 724 WebInspector.settings.pauseOnCaughtException.removeChangeListener(this._ pauseOnExceptionStateChanged, this);
724 WebInspector.settings.skipStackFramesPattern.removeChangeListener(this._ applySkipStackFrameSettings, this); 725 WebInspector.settings.skipStackFramesPattern.removeChangeListener(this._ applySkipStackFrameSettings, this);
726 WebInspector.settings.skipContentScripts.removeChangeListener(this._appl ySkipStackFrameSettings, this);
725 WebInspector.settings.enableAsyncStackTraces.removeChangeListener(this._ asyncStackTracesStateChanged, this); 727 WebInspector.settings.enableAsyncStackTraces.removeChangeListener(this._ asyncStackTracesStateChanged, this);
726 }, 728 },
727 729
728 __proto__: WebInspector.SDKModel.prototype 730 __proto__: WebInspector.SDKModel.prototype
729 } 731 }
730 732
731 WebInspector.DebuggerEventTypes = { 733 WebInspector.DebuggerEventTypes = {
732 JavaScriptPause: 0, 734 JavaScriptPause: 0,
733 JavaScriptBreakpoint: 1, 735 JavaScriptBreakpoint: 1,
734 NativeBreakpoint: 2 736 NativeBreakpoint: 2
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 return this.target().runtimeModel.createRemoteObject(/** @type {!Runtime Agent.RemoteObject} */(this.auxData)); 1102 return this.target().runtimeModel.createRemoteObject(/** @type {!Runtime Agent.RemoteObject} */(this.auxData));
1101 }, 1103 },
1102 1104
1103 __proto__: WebInspector.SDKObject.prototype 1105 __proto__: WebInspector.SDKObject.prototype
1104 } 1106 }
1105 1107
1106 /** 1108 /**
1107 * @type {!WebInspector.DebuggerModel} 1109 * @type {!WebInspector.DebuggerModel}
1108 */ 1110 */
1109 WebInspector.debuggerModel; 1111 WebInspector.debuggerModel;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/BlackboxSupport.js ('k') | Source/devtools/front_end/settings/FrameworkBlackboxDialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698