Lines Matching refs:Phase
188 static WebWheelEvent::Phase phaseForEvent(NSEvent *event)
191 uint32_t phase = WebWheelEvent::PhaseNone;
192 if ([event phase] & NSEventPhaseBegan)
193 phase |= WebWheelEvent::PhaseBegan;
194 if ([event phase] & NSEventPhaseStationary)
195 phase |= WebWheelEvent::PhaseStationary;
196 if ([event phase] & NSEventPhaseChanged)
197 phase |= WebWheelEvent::PhaseChanged;
198 if ([event phase] & NSEventPhaseEnded)
199 phase |= WebWheelEvent::PhaseEnded;
200 if ([event phase] & NSEventPhaseCancelled)
201 phase |= WebWheelEvent::PhaseCancelled;
202 return static_cast<WebWheelEvent::Phase>(phase);
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);
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);