Modified: trunk/Source/WebCore/inspector/InjectedScriptSource.js (105624 => 105625)
--- trunk/Source/WebCore/inspector/InjectedScriptSource.js 2012-01-23 15:52:06 UTC (rev 105624)
+++ trunk/Source/WebCore/inspector/InjectedScriptSource.js 2012-01-23 16:20:40 UTC (rev 105625)
@@ -688,7 +688,7 @@
_normalizeEventTypes: function(types)
{
if (typeof types === "undefined")
- types = [ "mouse", "key", "control", "load", "unload", "abort", "error", "select", "change", "submit", "reset", "focus", "blur", "resize", "scroll", "search", "devicemotion", "deviceorientation" ];
+ types = [ "mouse", "key", "touch", "control", "load", "unload", "abort", "error", "select", "change", "submit", "reset", "focus", "blur", "resize", "scroll", "search", "devicemotion", "deviceorientation" ];
else if (typeof types === "string")
types = [ types ];
@@ -698,6 +698,8 @@
result.splice(0, 0, "mousedown", "mouseup", "click", "dblclick", "mousemove", "mouseover", "mouseout", "mousewheel");
else if (types[i] === "key")
result.splice(0, 0, "keydown", "keyup", "keypress", "textInput");
+ else if (types[i] === "touch")
+ result.splice(0, 0, "touchstart", "touchmove", "touchend", "touchcancel");
else if (types[i] === "control")
result.splice(0, 0, "resize", "scroll", "zoom", "focus", "blur", "select", "change", "submit", "reset");
else
Modified: trunk/Source/WebCore/inspector/front-end/BreakpointsSidebarPane.js (105624 => 105625)
--- trunk/Source/WebCore/inspector/front-end/BreakpointsSidebarPane.js 2012-01-23 15:52:06 UTC (rev 105624)
+++ trunk/Source/WebCore/inspector/front-end/BreakpointsSidebarPane.js 2012-01-23 16:20:40 UTC (rev 105625)
@@ -472,6 +472,7 @@
this._createCategory(WebInspector.UIString("DOM Mutation"), "listener", ["DOMActivate", "DOMFocusIn", "DOMFocusOut", "DOMAttrModified", "DOMCharacterDataModified", "DOMNodeInserted", "DOMNodeInsertedIntoDocument", "DOMNodeRemoved", "DOMNodeRemovedFromDocument", "DOMSubtreeModified", "DOMContentLoaded"]);
this._createCategory(WebInspector.UIString("Device"), "listener", ["deviceorientation", "devicemotion"]);
this._createCategory(WebInspector.UIString("Timer"), "instrumentation", ["setTimer", "clearTimer", "timerFired"]);
+ this._createCategory(WebInspector.UIString("Touch"), "instrumentation", ["touchstart", "touchmove", "touchend", "touchcancel"]);
this._restoreBreakpoints();
}