diff -r 6297cdf66332 -r d39add9822e2 webengine/webkitutils/rt_gesturehelper/src/gesturedefs.h --- a/webengine/webkitutils/rt_gesturehelper/src/gesturedefs.h Mon Jan 18 21:20:18 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,83 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Gesture helper constant definitions -* -*/ - - -#ifndef _GESTUREDEFS_H_ -#define _GESTUREDEFS_H - -#include /// @todo check this is correct - -namespace RT_GestureHelper -{ - -/// time to hold the stylus in the same position to activate holding -const TInt KHoldDuration = 500000; // microseconds - -/// time to tap again for the second tap to be a double tap -const TInt KMaxDoubleTapDuration = 400000; // microseconds - -/// time in which speed becomes zero if user stops stylus movement before -/// lifting the pointer -const TInt KSpeedStopTime = 150000; // microseconds - -/// tolerance in degrees to either side of an angle, for direction to be the -/// same as reference angle -const TReal KAngleTolerance = 25; - -/// Nth pointer event before the latest point -const TInt KPreviousPointOffset = 3; - -/// Tolerance for ignoring small movements, percent of longer screen edge -const TInt KGestureTolerancePercent = 2; // of 100 - -const TInt KFingerSize_mm = 8; - -const TInt KTwipsInInch = 1440; - -const TReal KTwipsInMm = 56.7; - -const TInt KMaxTapDuration = 300000; //microseconds - -const TInt KFlickSpeed = 500; - -const TInt KDoubleTapMaxActivationInterval = 500000; // 500 ms - -const TInt KDoubleTapMinActivationInterval = 40000; // 40 ms - -const TInt KDoubleTapIdleInterval = 700000; // 700 ms, to prevent triple-tap effects - -const TInt KLongTapDuration = 2000000; //2 sec - -const TInt KMinTimeBetweenDrags = 20000; // 20 ms -/** - * Panic codes - */ -enum TGesturePanic - { - EGesturePanicIllegalLogic - }; - -/** Panics the thread */ -inline void Panic( TGesturePanic aReason ) - { - _LIT( KComponentName, "GestureHelper" ); - User::Panic( KComponentName, aReason ); - } - -} // namespace GestureHelper - -#endif // _GESTUREDEFS_H