diff options
| author | wjmaclean <wjmaclean@chromium.org> | 2016-03-04 13:49:19 -0800 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2016-03-04 21:50:23 +0000 |
| commit | 4446423513e9f2da52e156bc93b5228e6a3d6e08 (patch) | |
| tree | cc86b950425ee48726f3bc57c58d7249b744523d /content/test | |
| parent | 9a995c82fd5c1d186ebd3d0a30d5a78b29dd5e82 (diff) | |
| download | chromium_src-4446423513e9f2da52e156bc93b5228e6a3d6e08.zip chromium_src-4446423513e9f2da52e156bc93b5228e6a3d6e08.tar.gz chromium_src-4446423513e9f2da52e156bc93b5228e6a3d6e08.tar.bz2 | |
Implement Gesture event hit testing/forwarding for OOPIF.
This CL implements plumbing to forward gesture events to OOPIF frames.
Scroll bubbling will be handled in a follow-on CL.
BUG=587023
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Review URL: https://codereview.chromium.org/1752833002
Cr-Commit-Position: refs/heads/master@{#379367}
Diffstat (limited to 'content/test')
| -rw-r--r-- | content/test/data/page_with_click_handler.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/content/test/data/page_with_click_handler.html b/content/test/data/page_with_click_handler.html new file mode 100644 index 0000000..cebf4ec --- /dev/null +++ b/content/test/data/page_with_click_handler.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html style="width: 100%; height: 100%"> +<head> + <script> + clicksReceived = 0; + + function clickHandler(e) { + var clickResult = document.getElementById("click-results"); + clicksReceived++; + if (clicksReceived == 1) + clickResult.textContent = "1 click received"; + else + clickResult.textContent = clicksReceived + " clicks received"; + } + + function getClickStatus() { + var clickResult = document.getElementById("click-results"); + return clickResult.textContent; + } + + window.addEventListener('load', function(){ + document.body.addEventListener('click', + function(e){ + clickHandler(e); + }, false); + }, false); + </script> +</head> + +<!-- Be sure to set 100% width/height so the test can determine an appropriate + screen region for targeting events. --> +<body style="width: 100%; height: 100%"> + Page with Click Handler + <div id="click-results">0 clicks received</div> +</body> +</html> |
