// Copyright 2015 The Chromium Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.import'dart:sky'assky;import'package:sky/base/pointer_router.dart';import'package:sky/gestures/arena.dart';import'package:sky/gestures/constants.dart';import'package:sky/gestures/recognizer.dart';typedefvoidGestureLongPressListener();classLongPressGestureRecognizerextendsPrimaryPointerGestureRecognizer{LongPressGestureRecognizer({PointerRouterrouter,this.onLongPress}):super(router:router,deadline:kTapTimeout+kLongPressTimeout);GestureLongPressListeneronLongPress;voiddidExceedDeadline(){resolve(GestureDisposition.accepted);onLongPress();}voidhandlePrimaryPointer(sky.PointerEventevent){if(event.type=='pointerup')resolve(GestureDisposition.rejected);}}