First public contribution.
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
26 #include "te_conestepbase.h"
39 class CTPan : public CTe_ConeStepBase
48 virtual TVerdict doTestStepPreambleL();
49 virtual TVerdict doTestStepL();
50 virtual TVerdict doTestStepPostambleL();
52 // from CTe_graphicsperformanceSuiteStepBase
53 virtual void InitUIL(CCoeEnv* aCoeEnv);
56 RSemaphore iSemaphore; // used to wait for font control to finish drawing
61 class CPanAppUi : public CEikAppUi
66 void ConstructL(const TRect& aRect);
67 CPanControl* PanControl();
70 CPanControl* iPanControl;
74 class CPanControl : public CCoeControl
77 static CPanControl* NewL(const TRect& aRect, const CCoeControl* aParent = NULL);
78 static CPanControl* NewLC(const TRect& aRect, const CCoeControl* aParent = NULL);
79 virtual ~CPanControl();
85 void ConstructL(const TRect& aRect, const CCoeControl* aParent);
88 void Draw(const TRect& aRect) const;
89 void HandlePointerEventL(const TPointerEvent& aPointerEvent);
92 RSemaphore iSemaphore; // handle to a Semaphore which is owned by the test step
93 // The pixel position of the most recent PointerEvent
94 TPoint iCurrentPointerPos;
95 CFbsBitmap* iSourceBitmap;
97 RWsSession& iWsSession;