Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: webkit/api/src/mac/WebInputEventFactory.mm

Issue 115330: linux: Adding events to windowless plugins on Linux (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/src/gtk/WebInputEventFactory.cpp ('k') | webkit/api/src/win/WebInputEventFactory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « webkit/api/src/gtk/WebInputEventFactory.cpp ('k') | webkit/api/src/win/WebInputEventFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698