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

Unified Diff: public/web/WebWidgetClient.h

Issue 1176423008: Forward mouse down node information to WebWidgetClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: call onMouseDown for GestureTap righter after MousePress is dispatched Created 5 years, 6 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
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWidgetClient.h
diff --git a/public/web/WebWidgetClient.h b/public/web/WebWidgetClient.h
index 0d840ef291eefe2dd35316a7e2879c4cf70956d8..2877195b73f5ada01d0029e61a3662ce4b23c40d 100644
--- a/public/web/WebWidgetClient.h
+++ b/public/web/WebWidgetClient.h
@@ -165,6 +165,11 @@ public:
// something as a result of a tap without explicitly consuming the event.
virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition,
const WebNode& tappedNode, bool pageChanged) { }
+
+ // Called immediately after a mousedown event is dispatched due to a mouse
+ // press or gesture tap.
+ // Note: This is called even when the mouse down event is prevent default.
+ virtual void onMouseDown(const WebNode& mouseDownNode) { }
protected:
~WebWidgetClient() { }
};
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698