winaccessibility: rename unhelpful string defines.
Change-Id: Ib73ddecb9fd49a2e1a5bb690a0f4bbbc77d9047a
This commit is contained in:
parent
a339c949ed
commit
3b7788908a
@ -68,12 +68,12 @@ void GetDfActionByUNORole(XAccessibleContext* pRContext, BSTR* pRet)
|
||||
switch(Role)
|
||||
{
|
||||
case PUSH_BUTTON:
|
||||
*pRet = ::SysAllocString(PRESS);
|
||||
*pRet = ::SysAllocString(PRESS_STR);
|
||||
break;
|
||||
case RADIO_BUTTON:
|
||||
case MENU_ITEM:
|
||||
case LIST_ITEM:
|
||||
*pRet = ::SysAllocString(SELECT);
|
||||
*pRet = ::SysAllocString(SELECT_STR);
|
||||
break;
|
||||
case CHECK_BOX:
|
||||
{
|
||||
@ -85,13 +85,13 @@ void GetDfActionByUNORole(XAccessibleContext* pRContext, BSTR* pRet)
|
||||
|
||||
Sequence<short> pStates = pRState->getStates();
|
||||
int count = pStates.getLength();
|
||||
*pRet = ::SysAllocString(CHECK);
|
||||
*pRet = ::SysAllocString(CHECK_STR);
|
||||
for( int iIndex = 0;iIndex < count;iIndex++ )
|
||||
{
|
||||
if( pStates[iIndex] == AccessibleStateType::CHECKED )
|
||||
{
|
||||
SAFE_SYSFREESTRING(*pRet);
|
||||
*pRet = ::SysAllocString(UNCHECK);
|
||||
*pRet = ::SysAllocString(UNCHECK_STR);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -53,10 +53,10 @@ enum DM_NIR {
|
||||
};
|
||||
|
||||
|
||||
#define SELECT L"Select"
|
||||
#define PRESS L"Press"
|
||||
#define UNCHECK L"UnCheck"
|
||||
#define CHECK L"Check"
|
||||
#define SELECT_STR L"Select"
|
||||
#define PRESS_STR L"Press"
|
||||
#define UNCHECK_STR L"UnCheck"
|
||||
#define CHECK_STR L"Check"
|
||||
//End
|
||||
|
||||
static DWORD GetMSAAStateFromUNO(short xState);
|
||||
|
Loading…
x
Reference in New Issue
Block a user