Bug 1332511 - Adjust telemetry histograms for time to first input probes. r=jwatt, data=bsmedberg

This commit is contained in:
William Chen
2017-01-31 21:49:06 -07:00
parent 70f58c889f
commit ae6e16da55
5 changed files with 71 additions and 41 deletions

View File

@@ -8053,7 +8053,8 @@ PresShell::HandleEventInternal(WidgetEvent* aEvent,
// pointer lock.
isHandlingUserInput = true;
mPresContext->RecordInteractionTime(
nsPresContext::InteractionType::eKeyInteraction);
nsPresContext::InteractionType::eKeyInteraction,
aEvent->mTimeStamp);
}
break;
}
@@ -8061,7 +8062,8 @@ PresShell::HandleEventInternal(WidgetEvent* aEvent,
case eMouseUp:
isHandlingUserInput = true;
mPresContext->RecordInteractionTime(
nsPresContext::InteractionType::eClickInteraction);
nsPresContext::InteractionType::eClickInteraction,
aEvent->mTimeStamp);
break;
case eDrop: {
@@ -8107,7 +8109,8 @@ PresShell::HandleEventInternal(WidgetEvent* aEvent,
EventStateManager::GetActiveEventStateManager() == manager);
mPresContext->RecordInteractionTime(
nsPresContext::InteractionType::eMouseMoveInteraction);
nsPresContext::InteractionType::eMouseMoveInteraction,
aEvent->mTimeStamp);
}
nsAutoPopupStatePusher popupStatePusher(