mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Bug 1619458 - Add Accessible::IsXULTooltip. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D65038 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
01c6855e5e
commit
3ea5342b3a
@ -59,6 +59,7 @@ enum AccType {
|
||||
eXULLabelType,
|
||||
eXULListItemType,
|
||||
eXULTabpanelsType,
|
||||
eXULTooltipType,
|
||||
eXULTreeType,
|
||||
|
||||
eLastAccType = eXULTreeType
|
||||
|
@ -668,6 +668,8 @@ class Accessible : public nsISupports {
|
||||
|
||||
bool IsXULTabpanels() const { return mType == eXULTabpanelsType; }
|
||||
|
||||
bool IsXULTooltip() const { return mType == eXULTooltipType; }
|
||||
|
||||
bool IsXULTree() const { return mType == eXULTreeType; }
|
||||
XULTreeAccessible* AsXULTree();
|
||||
|
||||
|
@ -133,7 +133,9 @@ uint64_t XULLabelTextLeafAccessible::NativeState() const {
|
||||
|
||||
XULTooltipAccessible::XULTooltipAccessible(nsIContent* aContent,
|
||||
DocAccessible* aDoc)
|
||||
: LeafAccessible(aContent, aDoc) {}
|
||||
: LeafAccessible(aContent, aDoc) {
|
||||
mType = eXULTooltipType;
|
||||
}
|
||||
|
||||
uint64_t XULTooltipAccessible::NativeState() const {
|
||||
return LeafAccessible::NativeState() | states::READONLY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user