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 required EventTarget target; |
10 double clientX = 0; | 10 double clientX = 0; |
11 double clientY = 0; | 11 double clientY = 0; |
12 double screenX = 0; | 12 double screenX = 0; |
13 double screenY = 0; | 13 double screenY = 0; |
14 double pageX = 0; | 14 double pageX = 0; |
15 double pageY = 0; | 15 double pageY = 0; |
16 float radiusX = 0; | 16 float radiusX = 0; |
17 float radiusY = 0; | 17 float radiusY = 0; |
18 float rotationAngle = 0; | 18 float rotationAngle = 0; |
19 float force = 0; | 19 float force = 0; |
20 | |
21 // Canvas HitRegion | |
22 // https://github.com/whatwg/html/issues/547 | |
23 // TODO(zino): This attribute should be declared as partial diction ary but | |
Rick Byers
2016/03/10 21:36:29
nit: remove the TODO now that we're not using part
zino
2016/03/11 09:35:47
Done.
| |
24 // IDL parser can't support it yet. Please see: http://crbug.com/57 9896 | |
25 DOMString? region = null; | |
20 }; | 26 }; |
OLD | NEW |