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

Unified Diff: Source/core/dom/Touch.idl

Issue 982273002: Sync the Touch-related interfaces with the two specs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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: Source/core/dom/Touch.idl
diff --git a/Source/core/dom/Touch.idl b/Source/core/dom/Touch.idl
index d7003b65ea7ebc2f22a2636836a56b98a5fd9089..dd4f87078eda045050726358ec1970c9ffe9c2df 100644
--- a/Source/core/dom/Touch.idl
+++ b/Source/core/dom/Touch.idl
@@ -23,20 +23,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// http://rawgit.com/w3c/touch-events/v1-errata/touchevents.html#touch-interface
+
[
WillBeGarbageCollected,
] interface Touch {
- readonly attribute double clientX;
- readonly attribute double clientY;
- readonly attribute double screenX;
- readonly attribute double screenY;
- readonly attribute double pageX;
- readonly attribute double pageY;
- readonly attribute EventTarget target;
- readonly attribute unsigned long identifier;
- readonly attribute double radiusX;
- readonly attribute double radiusY;
- readonly attribute float force;
+ // FIXME: identifier should be long, not unsigned long.
+ readonly attribute unsigned long identifier;
+ readonly attribute EventTarget target;
+ readonly attribute double screenX;
+ readonly attribute double screenY;
+ readonly attribute double clientX;
+ readonly attribute double clientY;
+ readonly attribute double pageX;
+ readonly attribute double pageY;
+
+ // Touch Events Extensions
+ // http://rawgit.com/w3c/touch-events/master/touchevents.html#touch-interface
+ // FIXME: radiusX and radiusY should be float, not double.
+ readonly attribute double radiusX;
+ readonly attribute double radiusY;
+ readonly attribute float force;
+
+ // Non-standard APIs
[MeasureAs=PrefixedTouchRadiusX] readonly attribute double webkitRadiusX;
[MeasureAs=PrefixedTouchRadiusY] readonly attribute double webkitRadiusY;
[MeasureAs=PrefixedTouchRotationAngle] readonly attribute float webkitRotationAngle;

Powered by Google App Engine
This is Rietveld 408576698