Lines Matching refs:WebWheelEvent
188 static WebWheelEvent::Phase phaseForEvent(NSEvent *event)
191 uint32_t phase = WebWheelEvent::PhaseNone;
193 phase |= WebWheelEvent::PhaseBegan;
195 phase |= WebWheelEvent::PhaseStationary;
197 phase |= WebWheelEvent::PhaseChanged;
199 phase |= WebWheelEvent::PhaseEnded;
201 phase |= WebWheelEvent::PhaseCancelled;
202 return static_cast<WebWheelEvent::Phase>(phase);
204 return WebWheelEvent::PhaseNone;
208 static WebWheelEvent::Phase momentumPhaseForEvent(NSEvent *event)
210 uint32_t phase = WebWheelEvent::PhaseNone;
214 phase |= WebWheelEvent::PhaseBegan;
216 phase |= WebWheelEvent::PhaseStationary;
218 phase |= WebWheelEvent::PhaseChanged;
220 phase |= WebWheelEvent::PhaseEnded;
222 phase |= WebWheelEvent::PhaseCancelled;
226 phase = WebWheelEvent::PhaseNone;
229 phase = WebWheelEvent::PhaseBegan;
232 phase = WebWheelEvent::PhaseChanged;
235 phase = WebWheelEvent::PhaseEnded;
240 return static_cast<WebWheelEvent::Phase>(phase);
1063 WebWheelEvent WebEventFactory::createWebWheelEvent(NSEvent *event, NSView *windowView)
1068 WebWheelEvent::Granularity granularity = WebWheelEvent::ScrollByPixelWheelEvent;
1090 WebWheelEvent::Phase phase = phaseForEvent(event);
1091 WebWheelEvent::Phase momentumPhase = momentumPhaseForEvent(event);
1096 return WebWheelEvent(WebEvent::Wheel, IntPoint(position), IntPoint(globalPosition), FloatSize(deltaX, deltaY), FloatSize(wheelTicksX, wheelTicksY), granularity, phase, momentumPhase, hasPreciseScrollingDeltas, modifiers, timestamp);