graphicstest/graphicstestharness/src/TGraphicsHarness.cpp
branchRCL_3
changeset 163 bbf46f59e123
parent 0 5d03bc08d59c
child 164 25ffed67c7ef
equal deleted inserted replaced
150:57c618273d5c 163:bbf46f59e123
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-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".
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 #include <apgtask.h>
    16 
    17 #include <hal.h>
    17 #include <hal.h>
    18 #include <w32debug.h>
    18 #include <w32debug.h>
    19 #include <e32std.h> 
    19 #include <e32std.h> 
    20 #include <graphics/fbsdefs.h>
    20 #include <graphics/fbsdefs.h>
    21 
    21 
       
    22 #include "apgrfxfacade.h"
    22 #include "TGraphicsHarness.h"
    23 #include "TGraphicsHarness.h"
    23 #include "GraphicsTestUtilsServer.h"
    24 #include "GraphicsTestUtilsServer.h"
    24 
    25 
    25 _LIT(KGraphicsTestFrameworkPanic, "Graphics Test Framework");
    26 _LIT(KGraphicsTestFrameworkPanic, "Graphics Test Framework");
    26 const TInt KTestCleanupStack = 0x40;
    27 const TInt KTestCleanupStack = 0x40;
   500 		theWindow.SetExtent(TPoint(0, 0), size);
   501 		theWindow.SetExtent(TPoint(0, 0), size);
   501 		theWindow.SetVisible(ETrue);
   502 		theWindow.SetVisible(ETrue);
   502 		theWindow.Activate();
   503 		theWindow.Activate();
   503 	
   504 	
   504 	//the following trick we need to put the window on the top
   505 	//the following trick we need to put the window on the top
   505 		TApaTaskList taskList(ws);
   506 		TApaTaskListFacade taskList(ws);
   506 		TApaTask task = taskList.FindByPos(1);
   507 		TApaTaskFacade task = taskList.FindByPos(1);
   507 		task.BringToForeground();
   508 		task.BringToForeground();
   508 		TApaTask task1(ws);	
   509 		TApaTaskFacade task1(ws);
   509 		task1.SetWgId(theId1);
   510 		task1.SetWgId(theId1);
   510 		task1.BringToForeground();
   511 		task1.BringToForeground();
   511 		}
   512 		}
   512 #endif
   513 #endif
   513 	if (err==KErrNone)
   514 	if (err==KErrNone)