Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Unified Diff: components/page_load_metrics/browser/page_load_metrics_observer.h

Issue 1984173002: Log First User Interaction in Page Load Metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only record user interaction after first paint Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/page_load_metrics/browser/page_load_metrics_observer.h
diff --git a/components/page_load_metrics/browser/page_load_metrics_observer.h b/components/page_load_metrics/browser/page_load_metrics_observer.h
index f41085d53dc8c6bf1396636d372cabe4c21e2286..8744e32e0150fbbc0f24e51744dc595973fe3fc8 100644
--- a/components/page_load_metrics/browser/page_load_metrics_observer.h
+++ b/components/page_load_metrics/browser/page_load_metrics_observer.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "components/page_load_metrics/common/page_load_timing.h"
#include "content/public/browser/navigation_handle.h"
+#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "url/gurl.h"
namespace page_load_metrics {
@@ -153,6 +154,11 @@ class PageLoadMetricsObserver {
virtual void OnComplete(const PageLoadTiming& timing,
const PageLoadExtraInfo& extra_info) {}
+ // OnUserInput is triggered when a new user input is passed in to
+ // web_contents. Contains a TimeDelta from navigation start.
+ virtual void OnUserInput(const blink::WebInputEvent& event,
+ const base::TimeDelta time_to_input) {}
+
// The following methods are invoked at most once, when the timing for the
// associated event first becomes available.
virtual void OnDomContentLoadedEventStart(

Powered by Google App Engine
This is Rietveld 408576698