Chromium Code Reviews| Index: content/public/browser/web_contents_observer.h |
| diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h |
| index c2fcffbe0f2efb50491184386b27a6aa11d21753..ca46dd0c759ecccfc0d9449e4914f363177bf431 100644 |
| --- a/content/public/browser/web_contents_observer.h |
| +++ b/content/public/browser/web_contents_observer.h |
| @@ -13,6 +13,7 @@ |
| #include "content/public/common/security_style.h" |
| #include "ipc/ipc_listener.h" |
| #include "ipc/ipc_sender.h" |
| +#include "third_party/WebKit/public/web/WebInputEvent.h" |
| #include "third_party/skia/include/core/SkColor.h" |
| #include "ui/base/page_transition_types.h" |
| #include "ui/base/window_open_disposition.h" |
| @@ -315,6 +316,11 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener, |
| // This indicates that the next navigation was triggered by a user gesture. |
|
jdduke (slow)
2015/10/21 20:53:52
Perhaps a TODO Here to remove this in favor of the
dominickn
2015/10/26 04:14:24
Done.
|
| virtual void DidGetUserGesture() {} |
| + // Called when there has been direct user interaction with the web contents. |
| + // Direct user input includes 1) any mouse down event; 2) any mouse wheel |
| + // event; 3) any raw key down event; and 4) any gesture tap event. |
| + virtual void DidGetUserInput(const blink::WebInputEvent::Type type) {} |
|
jdduke (slow)
2015/10/21 20:53:51
Let's call this |DidStartUserInteraction|, to make
dominickn
2015/10/26 04:14:24
Done.
|
| + |
| // This method is invoked when a RenderViewHost of this WebContents was |
| // configured to ignore UI events, and an UI event took place. |
| virtual void DidGetIgnoredUIEvent() {} |