| Index: webkit/api/src/mac/WebInputEventFactory.mm
|
| ===================================================================
|
| --- webkit/api/src/mac/WebInputEventFactory.mm (revision 16673)
|
| +++ webkit/api/src/mac/WebInputEventFactory.mm (working copy)
|
| @@ -836,6 +836,7 @@
|
| modifiers |= WebInputEvent::AltKey;
|
| if ([event modifierFlags] & NSCommandKeyMask)
|
| modifiers |= WebInputEvent::MetaKey;
|
| + // TODO(port): Set mouse button states
|
|
|
| return modifiers;
|
| }
|
| @@ -899,6 +900,8 @@
|
| maxLength:sizeof(result.keyIdentifier)
|
| encoding:NSASCIIStringEncoding];
|
|
|
| + result.timeStampSeconds = [event timestamp];
|
| +
|
| return result;
|
| }
|
|
|
| @@ -970,6 +973,8 @@
|
| location = [view convertPoint:windowLocal fromView:nil];
|
| result.y = [view frame].size.height - location.y; // flip y
|
| result.x = location.x;
|
| + result.windowX = result.x;
|
| + result.windowY = result.y;
|
|
|
| result.modifiers = modifiersFromEvent(event);
|
|
|
| @@ -997,6 +1002,8 @@
|
| location = [view convertPoint:windowLocal fromView:nil];
|
| result.x = location.x;
|
| result.y = [view frame].size.height - location.y; // flip y
|
| + result.windowX = result.x;
|
| + result.windowY = result.y;
|
|
|
| // Of Mice and Men
|
| // ---------------
|
| @@ -1125,6 +1132,8 @@
|
| result.deltaY = [event deltaY] * scrollbarPixelsPerCocoaTick;
|
| }
|
|
|
| + result.timeStampSeconds = [event timestamp];
|
| +
|
| return result;
|
| }
|
|
|
|
|