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

Unified Diff: chrome/test/data/touchevents.html

Issue 2904113002: Replacing WM_TOUCH with WM_POINTER for touch events on Wins 8+ (Closed)
Patch Set: Add a browser test Created 3 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
Index: chrome/test/data/touchevents.html
diff --git a/chrome/test/data/touchevents.html b/chrome/test/data/touchevents.html
new file mode 100644
index 0000000000000000000000000000000000000000..0a9dd9c446f997a44639e43bca318be4426b3300
--- /dev/null
+++ b/chrome/test/data/touchevents.html
@@ -0,0 +1,40 @@
+<html>
+ <head>
+ <style>
+ body {
+ margin: 0px;
+ padding: 0px;
+ }
+ #mybox {
+ padding: 20px;
+ margin: 0px;
+ border: 1px solid #000;
+ }
+ #mystatus {
+ border: 1px solid #000;
+ padding: 20px;
+ margin: 0px;
+ }
+ </style>
+ <script>
+ var down_count = 0;
+ function load() {
+ document.title = "onload";
+ }
+ function pointerdown() {
+ down_count++;
+ document.title = "pointerdown " + down_count;
+ }
+ function pointermove() {
+ document.title = "pointermove";
+ }
+ function pointerup() {
+ document.title = "pointerup";
+ }
+ </script>
+ </head>
+ <body onload="load()">
+ <div id="mybox" onpointerdown="pointerdown()" onpointermove="pointermove()" onpointerup="pointerup()"></div>
+ <div id="mystatus"></div>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698