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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // coordinates. 158 // coordinates.
159 // |tappedNode| is the node that the mouseDown event hit, provided so the 159 // |tappedNode| is the node that the mouseDown event hit, provided so the
160 // UI can be shown only on certain kinds of nodes in specific locations. 160 // UI can be shown only on certain kinds of nodes in specific locations.
161 // |pageChanged| is true if and only if the DOM tree or style was 161 // |pageChanged| is true if and only if the DOM tree or style was
162 // modified during the dispatch of the mouse*, or click events associated 162 // modified during the dispatch of the mouse*, or click events associated
163 // with the tap. 163 // with the tap.
164 // This provides a heuristic to help identify when a page is doing 164 // This provides a heuristic to help identify when a page is doing
165 // something as a result of a tap without explicitly consuming the event. 165 // something as a result of a tap without explicitly consuming the event.
166 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, 166 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition,
167 const WebNode& tappedNode, bool pageChanged) { } 167 const WebNode& tappedNode, bool pageChanged) { }
168
169 // Called immediately after a mousedown event is dispatched due to a mouse
170 // press or gesture tap.
171 // Note: This is called even when the mouse down event is prevent default.
172 virtual void onMouseDown(const WebNode& mouseDownNode) { }
168 protected: 173 protected:
169 ~WebWidgetClient() { } 174 ~WebWidgetClient() { }
170 }; 175 };
171 176
172 } // namespace blink 177 } // namespace blink
173 178
174 #endif 179 #endif
OLDNEW
« 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