Changeset 137751 in webkit
- Timestamp:
- Dec 14, 2012, 9:21:20 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r137750 r137751 1 2012-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 1 15 2012-12-14 Jessie Berlin <jberlin@apple.com> 2 16 -
trunk/Source/WebCore/inspector/Inspector.json
r137728 r137751 3292 3292 "parameters": [ 3293 3293 { "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."}, 3294 3296 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." }, 3295 3297 { "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)." }, 3296 3298 { "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)." } 3300 3300 ], 3301 3301 "description": "Dispatches a mouse event to the page." -
trunk/Source/WebCore/inspector/InspectorInputAgent.cpp
r137291 r137751 94 94 } 95 95 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)96 void InspectorInputAgent::dispatchMouseEvent(ErrorString* error, const String& type, int x, int y, const int* modifiers, const double* timestamp, const String* button, const int* clickCount) 97 97 { 98 98 PlatformEvent::Type convertedType; -
trunk/Source/WebCore/inspector/InspectorInputAgent.h
r137291 r137751 58 58 // Methods called from the frontend for simulating input. 59 59 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); 61 61 62 62 private:
Note:
See TracChangeset
for help on using the changeset viewer.