a718c8dac9
BUG= R=jacobr@google.com Committed: https://github.com/dart-lang/sdk/commit/65fe0a5383c7d09efb1dd958a7a30ec5c4d1c847 Review URL: https://codereview.chromium.org/1876363006 .
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// WARNING: Do not edit - generated code.
|
|
|
|
part of $LIBRARYNAME;
|
|
|
|
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
|
|
factory $CLASSNAME(TouchList touches, TouchList targetTouches,
|
|
TouchList changedTouches, String type,
|
|
{Window view, int screenX: 0, int screenY: 0, int clientX: 0,
|
|
int clientY: 0, bool ctrlKey: false, bool altKey: false,
|
|
bool shiftKey: false, bool metaKey: false}) {
|
|
if (view == null) {
|
|
view = window;
|
|
}
|
|
TouchEvent e = document._createEvent("TouchEvent");
|
|
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.
|
|
*/
|
|
static bool get supported => Device.isEventTypeSupported('TouchEvent');
|
|
}
|