Title: [140818] trunk/Source/WebCore
Revision
140818
Author
[email protected]
Date
2013-01-25 05:10:41 -0800 (Fri, 25 Jan 2013)

Log Message

Web Inspector: Move dispatchMouseEvent optional params after x,y
https://bugs.webkit.org/show_bug.cgi?id=107828

Patch by Ken Kania <[email protected]> on 2013-01-25
Reviewed by Pavel Feldman.

No new tests, as this just rearranges the order of arguments to make
JSCompiler happy. The params were rearranged in r140649 to match
dispatchKeyEvent's params.

* inspector/Inspector.json:
* inspector/InspectorInputAgent.cpp:
(WebCore::InspectorInputAgent::dispatchMouseEvent):
* inspector/InspectorInputAgent.h:
(InspectorInputAgent):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (140817 => 140818)


--- trunk/Source/WebCore/ChangeLog	2013-01-25 13:07:19 UTC (rev 140817)
+++ trunk/Source/WebCore/ChangeLog	2013-01-25 13:10:41 UTC (rev 140818)
@@ -1,3 +1,20 @@
+2013-01-25  Ken Kania  <[email protected]>
+
+        Web Inspector: Move dispatchMouseEvent optional params after x,y
+        https://bugs.webkit.org/show_bug.cgi?id=107828
+
+        Reviewed by Pavel Feldman.
+
+        No new tests, as this just rearranges the order of arguments to make
+        JSCompiler happy. The params were rearranged in r140649 to match
+        dispatchKeyEvent's params.
+
+        * inspector/Inspector.json:
+        * inspector/InspectorInputAgent.cpp:
+        (WebCore::InspectorInputAgent::dispatchMouseEvent):
+        * inspector/InspectorInputAgent.h:
+        (InspectorInputAgent):
+
 2013-01-25  Alexander Pavlov  <[email protected]>
 
         Web Inspector: [Styles] Editing a property value containing a trimmed data: URL breaks the style

Modified: trunk/Source/WebCore/inspector/Inspector.json (140817 => 140818)


--- trunk/Source/WebCore/inspector/Inspector.json	2013-01-25 13:07:19 UTC (rev 140817)
+++ trunk/Source/WebCore/inspector/Inspector.json	2013-01-25 13:10:41 UTC (rev 140818)
@@ -3414,10 +3414,10 @@
                 "name": "dispatchMouseEvent",
                 "parameters": [
                     { "name": "type", "type": "string", "enum": ["mousePressed", "mouseReleased", "mouseMoved"], "description": "Type of the mouse event." },
+                    { "name": "x", "type": "integer", "description": "X coordinate of the event relative to the main frame's viewport."},
+                    { "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."},
                     { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." },
                     { "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)." },
-                    { "name": "x", "type": "integer", "description": "X coordinate of the event relative to the main frame's viewport."},
-                    { "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."},
                     { "name": "button", "type": "string", "enum": ["none", "left", "middle", "right"], "optional": true, "description": "Mouse button (default: \"none\")." },
                     { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." }
                 ],

Modified: trunk/Source/WebCore/inspector/InspectorInputAgent.cpp (140817 => 140818)


--- trunk/Source/WebCore/inspector/InspectorInputAgent.cpp	2013-01-25 13:07:19 UTC (rev 140817)
+++ trunk/Source/WebCore/inspector/InspectorInputAgent.cpp	2013-01-25 13:10:41 UTC (rev 140818)
@@ -93,7 +93,7 @@
     m_page->mainFrame()->eventHandler()->keyEvent(event);
 }
 
-void InspectorInputAgent::dispatchMouseEvent(ErrorString* error, const String& type, const int* modifiers, const double* timestamp, int x, int y, const String* button, const int* clickCount)
+void InspectorInputAgent::dispatchMouseEvent(ErrorString* error, const String& type, int x, int y, const int* modifiers, const double* timestamp, const String* button, const int* clickCount)
 {
     PlatformEvent::Type convertedType;
     if (type == "mousePressed")

Modified: trunk/Source/WebCore/inspector/InspectorInputAgent.h (140817 => 140818)


--- trunk/Source/WebCore/inspector/InspectorInputAgent.h	2013-01-25 13:07:19 UTC (rev 140817)
+++ trunk/Source/WebCore/inspector/InspectorInputAgent.h	2013-01-25 13:10:41 UTC (rev 140818)
@@ -57,7 +57,7 @@
 
     // Methods called from the frontend for simulating input.
     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);
-    virtual void dispatchMouseEvent(ErrorString*, const String& type, const int* modifiers, const double* timestamp, int x, int y, const String* button, const int* clickCount);
+    virtual void dispatchMouseEvent(ErrorString*, const String& type, int x, int y, const int* modifiers, const double* timestamp, const String* button, const int* clickCount);
 
 private:
     InspectorInputAgent(InstrumentingAgents*, InspectorCompositeState*, Page*);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to