Changeset 137751 in webkit


Ignore:
Timestamp:
Dec 14, 2012, 9:21:20 AM (13 years ago)
Author:
yurys@chromium.org
Message:

Web Inspector: optional parameters of protocol commands should go after required ones
https://bugs.webkit.org/show_bug.cgi?id=105019

Reviewed by Pavel Feldman.

  • inspector/Inspector.json: Moved required x and y parameters declaration before

optional ones.

  • inspector/InspectorInputAgent.cpp:

(WebCore::InspectorInputAgent::dispatchMouseEvent):

  • inspector/InspectorInputAgent.h:

(InspectorInputAgent):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r137750 r137751  
     12012-12-14  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Web Inspector: optional parameters of protocol commands should go after required ones
     4        https://bugs.webkit.org/show_bug.cgi?id=105019
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/Inspector.json: Moved required x and y parameters declaration before
     9        optional ones.
     10        * inspector/InspectorInputAgent.cpp:
     11        (WebCore::InspectorInputAgent::dispatchMouseEvent):
     12        * inspector/InspectorInputAgent.h:
     13        (InspectorInputAgent):
     14
    1152012-12-14  Jessie Berlin  <jberlin@apple.com>
    216
  • trunk/Source/WebCore/inspector/Inspector.json

    r137728 r137751  
    32923292                "parameters": [
    32933293                    { "name": "type", "type": "string", "enum": ["mousePressed", "mouseReleased", "mouseMoved"], "description": "Type of the mouse event." },
     3294                    { "name": "x", "type": "integer", "description": "X coordinate of the event relative to the main frame's viewport."},
     3295                    { "name": "y", "type": "integer", "description": "Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."},
    32943296                    { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." },
    32953297                    { "name": "timestamp", "type": "number", "optional": true, "description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)." },
    32963298                    { "name": "button", "type": "string", "enum": ["none", "left", "middle", "right"], "optional": true, "description": "Mouse button (default: \"none\")." },
    3297                     { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." },
    3298                     { "name": "x", "type": "integer", "description": "X coordinate of the event relative to the main frame's viewport."},
    3299                     { "name": "y", "type": "integer", "description": "Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."}
     3299                    { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." }
    33003300                ],
    33013301                "description": "Dispatches a mouse event to the page."
  • trunk/Source/WebCore/inspector/InspectorInputAgent.cpp

    r137291 r137751  
    9494}
    9595
    96 void InspectorInputAgent::dispatchMouseEvent(ErrorString* error, const String& type, const int* modifiers, const double* timestamp, const String* button, const int* clickCount, int x, int y)
     96void InspectorInputAgent::dispatchMouseEvent(ErrorString* error, const String& type, int x, int y, const int* modifiers, const double* timestamp, const String* button, const int* clickCount)
    9797{
    9898    PlatformEvent::Type convertedType;
  • trunk/Source/WebCore/inspector/InspectorInputAgent.h

    r137291 r137751  
    5858    // Methods called from the frontend for simulating input.
    5959    virtual void dispatchKeyEvent(ErrorString*, const String& type, const int* modifiers, const double* timestamp, const String* text, const String* unmodifiedText, const String* keyIdentifier, const int* windowsVirtualKeyCode, const int* nativeVirtualKeyCode, const int* macCharCode, const bool* autoRepeat, const bool* isKeypad, const bool* isSystemKey);
    60     virtual void dispatchMouseEvent(ErrorString*, const String& type, const int* modifiers, const double* timestamp, const String* button, const int* clickCount, int x, int y);
     60    virtual void dispatchMouseEvent(ErrorString*, const String& type, int x, int y, const int* modifiers, const double* timestamp, const String* button, const int* clickCount);
    6161
    6262private:
Note: See TracChangeset for help on using the changeset viewer.