| Index: tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
|
| index 3fa5e27465b41858d26269c7df9da164bcb81824..35640d5c35c3f65abf89a5d7df4b9b68866f7885 100644
|
| --- a/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
|
| @@ -15,18 +15,25 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
|
| if (view == null) {
|
| view = window;
|
| }
|
| +$if DART2JS
|
| TouchEvent e = document._createEvent("TouchEvent");
|
| +$else
|
| + TouchEvent e = _blink.BlinkTouchEvent.instance.constructorCallback_1_(type);
|
| +$endif
|
| e._initTouchEvent(touches, targetTouches, changedTouches, type, view,
|
| screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey);
|
| return e;
|
| }
|
| $!MEMBERS
|
| -
|
| /**
|
| * Checks if touch events supported on the current platform.
|
| *
|
| * Note that touch events are only supported if the user is using a touch
|
| * device.
|
| */
|
| +$if DART2JS
|
| static bool get supported => Device.isEventTypeSupported('TouchEvent');
|
| +$else
|
| + static bool get supported => true;
|
| +$endif
|
| }
|
|
|