Changeset 92171 in webkit


Ignore:
Timestamp:
Aug 2, 2011 2:25:06 AM (13 years ago)
Author:
pfeldman@chromium.org
Message:

Web Inspector: _normalizeEventTypes (via console's monitorEvents) doesnt handle all events like 'search' and other atypical ones.
https://bugs.webkit.org/show_bug.cgi?id=65468

Reviewed by Yury Semikhatsky.

  • inspector/InjectedScriptSource.js:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r92170 r92171  
     12011-08-02  Pavel Feldman  <pfeldman@google.com>
     2
     3        Web Inspector: _normalizeEventTypes (via console's monitorEvents) doesnt handle all events like 'search' and other atypical ones.
     4        https://bugs.webkit.org/show_bug.cgi?id=65468
     5
     6        Reviewed by Yury Semikhatsky.
     7
     8        * inspector/InjectedScriptSource.js:
     9
    1102011-08-02  Pavel Feldman  <pfeldman@google.com>
    211
  • trunk/Source/WebCore/inspector/InjectedScriptSource.js

    r92122 r92171  
    662662    {
    663663        if (typeof types === "undefined")
    664             types = [ "mouse", "key", "load", "unload", "abort", "error", "select", "change", "submit", "reset", "focus", "blur", "resize", "scroll" ];
     664            types = [ "mouse", "key", "control", "load", "unload", "abort", "error", "select", "change", "submit", "reset", "focus", "blur", "resize", "scroll", "search", "devicemotion", "deviceorientation" ];
    665665        else if (typeof types === "string")
    666666            types = [ types ];
     
    669669        for (var i = 0; i < types.length; i++) {
    670670            if (types[i] === "mouse")
    671                 result.splice(0, 0, "mousedown", "mouseup", "click", "dblclick", "mousemove", "mouseover", "mouseout");
     671                result.splice(0, 0, "mousedown", "mouseup", "click", "dblclick", "mousemove", "mouseover", "mouseout", "mousewheel");
    672672            else if (types[i] === "key")
    673                 result.splice(0, 0, "keydown", "keyup", "keypress");
     673                result.splice(0, 0, "keydown", "keyup", "keypress", "textInput");
     674            else if (types[i] === "control")
     675                result.splice(0, 0, "resize", "scroll", "zoom", "focus", "blur", "select", "change", "submit", "reset");
    674676            else
    675677                result.push(types[i]);
Note: See TracChangeset for help on using the changeset viewer.