--- a/windowing/windowserver/nga/SERVER/EVENT.H Tue Jun 22 15:21:29 2010 +0300
+++ b/windowing/windowserver/nga/SERVER/EVENT.H Fri Jul 16 11:45:55 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
@@ -28,6 +28,7 @@
#include "EVQUEUE.H"
#include <w32adll.h>
#include "Graphics/WSGRAPHICDRAWER.H"
+#include <graphics/wskeyrouter.h>
class CWsClient;
class CWsWindowBase;
@@ -78,8 +79,8 @@
class TRepeatKey
{
public:
- TKeyData iKey;
- TInt iScanCode;
+ TKeyEventRouterOutput iOutput;
+ TInt iInputScanCode;
};
class CKeyboardRepeat : public CTimer
@@ -90,9 +91,9 @@
static void Destroy();
static void KeyDown();
static void KeyUp(TInt aScanCode);
- static TBool StartRepeat(const TKeyData &aKey, TInt aScanCode, CWsWindowGroup *aRepeatFocus, CWsCaptureLongKey* longCapture);
+ static void StartRepeat(TInt aInputScanCode, const TKeyEventRouterOutput& aShortEvent, const TKeyEventRouterOutput* aLongEvent);
static void CancelRepeat(CWsWindowGroup *aRepeatFocus);
- static void CancelRepeat(CWsWindowGroup *aRepeatFocus,TUint aScanCode,TBool aLongCaptureFlag,TUint aModifiers=0);
+ static void CancelRepeat(const TAny* aCaptureHandle, TBool aLongCaptureFlag);
static void SetRepeatTime(const TTimeIntervalMicroSeconds32 &aInitialTime, const TTimeIntervalMicroSeconds32 &aTime);
static void GetRepeatTime(TTimeIntervalMicroSeconds32 &aInitialTime, TTimeIntervalMicroSeconds32 &aTime);
static inline TBool IsAreadyActive();
@@ -108,13 +109,13 @@
static void doCancelRepeat();
void RunL();
private:
- static CWsWindowGroup *iFocus;
static CKeyboardRepeat *iThis; // Needed as CTimer derived parts can't be static
static TTimeIntervalMicroSeconds32 iInitialTime;
static TTimeIntervalMicroSeconds32 iTime;
+ static TRepeatType iRepeating;
static TRepeatKey iCurrentRepeat;
- static TRepeatType iRepeating;
static TRepeatKey iAlternateRepeat;
+ static TRepeatKey iLongRepeat;
static TBool iAlternateRepeatExists;
static CWsCaptureLongKey* iLongCapture;
static TInt iRepeatRollover;
@@ -174,9 +175,9 @@
static CWsHotKey* ClearHotKeysL(TInt aHotKey);
static void ResetDefaultHotKeyL(TInt aHotKey);
static void SetHotKeyL(const TWsClCmdSetHotKey &aHotKey);
- static void AddCaptureKeyL(const TCaptureKey &aCaptureKey);
- static void SetCaptureKey(TUint32 aHandle, const TCaptureKey &aCaptureKey);
- static void CancelCaptureKey(TUint32 aHandle);
+ static void AddCaptureKeyL(const TKeyCaptureRequest& aRequest);
+ static void UpdateCaptureKeyL(const TKeyCaptureRequest& aRequest);
+ static void CancelCaptureKey(TKeyCaptureType aType, TAny* aHandle);
static void ClientDestroyed(CWsClient *aClient);
static inline void AddToSwitchOnEventListL(const CWsWindowBase &aWindow, TEventControl aCircumstances);
static inline void RemoveFromSwitchOnEventList(const CWsWindowBase &aWindow);
@@ -207,7 +208,8 @@
static void SendScreenDeviceChangedEvent(const CWsWindowBase *aWindow);
static TBool ProcessErrorMessages(TWsErrorMessage::TErrorCategory aCategory, TInt aError);
static void NotifyOom();
- static void QueueKeyPress(const TKeyData& aKey, TInt aScanCode, CWsWindowGroup* aRepeatFocus, TBool aCheckRepeat,TInt aRepeats);
+ static void ProcessKeyPress(const TKeyEvent& aKeyEvent, TBool aCheckRepeat,TInt aRepeats);
+ static void QueueKeyPress(const TKeyEventRouterOutput& aOutput, TBool aIsRepeat, TInt aRepeats);
static void AddEventHandler(MEventHandler *aEventHandler, TBool aAdvancedPointersEnabled);
static void RemoveEventHandler(const MEventHandler *aEventHandler);
static void PotentialEventHandlerL(TInt aNum);
@@ -250,6 +252,8 @@
static TEventRequestQueue iScreenDeviceChangedQueue;
static TTime iPrevOomMessageTime;
static CCaptureKeys *iCaptureKeys;
+ static CKeyEventRouter *iKeyEventRouter;
+ static RLibrary iKeyEventRouterLibrary;
static CWsHotKey *iHotKeys;
static TInt iModifierState;
static CRawEventReceiver *iEventReceiver;