Web Inspector: document Debugger.paused, introduce types for ids in Debugger domain.
[WebKit.git] / Source / WebCore / inspector / front-end / DOMBreakpointsSidebarPane.js
index 279748c..17b48cf 100644 (file)
@@ -86,34 +86,34 @@ WebInspector.DOMBreakpointsSidebarPane.prototype = {
         }
     },
 
-    createBreakpointHitStatusMessage: function(eventData, callback)
+    createBreakpointHitStatusMessage: function(auxData, callback)
     {
-        if (eventData.type === this._breakpointTypes.SubtreeModified) {
-            var targetNodeObject = WebInspector.RemoteObject.fromPayload(eventData.targetNode);
+        if (auxData.type === this._breakpointTypes.SubtreeModified) {
+            var targetNodeObject = WebInspector.RemoteObject.fromPayload(auxData.targetNode);
             function didPushNodeToFrontend(targetNodeId)
             {
                 if (targetNodeId)
                     targetNodeObject.release();
-                this._doCreateBreakpointHitStatusMessage(eventData, targetNodeId, callback);
+                this._doCreateBreakpointHitStatusMessage(auxData, targetNodeId, callback);
             }
             targetNodeObject.pushNodeToFrontend(didPushNodeToFrontend.bind(this));
         } else
-            this._doCreateBreakpointHitStatusMessage(eventData, null, callback);
+            this._doCreateBreakpointHitStatusMessage(auxData, null, callback);
     },
 
-    _doCreateBreakpointHitStatusMessage: function (eventData, targetNodeId, callback)
+    _doCreateBreakpointHitStatusMessage: function (auxData, targetNodeId, callback)
     {
         var message;
-        var typeLabel = this._breakpointTypeLabels[eventData.type];
-        var linkifiedNode = WebInspector.panels.elements.linkifyNodeById(eventData.nodeId);
+        var typeLabel = this._breakpointTypeLabels[auxData.type];
+        var linkifiedNode = WebInspector.panels.elements.linkifyNodeById(auxData.nodeId);
         var substitutions = [typeLabel, linkifiedNode];
         var targetNode = "";
         if (targetNodeId)
             targetNode = WebInspector.panels.elements.linkifyNodeById(targetNodeId);
 
-        if (eventData.type === this._breakpointTypes.SubtreeModified) {
-            if (eventData.insertion) {
-                if (targetNodeId !== eventData.nodeId) {
+        if (auxData.type === this._breakpointTypes.SubtreeModified) {
+            if (auxData.insertion) {
+                if (targetNodeId !== auxData.nodeId) {
                     message = "Paused on a \"%s\" breakpoint set on %s, because a new child was added to its descendant %s.";
                     substitutions.push(targetNode);
                 } else
@@ -240,9 +240,9 @@ WebInspector.DOMBreakpointsSidebarPane.prototype = {
         this._saveBreakpoints();
     },
 
-    highlightBreakpoint: function(eventData)
+    highlightBreakpoint: function(auxData)
     {
-        var breakpointId = this._createBreakpointId(eventData.nodeId, eventData.type);
+        var breakpointId = this._createBreakpointId(auxData.nodeId, auxData.type);
         var element = this._breakpointElements[breakpointId];
         if (!element)
             return;