|
1 // Copyright (c) 2005-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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef __TFADEPERF_H__ |
|
23 #define __TFADEPERF_H__ |
|
24 |
|
25 #include "te_graphicsperformanceSuiteStepBase.h" |
|
26 #include <w32std.h> |
|
27 |
|
28 class CTFadePerf : public CTe_graphicsperformanceSuiteStepBase |
|
29 { |
|
30 public: |
|
31 CTFadePerf(); |
|
32 ~CTFadePerf(); |
|
33 |
|
34 private: |
|
35 void FadeOpaqueSingleWindowRepeatedlyL(); |
|
36 void FadeTransparentSingleWindowRecordFadeL(); |
|
37 void FadeTransparentSingleWindowRecordUnfadeL(); |
|
38 void FadeOpaqueSingleWindowRecordFadeL(); |
|
39 void FadeOpaqueSingleWindowRecordUnfadeL(); |
|
40 |
|
41 void FadeOpaqueWindowsBehindRepeatedlyL(); |
|
42 void FadeTransparentWindowsBehindRecordFadeL(); |
|
43 void FadeTransparentWindowsBehindRecordUnfadeL(); |
|
44 void FadeOpaqueWindowsBehindRecordFadeL(); |
|
45 void FadeOpaqueWindowsBehindRecordUnfadeL(); |
|
46 |
|
47 void SetSystemFadedRepeatedlyL(); |
|
48 void SetSystemFadedTransparentWindowsRecordFadeL(); |
|
49 void SetSystemFadedTransparentWindowsRecordUnfadeL(); |
|
50 void SetSystemFadedOpaqueWindowsRecordFadeL(); |
|
51 void SetSystemFadedOpaqueWindowsRecordUnfadeL(); |
|
52 |
|
53 void SetNonFadingRepeatedlyL(); |
|
54 void SetNonFadingTransparentWindowsRecordFadeL(); |
|
55 void SetNonFadingTransparentWindowsRecordUnfadeL(); |
|
56 void SetNonFadingOpaqueWindowsRecordFadeL(); |
|
57 void SetNonFadingOpaqueWindowsRecordUnfadeL(); |
|
58 |
|
59 // From CTestStep |
|
60 TVerdict doTestStepPreambleL(); |
|
61 TVerdict doTestStepPostambleL(); |
|
62 TVerdict doTestStepL(); |
|
63 |
|
64 void SetUpWindowEnvironmentL(); |
|
65 void ConstructSingleWindowL(TBool aUseTransparency); |
|
66 void ConstructArrayOfWindowsL(TBool aUseTransparency, TBool aNonFadeHalfWindows); |
|
67 void ReleaseWindowsAndEnvironment(TBool aIsSingleWindow); |
|
68 |
|
69 enum TConstants |
|
70 {ENumWins = 40,}; |
|
71 RWsSession iWs; |
|
72 CWsScreenDevice* iWsScreenDev; |
|
73 RWindowGroup* iWinGroup; |
|
74 RWindow* iWins[ENumWins]; |
|
75 RWindow* iSingleWin; |
|
76 }; |
|
77 |
|
78 _LIT(KTFadePerfName,"tfadeperf"); |
|
79 |
|
80 #endif |