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

Unified Diff: third_party/WebKit/Source/web/tests/data/long_press_links_and_images.html

Issue 2247963002: Suppress drag and drop on links on touch screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase mac result so it uses the expected txt shared by all platforms Created 4 years, 4 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 | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/data/long_press_links_and_images.html
diff --git a/third_party/WebKit/Source/web/tests/data/long_press_links_and_images.html b/third_party/WebKit/Source/web/tests/data/long_press_links_and_images.html
new file mode 100644
index 0000000000000000000000000000000000000000..ea0b29fe7ca000177a818e9720d4b58ec7265602
--- /dev/null
+++ b/third_party/WebKit/Source/web/tests/data/long_press_links_and_images.html
@@ -0,0 +1,19 @@
+<html>
+<head>
+ <script>
+ function onLoad() {
+ var anchor = document.getElementById("anchorTag");
+ anchor.addEventListener("dragstart", function(event) { document.title = "anchor dragstart"; });
+ anchor.addEventListener("contextmenu", function(event) { document.title = "anchor contextmenu"; });
+
+ var image = document.getElementById("imageTag");
+ image.addEventListener("dragstart", function(event) { document.title = "image dragstart"; });
+ image.addEventListener("contextmenu", function(event) { document.title = "image contextmenu"; })
+ }
+</script>
+</head>
+<body onload="onLoad()">
+ <a id="anchorTag" href="http://www.example.com">Link to example.com</a>
+ <img id="imageTag" src="foo.png" width="100" height="100"> Link to an image. </img>
+</body>
+<html>
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698