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

Unified Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 1388293002: Notify WebContentsObservers of user interactions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring site engagement to use DidGetUserInteraction Created 5 years, 2 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: content/browser/renderer_host/render_view_host_delegate.h
diff --git a/content/browser/renderer_host/render_view_host_delegate.h b/content/browser/renderer_host/render_view_host_delegate.h
index 880589292c94fb996b476284bfa2b1fc6d230bab..ecfc7527baff9829abcb1ee127501f1f52e37eb9 100644
--- a/content/browser/renderer_host/render_view_host_delegate.h
+++ b/content/browser/renderer_host/render_view_host_delegate.h
@@ -15,6 +15,7 @@
#include "content/common/content_export.h"
#include "net/base/load_states.h"
#include "third_party/WebKit/public/platform/WebDisplayMode.h"
+#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "third_party/WebKit/public/web/WebPopupType.h"
#include "ui/base/window_open_disposition.h"
@@ -140,6 +141,11 @@ class CONTENT_EXPORT RenderViewHostDelegate {
// bombing), see DownloadRequestLimiter for details.
virtual void OnUserGesture() {}
+ // Notification the user has performed a direct interaction while focus was on
+ // the page. This is used to inform the delegate that a user is interacting
+ // with a site.
+ virtual void OnUserInteraction(const blink::WebInputEvent::Type type) {}
nasko 2015/10/27 13:41:19 The RenderViewHost object is deprecated and active
dominickn 2015/10/27 23:21:53 Done.
+
// Notification from the renderer host that blocked UI event occurred.
// This happens when there are tab-modal dialogs. In this case, the
// notification is needed to let us draw attention to the dialog (i.e.

Powered by Google App Engine
This is Rietveld 408576698