OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // https://w3c.github.io/touch-events/#touch-interface | 5 // https://w3c.github.io/touch-events/#touch-interface |
6 | 6 |
7 dictionary TouchInit { | 7 dictionary TouchInit { |
8 required long identifier; | 8 required long identifier; |
9 required EventTarget target; | 9 // TODO(foolip): |target| should not be nullable. https://crbug.com/647693 |
| 10 required EventTarget? target; |
10 double clientX = 0; | 11 double clientX = 0; |
11 double clientY = 0; | 12 double clientY = 0; |
12 double screenX = 0; | 13 double screenX = 0; |
13 double screenY = 0; | 14 double screenY = 0; |
14 double pageX = 0; | 15 double pageX = 0; |
15 double pageY = 0; | 16 double pageY = 0; |
16 float radiusX = 0; | 17 float radiusX = 0; |
17 float radiusY = 0; | 18 float radiusY = 0; |
18 float rotationAngle = 0; | 19 float rotationAngle = 0; |
19 float force = 0; | 20 float force = 0; |
20 | 21 |
21 // Canvas Hit Regions | 22 // Canvas Hit Regions |
22 // https://github.com/whatwg/html/issues/547 | 23 // https://github.com/whatwg/html/issues/547 |
23 DOMString? region = null; | 24 DOMString? region = null; |
24 }; | 25 }; |
OLD | NEW |