Commit 3285130b authored by bburg@apple.com's avatar bburg@apple.com

Web Inspector: add probe breakpoint action to popup breakpoint editor

https://bugs.webkit.org/show_bug.cgi?id=126931

Reviewed by Timothy Hatcher.

Add probes to the breakpoint action dropdown.
Reuse the "evaluate JavaScript" input UI.

* Localizations/en.lproj/localizedStrings.js:
* UserInterface/BreakpointAction.js:
* UserInterface/BreakpointActionView.js:
(WebInspector.BreakpointActionView.displayStringForType):
(WebInspector.BreakpointActionView.prototype._updateBody.switch.break):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162136 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 88ce481c
2014-01-16 Brian Burg <bburg@apple.com>
Web Inspector: add probe breakpoint action to popup breakpoint editor
https://bugs.webkit.org/show_bug.cgi?id=126931
Reviewed by Timothy Hatcher.
Add probes to the breakpoint action dropdown.
Reuse the "evaluate JavaScript" input UI.
* Localizations/en.lproj/localizedStrings.js:
* UserInterface/BreakpointAction.js:
* UserInterface/BreakpointActionView.js:
(WebInspector.BreakpointActionView.displayStringForType):
(WebInspector.BreakpointActionView.prototype._updateBody.switch.break):
2014-01-15 Brian Burg <bburg@apple.com>
Web Inspector: capture probe samples on the backend
......
......@@ -47,7 +47,8 @@ WebInspector.BreakpointAction = function(breakpoint, typeOrInfo, data)
WebInspector.BreakpointAction.Type = {
Log: "log",
Evaluate: "evaluate",
Sound: "sound"
Sound: "sound",
Probe: "probe"
}
WebInspector.BreakpointAction.prototype = {
......
......@@ -77,6 +77,8 @@ WebInspector.BreakpointActionView.displayStringForType = function(type)
return WebInspector.UIString("Evaluate JavaScript");
case WebInspector.BreakpointAction.Type.Sound:
return WebInspector.UIString("Play Sound");
case WebInspector.BreakpointAction.Type.Probe:
return WebInspector.UIString("Probe Expression");
default:
console.assert(false);
return "";
......@@ -139,6 +141,7 @@ WebInspector.BreakpointActionView.prototype = {
break;
case WebInspector.BreakpointAction.Type.Evaluate:
case WebInspector.BreakpointAction.Type.Probe:
this._bodyElement.hidden = false;
var editorElement = this._bodyElement.appendChild(document.createElement("div"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment