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

Unified Diff: Source/devtools/front_end/DebuggerModel.js

Issue 14294004: Implementing console command 'debug'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/DebuggerModel.js
diff --git a/Source/devtools/front_end/DebuggerModel.js b/Source/devtools/front_end/DebuggerModel.js
index fdf6d8adcb9ee71247b631a4a06d4857e62bc724..9f534bd3ca613c7455046fb8af029feb21d4d3bf 100644
--- a/Source/devtools/front_end/DebuggerModel.js
+++ b/Source/devtools/front_end/DebuggerModel.js
@@ -85,7 +85,8 @@ WebInspector.DebuggerModel.Events = {
CallFrameSelected: "CallFrameSelected",
ExecutionLineChanged: "ExecutionLineChanged",
ConsoleCommandEvaluatedInSelectedCallFrame: "ConsoleCommandEvaluatedInSelectedCallFrame",
- BreakpointsActiveStateChanged: "BreakpointsActiveStateChanged"
+ BreakpointsActiveStateChanged: "BreakpointsActiveStateChanged",
+ SetBreakpointRequested: "SetBreakpointRequested"
}
WebInspector.DebuggerModel.BreakReason = {
@@ -253,6 +254,14 @@ WebInspector.DebuggerModel.prototype = {
this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.BreakpointResolved, {breakpointId: breakpointId, location: location});
},
+ /**
+ * @param {DebuggerAgent.Location} location
+ */
+ _setBreakpointRequested: function(location)
+ {
+ this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.SetBreakpointRequested, {location: location});
+ },
+
_globalObjectCleared: function()
{
this._setDebuggerPausedDetails(null);
@@ -672,6 +681,14 @@ WebInspector.DebuggerDispatcher.prototype = {
breakpointResolved: function(breakpointId, location)
{
this._debuggerModel._breakpointResolved(breakpointId, location);
+ },
+
+ /**
+ * @param {DebuggerAgent.Location} location
+ */
+ setBreakpointRequested: function(location)
+ {
+ this._debuggerModel._setBreakpointRequested(location);
}
}

Powered by Google App Engine
This is Rietveld 408576698