windowing/windowserver/test/tauto/TCapKey.H
changeset 121 d72fc2aace31
parent 103 2717213c588a
equal deleted inserted replaced
103:2717213c588a 121:d72fc2aace31
     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".
   155 struct SErrorCapKey
   155 struct SErrorCapKey
   156 	{
   156 	{
   157 	TInt keyCode;
   157 	TInt keyCode;
   158 	TUint modifier_mask;
   158 	TUint modifier_mask;
   159 	TUint modifiers;
   159 	TUint modifiers;
       
   160 	TInt priority;
   160 	};
   161 	};
   161 
   162 
   162 LOCAL_D SErrorCapKey errorKeys[]={
   163 LOCAL_D SErrorCapKey errorKeys[]={
   163 	{'a',EModifierFunc|EModifierShift,EModifierFunc|EModifierCtrl},
   164 	{'a', EModifierFunc|EModifierShift,EModifierFunc|EModifierCtrl, 0},
   164 	{'1',0,EModifierFunc},
   165 	{'1', 0, EModifierFunc, 0},
   165 	{3,EModifierCtrl,EModifierCtrl|EModifierShift},
   166 	{3, EModifierCtrl,EModifierCtrl|EModifierShift, 0},
       
   167 	// @SYMPREQ 417-61800: Check that attempts to capture keys with
       
   168 	// EModifierLong in the modifier mask fail with KErrArgument.
       
   169 	{'T', EModifierLongKey, 0, 0},
       
   170 	{'u', EModifierLongKey|EModifierAlt, EModifierLongKey, 0},
       
   171 	{'V', EModifierLongKey|EModifierShift, EModifierLongKey|EModifierShift, 0},
       
   172 	// @SYMPREQ 417-61800: Check that attempts to capture keys with a priority
       
   173 	// of KMinTInt fail with KErrArgument.
       
   174 	{'W', 0, 0, KMinTInt},
   166 	};
   175 	};
   167 
   176 
   168 const TInt numCapKeys=sizeof(capKeys)/sizeof(capKeys[0]);
   177 const TInt numCapKeys=sizeof(capKeys)/sizeof(capKeys[0]);
   169 const TInt numCapKeysWithPriority=sizeof(capKeysWithPriority)/sizeof(capKeysWithPriority[0]);
   178 const TInt numCapKeysWithPriority=sizeof(capKeysWithPriority)/sizeof(capKeysWithPriority[0]);
   170 const TInt numTests=sizeof(capKeyTests)/sizeof(capKeyTests[0]);
   179 const TInt numTests=sizeof(capKeyTests)/sizeof(capKeyTests[0]);