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

Side by Side Diff: third_party/WebKit/LayoutTests/resources/user-gesture-utils.js

Issue 2778693004: Remove navigator.vibrate without user gesture. (Closed)
Patch Set: rebase Created 3 years, 8 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
OLDNEW
(Empty)
1 /**
2 * Simulates a user click on coordinates [x], [y].
3 * For example, for vibrate to be allowed:
4 * https://www.chromestatus.com/feature/5644273861001216.
5 */
6 function simulateUserClick(x, y) {
7 if (window.eventSender) {
8 eventSender.mouseMoveTo(x, y);
9 eventSender.mouseDown();
10 eventSender.mouseUp();
11 }
12 }
13
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698