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

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

Issue 369853002: DevTools: Rename TargetAwareObject into SDKObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 { 688 {
689 this._removeFakeBreakpointAtPrimaryLocation(); 689 this._removeFakeBreakpointAtPrimaryLocation();
690 var targetBreakpoints = this._targetBreakpoints.values(); 690 var targetBreakpoints = this._targetBreakpoints.values();
691 for (var i = 0; i < targetBreakpoints.length; ++i) 691 for (var i = 0; i < targetBreakpoints.length; ++i)
692 targetBreakpoints[i]._resetLocations(); 692 targetBreakpoints[i]._resetLocations();
693 } 693 }
694 } 694 }
695 695
696 /** 696 /**
697 * @constructor 697 * @constructor
698 * @extends {WebInspector.TargetAware} 698 * @extends {WebInspector.SDKObject}
699 * @param {!WebInspector.Target} target 699 * @param {!WebInspector.Target} target
700 * @param {!WebInspector.BreakpointManager.Breakpoint} breakpoint 700 * @param {!WebInspector.BreakpointManager.Breakpoint} breakpoint
701 */ 701 */
702 WebInspector.BreakpointManager.TargetBreakpoint = function(target, breakpoint) 702 WebInspector.BreakpointManager.TargetBreakpoint = function(target, breakpoint)
703 { 703 {
704 WebInspector.TargetAware.call(this, target); 704 WebInspector.SDKObject.call(this, target);
705 this._breakpoint = breakpoint; 705 this._breakpoint = breakpoint;
706 /** @type {!Array.<!WebInspector.Script.Location>} */ 706 /** @type {!Array.<!WebInspector.Script.Location>} */
707 this._liveLocations = []; 707 this._liveLocations = [];
708 708
709 /** @type {!Object.<string, !WebInspector.UILocation>} */ 709 /** @type {!Object.<string, !WebInspector.UILocation>} */
710 this._uiLocations = {}; 710 this._uiLocations = {};
711 target.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.Debu ggerWasDisabled, this._cleanUpAfterDebuggerIsGone, this); 711 target.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.Debu ggerWasDisabled, this._cleanUpAfterDebuggerIsGone, this);
712 target.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.Debu ggerWasEnabled, this._updateInDebugger, this); 712 target.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.Debu ggerWasEnabled, this._updateInDebugger, this);
713 if (target.debuggerModel.debuggerEnabled()) 713 if (target.debuggerModel.debuggerEnabled())
714 this._updateInDebugger(); 714 this._updateInDebugger();
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 if (this._debuggerId) 843 if (this._debuggerId)
844 this._didRemoveFromDebugger(); 844 this._didRemoveFromDebugger();
845 }, 845 },
846 846
847 _removeEventListeners: function() 847 _removeEventListeners: function()
848 { 848 {
849 this.target().debuggerModel.removeEventListener(WebInspector.DebuggerMod el.Events.DebuggerWasDisabled, this._cleanUpAfterDebuggerIsGone, this); 849 this.target().debuggerModel.removeEventListener(WebInspector.DebuggerMod el.Events.DebuggerWasDisabled, this._cleanUpAfterDebuggerIsGone, this);
850 this.target().debuggerModel.removeEventListener(WebInspector.DebuggerMod el.Events.DebuggerWasEnabled, this._updateInDebugger, this); 850 this.target().debuggerModel.removeEventListener(WebInspector.DebuggerMod el.Events.DebuggerWasEnabled, this._updateInDebugger, this);
851 }, 851 },
852 852
853 __proto__: WebInspector.TargetAware.prototype 853 __proto__: WebInspector.SDKObject.prototype
854 } 854 }
855 855
856 /** 856 /**
857 * @constructor 857 * @constructor
858 * @param {!WebInspector.BreakpointManager} breakpointManager 858 * @param {!WebInspector.BreakpointManager} breakpointManager
859 * @param {!WebInspector.Setting} setting 859 * @param {!WebInspector.Setting} setting
860 */ 860 */
861 WebInspector.BreakpointManager.Storage = function(breakpointManager, setting) 861 WebInspector.BreakpointManager.Storage = function(breakpointManager, setting)
862 { 862 {
863 this._breakpointManager = breakpointManager; 863 this._breakpointManager = breakpointManager;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 { 938 {
939 this.sourceFileId = breakpoint._sourceFileId; 939 this.sourceFileId = breakpoint._sourceFileId;
940 this.lineNumber = breakpoint.lineNumber(); 940 this.lineNumber = breakpoint.lineNumber();
941 this.columnNumber = breakpoint.columnNumber(); 941 this.columnNumber = breakpoint.columnNumber();
942 this.condition = breakpoint.condition(); 942 this.condition = breakpoint.condition();
943 this.enabled = breakpoint.enabled(); 943 this.enabled = breakpoint.enabled();
944 } 944 }
945 945
946 /** @type {!WebInspector.BreakpointManager} */ 946 /** @type {!WebInspector.BreakpointManager} */
947 WebInspector.breakpointManager; 947 WebInspector.breakpointManager;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/ApplicationCacheModel.js ('k') | Source/devtools/front_end/sdk/CPUProfilerModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698