windowing/windowserver/test/tauto/TEVENT.H
changeset 194 18f84489a694
parent 152 9f1c3fea0f87
equal deleted inserted replaced
183:6a1564a2f3e6 194:18f84489a694
   325 	void AddExpectedKeyDownUp(TInt aScanCode, TInt aCode=0, TInt aRepeats=0, TUint aModifiers=KModifiersIgnore);
   325 	void AddExpectedKeyDownUp(TInt aScanCode, TInt aCode=0, TInt aRepeats=0, TUint aModifiers=KModifiersIgnore);
   326 	void AddExpectedEvent(TInt aEventCode, CTWinBase* aWin);
   326 	void AddExpectedEvent(TInt aEventCode, CTWinBase* aWin);
   327 	void AddExpectedEvent(TInt aEventCode);
   327 	void AddExpectedEvent(TInt aEventCode);
   328 	void AddExpectedEvent(TInt aEventCode,RWindowGroup* aWindow);
   328 	void AddExpectedEvent(TInt aEventCode,RWindowGroup* aWindow);
   329 	void AddExpectedErrorMessage(TWsErrorMessage::TErrorCategory aCategory, TInt aError);
   329 	void AddExpectedErrorMessage(TWsErrorMessage::TErrorCategory aCategory, TInt aError);
   330 	void CalculatePointerEvent(TWsEvent& aEvent,TPointerEvent::TType aType, TPoint aPos);
   330 	void CalculatePointerEvent(TWsEvent& aEvent,TPointerEvent::TType aType, TPoint aPos, TInt aWindowHandle=0);
   331 	void CalculatePointerCaptureEvent(TWsEvent& aEvent,TPointerEvent::TType aType, TPoint aPos, TInt aHandle=0);
   331 	void CalculatePointerCaptureEvent(TWsEvent& aEvent,TPointerEvent::TType aType, TPoint aPos, TInt aHandle=0);
   332 	void AddExpectedPointer(TPointerEvent::TType aType, TPoint aPos);
   332 	void AddExpectedPointer(TPointerEvent::TType aType, TPoint aPos, TInt aWindowHandle=0);
   333 	void AddExpectedPointerCapture(TPointerEvent::TType aType, TPoint aPos, TInt aHandle=0);
   333 	void AddExpectedPointerCapture(TPointerEvent::TType aType, TPoint aPos, TInt aWindowHandle=0);
   334 	void AddExpectedPointerClick(TPointerEvent::TType aType, TPoint aPos);
   334 	void AddExpectedPointerClick(TPointerEvent::TType aType, TPoint aPos);
   335 	void AddExpectedPointerDownUp(TPoint aPos);
   335 	void AddExpectedPointerDownUp(TPoint aPos);
   336 	inline void AddExpectedPointerScr(TPointerEvent::TType aType, TPoint aPos);
   336 	inline void AddExpectedPointerScr(TPointerEvent::TType aType, TPoint aPos);
   337 	inline void AddExpectedPointerDownUpScr(TPoint aPos);
   337 	inline void AddExpectedPointerDownUpScr(TPoint aPos);
   338 	void AddExpectedModifiersChanged(TInt aChangedModifiers, TInt aModifiers);
   338 	void AddExpectedModifiersChanged(TInt aChangedModifiers, TInt aModifiers);
   342 	void AddExpectedVisibilityChange(TUint aFlags);
   342 	void AddExpectedVisibilityChange(TUint aFlags);
   343 	void AddExpectedVisibilityChange(TUint aFlags, CTBlankWindow* aWindow);
   343 	void AddExpectedVisibilityChange(TUint aFlags, CTBlankWindow* aWindow);
   344 	inline void SimulatePointerWin(TRawEvent::TType aType, TInt aX, TInt aY);
   344 	inline void SimulatePointerWin(TRawEvent::TType aType, TInt aX, TInt aY);
   345 	inline void SimulatePointerDownUpWin(TInt aX, TInt aY);
   345 	inline void SimulatePointerDownUpWin(TInt aX, TInt aY);
   346 	inline void SimulatePointer(TRawEvent::TType aType, TInt aX, TInt aY);
   346 	inline void SimulatePointer(TRawEvent::TType aType, TInt aX, TInt aY);
       
   347 	inline void SimulatePointer(TRawEvent::TType aType, TPoint& aPoint);
   347 	void doSendEvent(TWsEvent &aEvent);
   348 	void doSendEvent(TWsEvent &aEvent);
   348 	void SendKey(TInt aEventCode, TInt aScanCode, TInt aCode=0, TInt iRepeats=0);
   349 	void SendKey(TInt aEventCode, TInt aScanCode, TInt aCode=0, TInt iRepeats=0);
   349 	void SendEvent(TInt aEventCode);
   350 	void SendEvent(TInt aEventCode);
   350 	void CreateEventTestGroup();
   351 	void CreateEventTestGroup();
   351 	void CloseEventTestGroup();
   352 	void CloseEventTestGroup();
   371 	void CheckLongkeyCaptureWithPriority(TLongkeyCapPriorityTests aTestType);
   372 	void CheckLongkeyCaptureWithPriority(TLongkeyCapPriorityTests aTestType);
   372 	void DelayForRepeatEvents(TInt aNumeratorFracVal, TInt aDenominatorFracVal);
   373 	void DelayForRepeatEvents(TInt aNumeratorFracVal, TInt aDenominatorFracVal);
   373 #ifndef TEST_GRAPHICS_WSERV_TAUTOSERVER_NONNGA 	
   374 #ifndef TEST_GRAPHICS_WSERV_TAUTOSERVER_NONNGA 	
   374 	void SpawnCaptureAppL(RProcess& aProcess);
   375 	void SpawnCaptureAppL(RProcess& aProcess);
   375 #endif
   376 #endif
       
   377 	void SetPointerAcceptanceRegion_NextSetOfEventsL();	
   376 private:
   378 private:
   377 	CTBlankWindow* iBlankWin;
   379 	CTBlankWindow* iBlankWin;
   378 	RBlankWindow iBackingWindow;
   380 	RBlankWindow iBackingWindow;
   379 	TSize iPhysicalScreenSize;
   381 	TSize iPhysicalScreenSize;
   380 	TSize iWinSize;
   382 	TSize iWinSize;