Index: core/events/TouchEvent.idl |
diff --git a/core/events/TouchEvent.idl b/core/events/TouchEvent.idl |
index 36f0ac54e642045d718217083cb4c65426c62fc1..d4c3b2c672d22ab0b1a458cc27f9a8c9610132d8 100644 |
--- a/core/events/TouchEvent.idl |
+++ b/core/events/TouchEvent.idl |
@@ -22,26 +22,30 @@ |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+ |
+// http://www.w3.org/TR/touch-events/#touchevent-interface |
+ |
interface TouchEvent : UIEvent { |
readonly attribute TouchList touches; |
readonly attribute TouchList targetTouches; |
readonly attribute TouchList changedTouches; |
- readonly attribute boolean ctrlKey; |
- readonly attribute boolean shiftKey; |
readonly attribute boolean altKey; |
readonly attribute boolean metaKey; |
+ readonly attribute boolean ctrlKey; |
+ readonly attribute boolean shiftKey; |
- void initTouchEvent([Default=Undefined] optional TouchList touches, |
- [Default=Undefined] optional TouchList targetTouches, |
- [Default=Undefined] optional TouchList changedTouches, |
- [Default=Undefined] optional DOMString type, |
- [Default=Undefined] optional Window view, |
- [Default=Undefined] optional long unused1, |
- [Default=Undefined] optional long unused2, |
- [Default=Undefined] optional long unused3, |
- [Default=Undefined] optional long unused4, |
- [Default=Undefined] optional boolean ctrlKey, |
- [Default=Undefined] optional boolean altKey, |
- [Default=Undefined] optional boolean shiftKey, |
- [Default=Undefined] optional boolean metaKey); |
+ // FIXME: initTouch() is not yet standardized. |
+ [CallWith=ScriptState, Measure] void initTouchEvent([Default=Undefined] optional TouchList touches, |
+ [Default=Undefined] optional TouchList targetTouches, |
+ [Default=Undefined] optional TouchList changedTouches, |
+ [Default=Undefined] optional DOMString type, |
+ [Default=Undefined] optional Window view, |
+ [Default=Undefined] optional long unused1, |
+ [Default=Undefined] optional long unused2, |
+ [Default=Undefined] optional long unused3, |
+ [Default=Undefined] optional long unused4, |
+ [Default=Undefined] optional boolean ctrlKey, |
+ [Default=Undefined] optional boolean altKey, |
+ [Default=Undefined] optional boolean shiftKey, |
+ [Default=Undefined] optional boolean metaKey); |
}; |