Update contrib.
1 // Copyright (c) 2010 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
22 #ifndef TRENDERORIENTATION_H
23 #define TRENDERORIENTATION_H
25 #include <e32property.h>
26 #include "te_graphicsperformanceSuiteStepBase.h"
29 CTWindowSet contains a window server session, a group window and a child window.
31 class CTWindowSet : public CBase
38 inline RWsSession& Session()
40 inline RWindowGroup& WindowGroup()
41 {return iWindowGroup;};
45 RWindowGroup iWindowGroup;
50 Test case to test the performance of various use cases which affect the render orientation RProperty
52 class CTRenderOrientation : public CTe_graphicsperformanceSuiteStepBase
55 CTRenderOrientation();
56 ~CTRenderOrientation();
59 virtual TVerdict doTestStepPreambleL();
60 virtual TVerdict doTestStepPostambleL();
62 virtual TVerdict doTestStepL();
67 // One per orientation
78 EIndicatedOrientationChange, // window indicates a new render orientation
79 EWindowOrdinalChange, // window order changed, render orientation dictated by a different window with a different orientation
80 EThemeOrientationChange, // theme orientation changed, render orienation dictated by this due to relevant window being set to EDisplayOrientationAuto
81 EThemeOrientationChangeOnly, // theme orientation change only, to compare timings to above
86 void TestOrientationChangeL(const TDesC& aStepName, TTestPhase aTestPhase);
88 TRenderOrientation GetRenderOrientationL();
89 TRenderOrientation GetThemeOrientationL();
90 TRenderOrientation GetOrientationL(RProperty& aProperty);
91 void ThemeServerProperty(const TDesC& aCmd);
94 CTWindowSet iWindowSet[ENumWindowSets];
95 RProperty iWsRenderOrientationProperty;
96 RProperty iThemeOrientationProperty;
99 TRequestStatus iTimeoutStatus;
100 TRequestStatus iOrientationStatus;
104 _LIT(KTRenderOrientation,"trenderorientation");
106 #endif /* TRENDERORIENTATION_H */