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

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

Issue 400633003: DevTools: introduce multitarget model listeners (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.SDKObject} 33 * @extends {WebInspector.SDKModel}
34 * @param {!WebInspector.Target} target 34 * @param {!WebInspector.Target} target
35 */ 35 */
36 WebInspector.DebuggerModel = function(target) 36 WebInspector.DebuggerModel = function(target)
37 { 37 {
38 WebInspector.SDKObject.call(this, target); 38 WebInspector.SDKModel.call(this, WebInspector.DebuggerModel, target);
39 39
40 target.registerDebuggerDispatcher(new WebInspector.DebuggerDispatcher(this)) ; 40 target.registerDebuggerDispatcher(new WebInspector.DebuggerDispatcher(this)) ;
41 this._agent = target.debuggerAgent(); 41 this._agent = target.debuggerAgent();
42 42
43 /** @type {?WebInspector.DebuggerPausedDetails} */ 43 /** @type {?WebInspector.DebuggerPausedDetails} */
44 this._debuggerPausedDetails = null; 44 this._debuggerPausedDetails = null;
45 /** @type {!Object.<string, !WebInspector.Script>} */ 45 /** @type {!Object.<string, !WebInspector.Script>} */
46 this._scripts = {}; 46 this._scripts = {};
47 /** @type {!StringMap.<!Array.<!WebInspector.Script>>} */ 47 /** @type {!StringMap.<!Array.<!WebInspector.Script>>} */
48 this._scriptsBySourceURL = new StringMap(); 48 this._scriptsBySourceURL = new StringMap();
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 }, 759 },
760 760
761 dispose: function() 761 dispose: function()
762 { 762 {
763 WebInspector.settings.pauseOnExceptionEnabled.removeChangeListener(this. _pauseOnExceptionStateChanged, this); 763 WebInspector.settings.pauseOnExceptionEnabled.removeChangeListener(this. _pauseOnExceptionStateChanged, this);
764 WebInspector.settings.pauseOnCaughtException.removeChangeListener(this._ pauseOnExceptionStateChanged, this); 764 WebInspector.settings.pauseOnCaughtException.removeChangeListener(this._ pauseOnExceptionStateChanged, this);
765 WebInspector.settings.skipStackFramesPattern.removeChangeListener(this._ applySkipStackFrameSettings, this); 765 WebInspector.settings.skipStackFramesPattern.removeChangeListener(this._ applySkipStackFrameSettings, this);
766 WebInspector.settings.enableAsyncStackTraces.removeChangeListener(this._ asyncStackTracesStateChanged, this); 766 WebInspector.settings.enableAsyncStackTraces.removeChangeListener(this._ asyncStackTracesStateChanged, this);
767 }, 767 },
768 768
769 __proto__: WebInspector.SDKObject.prototype 769 __proto__: WebInspector.SDKModel.prototype
770 } 770 }
771 771
772 WebInspector.DebuggerEventTypes = { 772 WebInspector.DebuggerEventTypes = {
773 JavaScriptPause: 0, 773 JavaScriptPause: 0,
774 JavaScriptBreakpoint: 1, 774 JavaScriptBreakpoint: 1,
775 NativeBreakpoint: 2 775 NativeBreakpoint: 2
776 }; 776 };
777 777
778 /** 778 /**
779 * @constructor 779 * @constructor
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 this.asyncStackTrace.dispose(); 1196 this.asyncStackTrace.dispose();
1197 }, 1197 },
1198 1198
1199 __proto__: WebInspector.SDKObject.prototype 1199 __proto__: WebInspector.SDKObject.prototype
1200 } 1200 }
1201 1201
1202 /** 1202 /**
1203 * @type {!WebInspector.DebuggerModel} 1203 * @type {!WebInspector.DebuggerModel}
1204 */ 1204 */
1205 WebInspector.debuggerModel; 1205 WebInspector.debuggerModel;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/Database.js ('k') | Source/devtools/front_end/sdk/HeapProfilerModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698