equal
deleted
inserted
replaced
1 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1996-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
17 // |
17 // |
18 |
18 |
19 /** |
19 /** |
20 @file |
20 @file |
21 @test |
21 @test |
22 @internalComponent - Internal Symbian test code |
|
23 */ |
22 */ |
24 |
23 |
25 #include "TGWHANDLE.H" |
24 #include "TGWHANDLE.H" |
26 |
25 |
27 |
26 |
1193 |
1192 |
1194 void CTGwHandle::UnchainWindowGroupsL() |
1193 void CTGwHandle::UnchainWindowGroupsL() |
1195 { |
1194 { |
1196 RArray<RWsSession::TWindowGroupChainInfo>* windowHandles=new(ELeave) RArray<RWsSession::TWindowGroupChainInfo>; |
1195 RArray<RWsSession::TWindowGroupChainInfo>* windowHandles=new(ELeave) RArray<RWsSession::TWindowGroupChainInfo>; |
1197 CleanupStack::PushL(windowHandles); |
1196 CleanupStack::PushL(windowHandles); |
|
1197 CleanupClosePushL(*windowHandles); |
1198 GetGwListL(0,windowHandles); |
1198 GetGwListL(0,windowHandles); |
1199 TInt shellWindow=windowHandles->Count(); |
1199 TInt shellWindow=windowHandles->Count(); |
1200 //Creating chained window groups. |
1200 //Creating chained window groups. |
1201 CreateChainedGroupWindowsLC(TheClient->iWs); |
1201 CreateChainedGroupWindowsLC(TheClient->iWs); |
1202 GetGwListL(0,windowHandles); |
1202 GetGwListL(0,windowHandles); |
1280 if (retVal!=ENumChained-windowPos-1) |
1280 if (retVal!=ENumChained-windowPos-1) |
1281 INFO_PRINTF3(_L("ChainedWindowCount(windowHandles) return value - Expected: %d, Actual: %d"), ENumChained-windowPos-1, retVal); |
1281 INFO_PRINTF3(_L("ChainedWindowCount(windowHandles) return value - Expected: %d, Actual: %d"), ENumChained-windowPos-1, retVal); |
1282 |
1282 |
1283 CleanupStack::PopAndDestroy(ENumChained-3,iChained[ENumChained-4]); |
1283 CleanupStack::PopAndDestroy(ENumChained-3,iChained[ENumChained-4]); |
1284 windowHandles->Close(); |
1284 windowHandles->Close(); |
1285 CleanupStack::PopAndDestroy(windowHandles); |
1285 CleanupStack::PopAndDestroy(windowHandles); // causes windowsHandles->Close() called |
|
1286 CleanupStack::PopAndDestroy(windowHandles); // causes delete windowsHandles called |
1286 } |
1287 } |
1287 |
1288 |
1288 TInt CTGwHandle::ChainedWindowCount(RArray<RWsSession::TWindowGroupChainInfo>* aWindowHandles) |
1289 TInt CTGwHandle::ChainedWindowCount(RArray<RWsSession::TWindowGroupChainInfo>* aWindowHandles) |
1289 { |
1290 { |
1290 TInt wndGrpCount=0; |
1291 TInt wndGrpCount=0; |