Esempio n. 1
0
void UserGestureToken::transferGestureTo(UserGestureToken* other) {
  if (!hasGestures())
    return;
  m_consumableGestures--;
  other->m_consumableGestures++;
  other->m_timestamp = WTF::currentTime();
}
Esempio n. 2
0
void UserGestureToken::setTimeoutPolicy(TimeoutPolicy policy) {
  if (!hasTimedOut() && hasGestures() && policy > m_timeoutPolicy)
    m_timeoutPolicy = policy;
}
Esempio n. 3
0
void UserGestureToken::transferGestureTo(UserGestureToken* other) {
  if (!hasGestures())
    return;
  m_consumableGestures--;
  other->m_consumableGestures++;
}