• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebCore-7600.1.25/platform/ios/

Lines Matching refs:event

37 static unsigned modifiersForEvent(WebEvent *event)
41 if (event.modifierFlags & WebEventFlagMaskShift)
43 if (event.modifierFlags & WebEventFlagMaskControl)
45 if (event.modifierFlags & WebEventFlagMaskAlternate)
47 if (event.modifierFlags & WebEventFlagMaskCommand)
53 static inline IntPoint pointForEvent(WebEvent *event)
55 return IntPoint(event.locationInWindow);
58 static inline IntPoint globalPointForEvent(WebEvent *event)
61 return pointForEvent(event);
64 static PlatformEvent::Type mouseEventType(WebEvent *event)
66 switch (event.type) {
81 PlatformMouseEventBuilder(WebEvent *event)
83 m_type = mouseEventType(event);
87 m_position = pointForEvent(event);
88 m_globalPosition = globalPointForEvent(event);
94 PlatformMouseEvent PlatformEventFactory::createPlatformMouseEvent(WebEvent *event)
96 return PlatformMouseEventBuilder(event);
101 PlatformWheelEventBuilder(WebEvent *event)
103 ASSERT(event.type == WebEventScrollWheel);
109 m_position = pointForEvent(event);
110 m_globalPosition = globalPointForEvent(event);
111 m_deltaX = event.deltaX;
112 m_deltaY = event.deltaY;
117 PlatformWheelEvent PlatformEventFactory::createPlatformWheelEvent(WebEvent *event)
119 return PlatformWheelEventBuilder(event);
122 String keyIdentifierForKeyEvent(WebEvent *event)
124 NSString *s = event.charactersIgnoringModifiers;
126 LOG(Events, "received an unexpected number of characters in key event: %u", [s length]);
135 PlatformKeyboardEventBuilder(WebEvent *event)
137 ASSERT(event.type == WebEventKeyDown || event.type == WebEventKeyUp);
139 m_type = (event.type == WebEventKeyUp ? PlatformEvent::KeyUp : PlatformEvent::KeyDown);
140 m_modifiers = modifiersForEvent(event);
143 m_text = event.characters;
144 m_unmodifiedText = event.charactersIgnoringModifiers;
145 m_keyIdentifier = keyIdentifierForKeyEvent(event);
146 m_windowsVirtualKeyCode = event.keyCode;
148 m_autoRepeat = event.isKeyRepeating;
151 m_Event = event;
174 PlatformKeyboardEvent PlatformEventFactory::createPlatformKeyboardEvent(WebEvent *event)
176 return PlatformKeyboardEventBuilder(event);
200 static PlatformEvent::Type touchEventType(WebEvent *event)
202 switch (event.type) {
227 PlatformTouchEventBuilder(WebEvent *event)
229 m_type = touchEventType(event);
230 m_modifiers = modifiersForEvent(event);
231 m_timestamp = event.timestamp;
233 m_gestureScale = event.gestureScale;
234 m_gestureRotation = event.gestureRotation;
235 m_isGesture = event.isGesture;
236 m_position = pointForEvent(event);
237 m_globalPosition = globalPointForEvent(event);
239 unsigned touchCount = event.touchCount;
242 unsigned identifier = [(NSNumber *)[event.touchIdentifiers objectAtIndex:i] unsignedIntValue];
243 IntPoint location = IntPoint([(NSValue *)[event.touchLocations objectAtIndex:i] pointValue]);
244 PlatformTouchPoint::TouchPhaseType touchPhase = convertTouchPhase([event.touchPhases objectAtIndex:i]);
250 PlatformTouchEvent PlatformEventFactory::createPlatformTouchEvent(WebEvent *event)
252 return PlatformTouchEventBuilder(event);