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