зеркало из https://github.com/mozilla/gecko-dev.git
Bug 808596 - Introduce key role. r=surkov
This commit is contained in:
Родитель
34ddc52c77
Коммит
4f54ad6ad9
|
@ -773,5 +773,9 @@ interface nsIAccessibleRole : nsISupports
|
|||
* An HTML definition <dd>
|
||||
*/
|
||||
const unsigned long ROLE_DEFINITION = 128;
|
||||
};
|
||||
|
||||
/**
|
||||
* A keyboard or keypad key.
|
||||
*/
|
||||
const unsigned long ROLE_KEY = 129;
|
||||
};
|
||||
|
|
|
@ -222,6 +222,17 @@ static nsRoleMapEntry sWAIRoleMaps[] =
|
|||
kGenericAccType,
|
||||
kNoReqStates
|
||||
},
|
||||
{ // key
|
||||
&nsGkAtoms::key,
|
||||
roles::KEY,
|
||||
kUseMapRole,
|
||||
eNoValue,
|
||||
ePressAction,
|
||||
eNoLiveAttr,
|
||||
kGenericAccType,
|
||||
kNoReqStates,
|
||||
eARIAPressed
|
||||
},
|
||||
{ // link
|
||||
&nsGkAtoms::link,
|
||||
roles::LINK,
|
||||
|
|
|
@ -778,7 +778,12 @@ enum Role {
|
|||
/**
|
||||
* Represent a definition in a definition list (dd in HTML)
|
||||
*/
|
||||
DEFINITION = 128
|
||||
DEFINITION = 128,
|
||||
|
||||
/**
|
||||
* Represent a keyboard or keypad key (ARIA role "key").
|
||||
*/
|
||||
KEY = 129
|
||||
};
|
||||
|
||||
} // namespace role
|
||||
|
|
|
@ -1047,3 +1047,11 @@ ROLE(DEFINITION,
|
|||
USE_ROLE_STRING,
|
||||
IA2_ROLE_PARAGRAPH,
|
||||
eNameFromSubtreeRule)
|
||||
|
||||
ROLE(KEY,
|
||||
"key",
|
||||
ATK_ROLE_PUSH_BUTTON,
|
||||
NSAccessibilityButtonRole,
|
||||
ROLE_SYSTEM_PUSHBUTTON,
|
||||
ROLE_SYSTEM_PUSHBUTTON,
|
||||
eNameFromSubtreeRule)
|
||||
|
|
Загрузка…
Ссылка в новой задаче