mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
4d4d058012
--HG-- rename : accessible/src/atk/ARIAGridAccessibleWrap.h => accessible/atk/ARIAGridAccessibleWrap.h rename : accessible/src/atk/AccessibleWrap.cpp => accessible/atk/AccessibleWrap.cpp rename : accessible/src/atk/AccessibleWrap.h => accessible/atk/AccessibleWrap.h rename : accessible/src/atk/ApplicationAccessibleWrap.cpp => accessible/atk/ApplicationAccessibleWrap.cpp rename : accessible/src/atk/ApplicationAccessibleWrap.h => accessible/atk/ApplicationAccessibleWrap.h rename : accessible/src/atk/AtkSocketAccessible.cpp => accessible/atk/AtkSocketAccessible.cpp rename : accessible/src/atk/AtkSocketAccessible.h => accessible/atk/AtkSocketAccessible.h rename : accessible/src/atk/DocAccessibleWrap.cpp => accessible/atk/DocAccessibleWrap.cpp rename : accessible/src/atk/DocAccessibleWrap.h => accessible/atk/DocAccessibleWrap.h rename : accessible/src/atk/HTMLTableAccessibleWrap.h => accessible/atk/HTMLTableAccessibleWrap.h rename : accessible/src/atk/HyperTextAccessibleWrap.h => accessible/atk/HyperTextAccessibleWrap.h rename : accessible/src/atk/ImageAccessibleWrap.h => accessible/atk/ImageAccessibleWrap.h rename : accessible/src/atk/InterfaceInitFuncs.h => accessible/atk/InterfaceInitFuncs.h rename : accessible/src/atk/Makefile.in => accessible/atk/Makefile.in rename : accessible/src/atk/Platform.cpp => accessible/atk/Platform.cpp rename : accessible/src/atk/RootAccessibleWrap.cpp => accessible/atk/RootAccessibleWrap.cpp rename : accessible/src/atk/RootAccessibleWrap.h => accessible/atk/RootAccessibleWrap.h rename : accessible/src/atk/TextLeafAccessibleWrap.h => accessible/atk/TextLeafAccessibleWrap.h rename : accessible/src/atk/UtilInterface.cpp => accessible/atk/UtilInterface.cpp rename : accessible/src/atk/XULListboxAccessibleWrap.h => accessible/atk/XULListboxAccessibleWrap.h rename : accessible/src/atk/XULMenuAccessibleWrap.h => accessible/atk/XULMenuAccessibleWrap.h rename : accessible/src/atk/XULTreeGridAccessibleWrap.h => accessible/atk/XULTreeGridAccessibleWrap.h rename : accessible/src/atk/moz.build => accessible/atk/moz.build rename : accessible/src/atk/nsMai.h => accessible/atk/nsMai.h rename : accessible/src/atk/nsMaiHyperlink.cpp => accessible/atk/nsMaiHyperlink.cpp rename : accessible/src/atk/nsMaiHyperlink.h => accessible/atk/nsMaiHyperlink.h rename : accessible/src/atk/nsMaiInterfaceAction.cpp => accessible/atk/nsMaiInterfaceAction.cpp rename : accessible/src/atk/nsMaiInterfaceComponent.cpp => accessible/atk/nsMaiInterfaceComponent.cpp rename : accessible/src/atk/nsMaiInterfaceDocument.cpp => accessible/atk/nsMaiInterfaceDocument.cpp rename : accessible/src/atk/nsMaiInterfaceEditableText.cpp => accessible/atk/nsMaiInterfaceEditableText.cpp rename : accessible/src/atk/nsMaiInterfaceHyperlinkImpl.cpp => accessible/atk/nsMaiInterfaceHyperlinkImpl.cpp rename : accessible/src/atk/nsMaiInterfaceHypertext.cpp => accessible/atk/nsMaiInterfaceHypertext.cpp rename : accessible/src/atk/nsMaiInterfaceImage.cpp => accessible/atk/nsMaiInterfaceImage.cpp rename : accessible/src/atk/nsMaiInterfaceSelection.cpp => accessible/atk/nsMaiInterfaceSelection.cpp rename : accessible/src/atk/nsMaiInterfaceTable.cpp => accessible/atk/nsMaiInterfaceTable.cpp rename : accessible/src/atk/nsMaiInterfaceText.cpp => accessible/atk/nsMaiInterfaceText.cpp rename : accessible/src/atk/nsMaiInterfaceValue.cpp => accessible/atk/nsMaiInterfaceValue.cpp rename : accessible/src/atk/nsStateMap.h => accessible/atk/nsStateMap.h rename : accessible/src/base/ARIAMap.cpp => accessible/base/ARIAMap.cpp rename : accessible/src/base/ARIAMap.h => accessible/base/ARIAMap.h rename : accessible/src/base/ARIAStateMap.cpp => accessible/base/ARIAStateMap.cpp rename : accessible/src/base/ARIAStateMap.h => accessible/base/ARIAStateMap.h rename : accessible/src/base/AccCollector.cpp => accessible/base/AccCollector.cpp rename : accessible/src/base/AccCollector.h => accessible/base/AccCollector.h rename : accessible/src/base/AccEvent.cpp => accessible/base/AccEvent.cpp rename : accessible/src/base/AccEvent.h => accessible/base/AccEvent.h rename : accessible/src/base/AccGroupInfo.cpp => accessible/base/AccGroupInfo.cpp rename : accessible/src/base/AccGroupInfo.h => accessible/base/AccGroupInfo.h rename : accessible/src/base/AccIterator.cpp => accessible/base/AccIterator.cpp rename : accessible/src/base/AccIterator.h => accessible/base/AccIterator.h rename : accessible/src/base/AccTypes.h => accessible/base/AccTypes.h rename : accessible/src/base/Asserts.cpp => accessible/base/Asserts.cpp rename : accessible/src/base/DocManager.cpp => accessible/base/DocManager.cpp rename : accessible/src/base/DocManager.h => accessible/base/DocManager.h rename : accessible/src/base/EventQueue.cpp => accessible/base/EventQueue.cpp rename : accessible/src/base/EventQueue.h => accessible/base/EventQueue.h rename : accessible/src/base/Filters.cpp => accessible/base/Filters.cpp rename : accessible/src/base/Filters.h => accessible/base/Filters.h rename : accessible/src/base/FocusManager.cpp => accessible/base/FocusManager.cpp rename : accessible/src/base/FocusManager.h => accessible/base/FocusManager.h rename : accessible/src/base/Logging.cpp => accessible/base/Logging.cpp rename : accessible/src/base/Logging.h => accessible/base/Logging.h rename : accessible/src/base/Makefile.in => accessible/base/Makefile.in rename : accessible/src/base/NotificationController.cpp => accessible/base/NotificationController.cpp rename : accessible/src/base/NotificationController.h => accessible/base/NotificationController.h rename : accessible/src/base/Platform.h => accessible/base/Platform.h rename : accessible/src/base/Relation.h => accessible/base/Relation.h rename : accessible/src/base/RelationType.h => accessible/base/RelationType.h rename : accessible/src/base/RelationTypeMap.h => accessible/base/RelationTypeMap.h rename : accessible/src/base/Role.h => accessible/base/Role.h rename : accessible/src/base/RoleMap.h => accessible/base/RoleMap.h rename : accessible/src/base/SelectionManager.cpp => accessible/base/SelectionManager.cpp rename : accessible/src/base/SelectionManager.h => accessible/base/SelectionManager.h rename : accessible/src/base/States.h => accessible/base/States.h rename : accessible/src/base/Statistics.h => accessible/base/Statistics.h rename : accessible/src/base/StyleInfo.cpp => accessible/base/StyleInfo.cpp rename : accessible/src/base/StyleInfo.h => accessible/base/StyleInfo.h rename : accessible/src/base/TextAttrs.cpp => accessible/base/TextAttrs.cpp rename : accessible/src/base/TextAttrs.h => accessible/base/TextAttrs.h rename : accessible/src/base/TextRange.cpp => accessible/base/TextRange.cpp rename : accessible/src/base/TextRange.h => accessible/base/TextRange.h rename : accessible/src/base/TextUpdater.cpp => accessible/base/TextUpdater.cpp rename : accessible/src/base/TextUpdater.h => accessible/base/TextUpdater.h rename : accessible/src/base/TreeWalker.cpp => accessible/base/TreeWalker.cpp rename : accessible/src/base/TreeWalker.h => accessible/base/TreeWalker.h rename : accessible/src/base/moz.build => accessible/base/moz.build rename : accessible/src/base/nsAccCache.h => accessible/base/nsAccCache.h rename : accessible/src/base/nsAccUtils.cpp => accessible/base/nsAccUtils.cpp rename : accessible/src/base/nsAccUtils.h => accessible/base/nsAccUtils.h rename : accessible/src/base/nsAccessibilityService.cpp => accessible/base/nsAccessibilityService.cpp rename : accessible/src/base/nsAccessibilityService.h => accessible/base/nsAccessibilityService.h rename : accessible/src/base/nsAccessiblePivot.cpp => accessible/base/nsAccessiblePivot.cpp rename : accessible/src/base/nsAccessiblePivot.h => accessible/base/nsAccessiblePivot.h rename : accessible/src/base/nsCoreUtils.cpp => accessible/base/nsCoreUtils.cpp rename : accessible/src/base/nsCoreUtils.h => accessible/base/nsCoreUtils.h rename : accessible/src/base/nsEventShell.cpp => accessible/base/nsEventShell.cpp rename : accessible/src/base/nsEventShell.h => accessible/base/nsEventShell.h rename : accessible/src/base/nsTextEquivUtils.cpp => accessible/base/nsTextEquivUtils.cpp rename : accessible/src/base/nsTextEquivUtils.h => accessible/base/nsTextEquivUtils.h rename : accessible/src/generic/ARIAGridAccessible-inl.h => accessible/generic/ARIAGridAccessible-inl.h rename : accessible/src/generic/ARIAGridAccessible.cpp => accessible/generic/ARIAGridAccessible.cpp rename : accessible/src/generic/ARIAGridAccessible.h => accessible/generic/ARIAGridAccessible.h rename : accessible/src/generic/Accessible-inl.h => accessible/generic/Accessible-inl.h rename : accessible/src/generic/Accessible.cpp => accessible/generic/Accessible.cpp rename : accessible/src/generic/Accessible.h => accessible/generic/Accessible.h rename : accessible/src/generic/ApplicationAccessible.cpp => accessible/generic/ApplicationAccessible.cpp rename : accessible/src/generic/ApplicationAccessible.h => accessible/generic/ApplicationAccessible.h rename : accessible/src/generic/BaseAccessibles.cpp => accessible/generic/BaseAccessibles.cpp rename : accessible/src/generic/BaseAccessibles.h => accessible/generic/BaseAccessibles.h rename : accessible/src/generic/DocAccessible-inl.h => accessible/generic/DocAccessible-inl.h rename : accessible/src/generic/DocAccessible.cpp => accessible/generic/DocAccessible.cpp rename : accessible/src/generic/DocAccessible.h => accessible/generic/DocAccessible.h rename : accessible/src/generic/FormControlAccessible.cpp => accessible/generic/FormControlAccessible.cpp rename : accessible/src/generic/FormControlAccessible.h => accessible/generic/FormControlAccessible.h rename : accessible/src/generic/HyperTextAccessible-inl.h => accessible/generic/HyperTextAccessible-inl.h rename : accessible/src/generic/HyperTextAccessible.cpp => accessible/generic/HyperTextAccessible.cpp rename : accessible/src/generic/HyperTextAccessible.h => accessible/generic/HyperTextAccessible.h rename : accessible/src/generic/ImageAccessible.cpp => accessible/generic/ImageAccessible.cpp rename : accessible/src/generic/ImageAccessible.h => accessible/generic/ImageAccessible.h rename : accessible/src/generic/OuterDocAccessible.cpp => accessible/generic/OuterDocAccessible.cpp rename : accessible/src/generic/OuterDocAccessible.h => accessible/generic/OuterDocAccessible.h rename : accessible/src/generic/RootAccessible.cpp => accessible/generic/RootAccessible.cpp rename : accessible/src/generic/RootAccessible.h => accessible/generic/RootAccessible.h rename : accessible/src/generic/TableAccessible.h => accessible/generic/TableAccessible.h rename : accessible/src/generic/TableCellAccessible.cpp => accessible/generic/TableCellAccessible.cpp rename : accessible/src/generic/TableCellAccessible.h => accessible/generic/TableCellAccessible.h rename : accessible/src/generic/TextLeafAccessible.cpp => accessible/generic/TextLeafAccessible.cpp rename : accessible/src/generic/TextLeafAccessible.h => accessible/generic/TextLeafAccessible.h rename : accessible/src/generic/moz.build => accessible/generic/moz.build rename : accessible/src/html/HTMLCanvasAccessible.cpp => accessible/html/HTMLCanvasAccessible.cpp rename : accessible/src/html/HTMLCanvasAccessible.h => accessible/html/HTMLCanvasAccessible.h rename : accessible/src/html/HTMLElementAccessibles.cpp => accessible/html/HTMLElementAccessibles.cpp rename : accessible/src/html/HTMLElementAccessibles.h => accessible/html/HTMLElementAccessibles.h rename : accessible/src/html/HTMLFormControlAccessible.cpp => accessible/html/HTMLFormControlAccessible.cpp rename : accessible/src/html/HTMLFormControlAccessible.h => accessible/html/HTMLFormControlAccessible.h rename : accessible/src/html/HTMLImageMapAccessible.cpp => accessible/html/HTMLImageMapAccessible.cpp rename : accessible/src/html/HTMLImageMapAccessible.h => accessible/html/HTMLImageMapAccessible.h rename : accessible/src/html/HTMLLinkAccessible.cpp => accessible/html/HTMLLinkAccessible.cpp rename : accessible/src/html/HTMLLinkAccessible.h => accessible/html/HTMLLinkAccessible.h rename : accessible/src/html/HTMLListAccessible.cpp => accessible/html/HTMLListAccessible.cpp rename : accessible/src/html/HTMLListAccessible.h => accessible/html/HTMLListAccessible.h rename : accessible/src/html/HTMLSelectAccessible.cpp => accessible/html/HTMLSelectAccessible.cpp rename : accessible/src/html/HTMLSelectAccessible.h => accessible/html/HTMLSelectAccessible.h rename : accessible/src/html/HTMLTableAccessible.cpp => accessible/html/HTMLTableAccessible.cpp rename : accessible/src/html/HTMLTableAccessible.h => accessible/html/HTMLTableAccessible.h rename : accessible/src/html/moz.build => accessible/html/moz.build rename : accessible/src/jsat/AccessFu.css => accessible/jsat/AccessFu.css rename : accessible/src/jsat/AccessFu.jsm => accessible/jsat/AccessFu.jsm rename : accessible/src/jsat/Constants.jsm => accessible/jsat/Constants.jsm rename : accessible/src/jsat/ContentControl.jsm => accessible/jsat/ContentControl.jsm rename : accessible/src/jsat/EventManager.jsm => accessible/jsat/EventManager.jsm rename : accessible/src/jsat/Gestures.jsm => accessible/jsat/Gestures.jsm rename : accessible/src/jsat/OutputGenerator.jsm => accessible/jsat/OutputGenerator.jsm rename : accessible/src/jsat/PointerAdapter.jsm => accessible/jsat/PointerAdapter.jsm rename : accessible/src/jsat/Presentation.jsm => accessible/jsat/Presentation.jsm rename : accessible/src/jsat/TraversalRules.jsm => accessible/jsat/TraversalRules.jsm rename : accessible/src/jsat/Utils.jsm => accessible/jsat/Utils.jsm rename : accessible/src/jsat/content-script.js => accessible/jsat/content-script.js rename : accessible/src/jsat/jar.mn => accessible/jsat/jar.mn rename : accessible/src/jsat/moz.build => accessible/jsat/moz.build rename : accessible/src/jsat/sounds/clicked.ogg => accessible/jsat/sounds/clicked.ogg rename : accessible/src/jsat/sounds/virtual_cursor_key.ogg => accessible/jsat/sounds/virtual_cursor_key.ogg rename : accessible/src/jsat/sounds/virtual_cursor_move.ogg => accessible/jsat/sounds/virtual_cursor_move.ogg rename : accessible/src/mac/ARIAGridAccessibleWrap.h => accessible/mac/ARIAGridAccessibleWrap.h rename : accessible/src/mac/AccessibleWrap.h => accessible/mac/AccessibleWrap.h rename : accessible/src/mac/AccessibleWrap.mm => accessible/mac/AccessibleWrap.mm rename : accessible/src/mac/ApplicationAccessibleWrap.h => accessible/mac/ApplicationAccessibleWrap.h rename : accessible/src/mac/DocAccessibleWrap.h => accessible/mac/DocAccessibleWrap.h rename : accessible/src/mac/DocAccessibleWrap.mm => accessible/mac/DocAccessibleWrap.mm rename : accessible/src/mac/HTMLTableAccessibleWrap.h => accessible/mac/HTMLTableAccessibleWrap.h rename : accessible/src/mac/HyperTextAccessibleWrap.h => accessible/mac/HyperTextAccessibleWrap.h rename : accessible/src/mac/ImageAccessibleWrap.h => accessible/mac/ImageAccessibleWrap.h rename : accessible/src/mac/MacUtils.h => accessible/mac/MacUtils.h rename : accessible/src/mac/MacUtils.mm => accessible/mac/MacUtils.mm rename : accessible/src/mac/Platform.mm => accessible/mac/Platform.mm rename : accessible/src/mac/RootAccessibleWrap.h => accessible/mac/RootAccessibleWrap.h rename : accessible/src/mac/RootAccessibleWrap.mm => accessible/mac/RootAccessibleWrap.mm rename : accessible/src/mac/TextLeafAccessibleWrap.h => accessible/mac/TextLeafAccessibleWrap.h rename : accessible/src/mac/XULListboxAccessibleWrap.h => accessible/mac/XULListboxAccessibleWrap.h rename : accessible/src/mac/XULMenuAccessibleWrap.h => accessible/mac/XULMenuAccessibleWrap.h rename : accessible/src/mac/XULTreeGridAccessibleWrap.h => accessible/mac/XULTreeGridAccessibleWrap.h rename : accessible/src/mac/moz.build => accessible/mac/moz.build rename : accessible/src/mac/mozAccessible.h => accessible/mac/mozAccessible.h rename : accessible/src/mac/mozAccessible.mm => accessible/mac/mozAccessible.mm rename : accessible/src/mac/mozAccessibleProtocol.h => accessible/mac/mozAccessibleProtocol.h rename : accessible/src/mac/mozActionElements.h => accessible/mac/mozActionElements.h rename : accessible/src/mac/mozActionElements.mm => accessible/mac/mozActionElements.mm rename : accessible/src/mac/mozDocAccessible.h => accessible/mac/mozDocAccessible.h rename : accessible/src/mac/mozDocAccessible.mm => accessible/mac/mozDocAccessible.mm rename : accessible/src/mac/mozHTMLAccessible.h => accessible/mac/mozHTMLAccessible.h rename : accessible/src/mac/mozHTMLAccessible.mm => accessible/mac/mozHTMLAccessible.mm rename : accessible/src/mac/mozTextAccessible.h => accessible/mac/mozTextAccessible.h rename : accessible/src/mac/mozTextAccessible.mm => accessible/mac/mozTextAccessible.mm rename : accessible/src/other/ARIAGridAccessibleWrap.h => accessible/other/ARIAGridAccessibleWrap.h rename : accessible/src/other/AccessibleWrap.cpp => accessible/other/AccessibleWrap.cpp rename : accessible/src/other/AccessibleWrap.h => accessible/other/AccessibleWrap.h rename : accessible/src/other/ApplicationAccessibleWrap.h => accessible/other/ApplicationAccessibleWrap.h rename : accessible/src/other/DocAccessibleWrap.h => accessible/other/DocAccessibleWrap.h rename : accessible/src/other/HTMLTableAccessibleWrap.h => accessible/other/HTMLTableAccessibleWrap.h rename : accessible/src/other/HyperTextAccessibleWrap.h => accessible/other/HyperTextAccessibleWrap.h rename : accessible/src/other/ImageAccessibleWrap.h => accessible/other/ImageAccessibleWrap.h rename : accessible/src/other/Platform.cpp => accessible/other/Platform.cpp rename : accessible/src/other/RootAccessibleWrap.h => accessible/other/RootAccessibleWrap.h rename : accessible/src/other/TextLeafAccessibleWrap.h => accessible/other/TextLeafAccessibleWrap.h rename : accessible/src/other/XULListboxAccessibleWrap.h => accessible/other/XULListboxAccessibleWrap.h rename : accessible/src/other/XULMenuAccessibleWrap.h => accessible/other/XULMenuAccessibleWrap.h rename : accessible/src/other/XULTreeGridAccessibleWrap.h => accessible/other/XULTreeGridAccessibleWrap.h rename : accessible/src/other/moz.build => accessible/other/moz.build rename : accessible/src/windows/ia2/Makefile.in => accessible/windows/ia2/Makefile.in rename : accessible/src/windows/ia2/ia2Accessible.cpp => accessible/windows/ia2/ia2Accessible.cpp rename : accessible/src/windows/ia2/ia2Accessible.h => accessible/windows/ia2/ia2Accessible.h rename : accessible/src/windows/ia2/ia2AccessibleAction.cpp => accessible/windows/ia2/ia2AccessibleAction.cpp rename : accessible/src/windows/ia2/ia2AccessibleAction.h => accessible/windows/ia2/ia2AccessibleAction.h rename : accessible/src/windows/ia2/ia2AccessibleComponent.cpp => accessible/windows/ia2/ia2AccessibleComponent.cpp rename : accessible/src/windows/ia2/ia2AccessibleComponent.h => accessible/windows/ia2/ia2AccessibleComponent.h rename : accessible/src/windows/ia2/ia2AccessibleEditableText.cpp => accessible/windows/ia2/ia2AccessibleEditableText.cpp rename : accessible/src/windows/ia2/ia2AccessibleEditableText.h => accessible/windows/ia2/ia2AccessibleEditableText.h rename : accessible/src/windows/ia2/ia2AccessibleHyperlink.cpp => accessible/windows/ia2/ia2AccessibleHyperlink.cpp rename : accessible/src/windows/ia2/ia2AccessibleHyperlink.h => accessible/windows/ia2/ia2AccessibleHyperlink.h rename : accessible/src/windows/ia2/ia2AccessibleHypertext.cpp => accessible/windows/ia2/ia2AccessibleHypertext.cpp rename : accessible/src/windows/ia2/ia2AccessibleHypertext.h => accessible/windows/ia2/ia2AccessibleHypertext.h rename : accessible/src/windows/ia2/ia2AccessibleImage.cpp => accessible/windows/ia2/ia2AccessibleImage.cpp rename : accessible/src/windows/ia2/ia2AccessibleImage.h => accessible/windows/ia2/ia2AccessibleImage.h rename : accessible/src/windows/ia2/ia2AccessibleRelation.cpp => accessible/windows/ia2/ia2AccessibleRelation.cpp rename : accessible/src/windows/ia2/ia2AccessibleRelation.h => accessible/windows/ia2/ia2AccessibleRelation.h rename : accessible/src/windows/ia2/ia2AccessibleTable.cpp => accessible/windows/ia2/ia2AccessibleTable.cpp rename : accessible/src/windows/ia2/ia2AccessibleTable.h => accessible/windows/ia2/ia2AccessibleTable.h rename : accessible/src/windows/ia2/ia2AccessibleTableCell.cpp => accessible/windows/ia2/ia2AccessibleTableCell.cpp rename : accessible/src/windows/ia2/ia2AccessibleTableCell.h => accessible/windows/ia2/ia2AccessibleTableCell.h rename : accessible/src/windows/ia2/ia2AccessibleText.cpp => accessible/windows/ia2/ia2AccessibleText.cpp rename : accessible/src/windows/ia2/ia2AccessibleText.h => accessible/windows/ia2/ia2AccessibleText.h rename : accessible/src/windows/ia2/ia2AccessibleValue.cpp => accessible/windows/ia2/ia2AccessibleValue.cpp rename : accessible/src/windows/ia2/ia2AccessibleValue.h => accessible/windows/ia2/ia2AccessibleValue.h rename : accessible/src/windows/ia2/moz.build => accessible/windows/ia2/moz.build rename : accessible/src/windows/moz.build => accessible/windows/moz.build rename : accessible/src/windows/msaa/ARIAGridAccessibleWrap.cpp => accessible/windows/msaa/ARIAGridAccessibleWrap.cpp rename : accessible/src/windows/msaa/ARIAGridAccessibleWrap.h => accessible/windows/msaa/ARIAGridAccessibleWrap.h rename : accessible/src/windows/msaa/AccessibleWrap.cpp => accessible/windows/msaa/AccessibleWrap.cpp rename : accessible/src/windows/msaa/AccessibleWrap.h => accessible/windows/msaa/AccessibleWrap.h rename : accessible/src/windows/msaa/ApplicationAccessibleWrap.cpp => accessible/windows/msaa/ApplicationAccessibleWrap.cpp rename : accessible/src/windows/msaa/ApplicationAccessibleWrap.h => accessible/windows/msaa/ApplicationAccessibleWrap.h rename : accessible/src/windows/msaa/Compatibility.cpp => accessible/windows/msaa/Compatibility.cpp rename : accessible/src/windows/msaa/Compatibility.h => accessible/windows/msaa/Compatibility.h rename : accessible/src/windows/msaa/DocAccessibleWrap.cpp => accessible/windows/msaa/DocAccessibleWrap.cpp rename : accessible/src/windows/msaa/DocAccessibleWrap.h => accessible/windows/msaa/DocAccessibleWrap.h rename : accessible/src/windows/msaa/EnumVariant.cpp => accessible/windows/msaa/EnumVariant.cpp rename : accessible/src/windows/msaa/EnumVariant.h => accessible/windows/msaa/EnumVariant.h rename : accessible/src/windows/msaa/HTMLTableAccessibleWrap.cpp => accessible/windows/msaa/HTMLTableAccessibleWrap.cpp rename : accessible/src/windows/msaa/HTMLTableAccessibleWrap.h => accessible/windows/msaa/HTMLTableAccessibleWrap.h rename : accessible/src/windows/msaa/HTMLWin32ObjectAccessible.cpp => accessible/windows/msaa/HTMLWin32ObjectAccessible.cpp rename : accessible/src/windows/msaa/HTMLWin32ObjectAccessible.h => accessible/windows/msaa/HTMLWin32ObjectAccessible.h rename : accessible/src/windows/msaa/HyperTextAccessibleWrap.cpp => accessible/windows/msaa/HyperTextAccessibleWrap.cpp rename : accessible/src/windows/msaa/HyperTextAccessibleWrap.h => accessible/windows/msaa/HyperTextAccessibleWrap.h rename : accessible/src/windows/msaa/IUnknownImpl.cpp => accessible/windows/msaa/IUnknownImpl.cpp rename : accessible/src/windows/msaa/IUnknownImpl.h => accessible/windows/msaa/IUnknownImpl.h rename : accessible/src/windows/msaa/ImageAccessibleWrap.cpp => accessible/windows/msaa/ImageAccessibleWrap.cpp rename : accessible/src/windows/msaa/ImageAccessibleWrap.h => accessible/windows/msaa/ImageAccessibleWrap.h rename : accessible/src/windows/msaa/Platform.cpp => accessible/windows/msaa/Platform.cpp rename : accessible/src/windows/msaa/RootAccessibleWrap.cpp => accessible/windows/msaa/RootAccessibleWrap.cpp rename : accessible/src/windows/msaa/RootAccessibleWrap.h => accessible/windows/msaa/RootAccessibleWrap.h rename : accessible/src/windows/msaa/ServiceProvider.cpp => accessible/windows/msaa/ServiceProvider.cpp rename : accessible/src/windows/msaa/ServiceProvider.h => accessible/windows/msaa/ServiceProvider.h rename : accessible/src/windows/msaa/TextLeafAccessibleWrap.cpp => accessible/windows/msaa/TextLeafAccessibleWrap.cpp rename : accessible/src/windows/msaa/TextLeafAccessibleWrap.h => accessible/windows/msaa/TextLeafAccessibleWrap.h rename : accessible/src/windows/msaa/XULListboxAccessibleWrap.cpp => accessible/windows/msaa/XULListboxAccessibleWrap.cpp rename : accessible/src/windows/msaa/XULListboxAccessibleWrap.h => accessible/windows/msaa/XULListboxAccessibleWrap.h rename : accessible/src/windows/msaa/XULMenuAccessibleWrap.cpp => accessible/windows/msaa/XULMenuAccessibleWrap.cpp rename : accessible/src/windows/msaa/XULMenuAccessibleWrap.h => accessible/windows/msaa/XULMenuAccessibleWrap.h rename : accessible/src/windows/msaa/XULTreeGridAccessibleWrap.cpp => accessible/windows/msaa/XULTreeGridAccessibleWrap.cpp rename : accessible/src/windows/msaa/XULTreeGridAccessibleWrap.h => accessible/windows/msaa/XULTreeGridAccessibleWrap.h rename : accessible/src/windows/msaa/moz.build => accessible/windows/msaa/moz.build rename : accessible/src/windows/msaa/nsEventMap.h => accessible/windows/msaa/nsEventMap.h rename : accessible/src/windows/msaa/nsWinUtils.cpp => accessible/windows/msaa/nsWinUtils.cpp rename : accessible/src/windows/msaa/nsWinUtils.h => accessible/windows/msaa/nsWinUtils.h rename : accessible/src/windows/sdn/moz.build => accessible/windows/sdn/moz.build rename : accessible/src/windows/sdn/sdnAccessible-inl.h => accessible/windows/sdn/sdnAccessible-inl.h rename : accessible/src/windows/sdn/sdnAccessible.cpp => accessible/windows/sdn/sdnAccessible.cpp rename : accessible/src/windows/sdn/sdnAccessible.h => accessible/windows/sdn/sdnAccessible.h rename : accessible/src/windows/sdn/sdnDocAccessible.cpp => accessible/windows/sdn/sdnDocAccessible.cpp rename : accessible/src/windows/sdn/sdnDocAccessible.h => accessible/windows/sdn/sdnDocAccessible.h rename : accessible/src/windows/sdn/sdnTextAccessible.cpp => accessible/windows/sdn/sdnTextAccessible.cpp rename : accessible/src/windows/sdn/sdnTextAccessible.h => accessible/windows/sdn/sdnTextAccessible.h rename : accessible/src/windows/uia/Makefile.in => accessible/windows/uia/Makefile.in rename : accessible/src/windows/uia/moz.build => accessible/windows/uia/moz.build rename : accessible/src/windows/uia/uiaRawElmProvider.cpp => accessible/windows/uia/uiaRawElmProvider.cpp rename : accessible/src/windows/uia/uiaRawElmProvider.h => accessible/windows/uia/uiaRawElmProvider.h rename : accessible/src/xpcom/AccEventGen.py => accessible/xpcom/AccEventGen.py rename : accessible/src/xpcom/AccEvents.conf => accessible/xpcom/AccEvents.conf rename : accessible/src/xpcom/Makefile.in => accessible/xpcom/Makefile.in rename : accessible/src/xpcom/moz.build => accessible/xpcom/moz.build rename : accessible/src/xpcom/nsAccessibleRelation.cpp => accessible/xpcom/nsAccessibleRelation.cpp rename : accessible/src/xpcom/nsAccessibleRelation.h => accessible/xpcom/nsAccessibleRelation.h rename : accessible/src/xpcom/xpcAccessibleHyperText.cpp => accessible/xpcom/xpcAccessibleHyperText.cpp rename : accessible/src/xpcom/xpcAccessibleHyperText.h => accessible/xpcom/xpcAccessibleHyperText.h rename : accessible/src/xpcom/xpcAccessibleSelectable.cpp => accessible/xpcom/xpcAccessibleSelectable.cpp rename : accessible/src/xpcom/xpcAccessibleSelectable.h => accessible/xpcom/xpcAccessibleSelectable.h rename : accessible/src/xpcom/xpcAccessibleTable.cpp => accessible/xpcom/xpcAccessibleTable.cpp rename : accessible/src/xpcom/xpcAccessibleTable.h => accessible/xpcom/xpcAccessibleTable.h rename : accessible/src/xpcom/xpcAccessibleTableCell.cpp => accessible/xpcom/xpcAccessibleTableCell.cpp rename : accessible/src/xpcom/xpcAccessibleTableCell.h => accessible/xpcom/xpcAccessibleTableCell.h rename : accessible/src/xpcom/xpcAccessibleTextRange.cpp => accessible/xpcom/xpcAccessibleTextRange.cpp rename : accessible/src/xpcom/xpcAccessibleTextRange.h => accessible/xpcom/xpcAccessibleTextRange.h rename : accessible/src/xpcom/xpcAccessibleValue.cpp => accessible/xpcom/xpcAccessibleValue.cpp rename : accessible/src/xpcom/xpcAccessibleValue.h => accessible/xpcom/xpcAccessibleValue.h rename : accessible/src/xul/XULAlertAccessible.cpp => accessible/xul/XULAlertAccessible.cpp rename : accessible/src/xul/XULAlertAccessible.h => accessible/xul/XULAlertAccessible.h rename : accessible/src/xul/XULColorPickerAccessible.cpp => accessible/xul/XULColorPickerAccessible.cpp rename : accessible/src/xul/XULColorPickerAccessible.h => accessible/xul/XULColorPickerAccessible.h rename : accessible/src/xul/XULComboboxAccessible.cpp => accessible/xul/XULComboboxAccessible.cpp rename : accessible/src/xul/XULComboboxAccessible.h => accessible/xul/XULComboboxAccessible.h rename : accessible/src/xul/XULElementAccessibles.cpp => accessible/xul/XULElementAccessibles.cpp rename : accessible/src/xul/XULElementAccessibles.h => accessible/xul/XULElementAccessibles.h rename : accessible/src/xul/XULFormControlAccessible.cpp => accessible/xul/XULFormControlAccessible.cpp rename : accessible/src/xul/XULFormControlAccessible.h => accessible/xul/XULFormControlAccessible.h rename : accessible/src/xul/XULListboxAccessible.cpp => accessible/xul/XULListboxAccessible.cpp rename : accessible/src/xul/XULListboxAccessible.h => accessible/xul/XULListboxAccessible.h rename : accessible/src/xul/XULMenuAccessible.cpp => accessible/xul/XULMenuAccessible.cpp rename : accessible/src/xul/XULMenuAccessible.h => accessible/xul/XULMenuAccessible.h rename : accessible/src/xul/XULSelectControlAccessible.cpp => accessible/xul/XULSelectControlAccessible.cpp rename : accessible/src/xul/XULSelectControlAccessible.h => accessible/xul/XULSelectControlAccessible.h rename : accessible/src/xul/XULSliderAccessible.cpp => accessible/xul/XULSliderAccessible.cpp rename : accessible/src/xul/XULSliderAccessible.h => accessible/xul/XULSliderAccessible.h rename : accessible/src/xul/XULTabAccessible.cpp => accessible/xul/XULTabAccessible.cpp rename : accessible/src/xul/XULTabAccessible.h => accessible/xul/XULTabAccessible.h rename : accessible/src/xul/XULTreeAccessible.cpp => accessible/xul/XULTreeAccessible.cpp rename : accessible/src/xul/XULTreeAccessible.h => accessible/xul/XULTreeAccessible.h rename : accessible/src/xul/XULTreeGridAccessible.cpp => accessible/xul/XULTreeGridAccessible.cpp rename : accessible/src/xul/XULTreeGridAccessible.h => accessible/xul/XULTreeGridAccessible.h rename : accessible/src/xul/moz.build => accessible/xul/moz.build
1117 lines
30 KiB
C++
1117 lines
30 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef _Accessible_H_
|
|
#define _Accessible_H_
|
|
|
|
#include "mozilla/a11y/AccTypes.h"
|
|
#include "mozilla/a11y/RelationType.h"
|
|
#include "mozilla/a11y/Role.h"
|
|
#include "mozilla/a11y/States.h"
|
|
|
|
#include "nsIAccessible.h"
|
|
#include "nsIAccessibleHyperLink.h"
|
|
#include "nsIAccessibleStates.h"
|
|
#include "xpcAccessibleSelectable.h"
|
|
#include "xpcAccessibleValue.h"
|
|
|
|
#include "nsIContent.h"
|
|
#include "nsString.h"
|
|
#include "nsTArray.h"
|
|
#include "nsRefPtrHashtable.h"
|
|
|
|
struct nsRoleMapEntry;
|
|
|
|
struct nsRect;
|
|
class nsIFrame;
|
|
class nsIAtom;
|
|
class nsView;
|
|
|
|
namespace mozilla {
|
|
namespace a11y {
|
|
|
|
class Accessible;
|
|
class AccEvent;
|
|
class AccGroupInfo;
|
|
class DocAccessible;
|
|
class EmbeddedObjCollector;
|
|
class HTMLImageMapAccessible;
|
|
class HTMLLIAccessible;
|
|
class HyperTextAccessible;
|
|
class ImageAccessible;
|
|
class KeyBinding;
|
|
class Relation;
|
|
class RootAccessible;
|
|
class TableAccessible;
|
|
class TableCellAccessible;
|
|
class TextLeafAccessible;
|
|
class XULLabelAccessible;
|
|
class XULTreeAccessible;
|
|
|
|
/**
|
|
* Name type flags.
|
|
*/
|
|
enum ENameValueFlag {
|
|
/**
|
|
* Name either
|
|
* a) present (not empty): !name.IsEmpty()
|
|
* b) no name (was missed): name.IsVoid()
|
|
*/
|
|
eNameOK,
|
|
|
|
/**
|
|
* Name was left empty by the author on purpose:
|
|
* name.IsEmpty() && !name.IsVoid().
|
|
*/
|
|
eNoNameOnPurpose,
|
|
|
|
/**
|
|
* Name was computed from the subtree.
|
|
*/
|
|
eNameFromSubtree,
|
|
|
|
/**
|
|
* Tooltip was used as a name.
|
|
*/
|
|
eNameFromTooltip
|
|
};
|
|
|
|
/**
|
|
* Group position (level, position in set and set size).
|
|
*/
|
|
struct GroupPos
|
|
{
|
|
GroupPos() : level(0), posInSet(0), setSize(0) { }
|
|
|
|
int32_t level;
|
|
int32_t posInSet;
|
|
int32_t setSize;
|
|
};
|
|
|
|
/**
|
|
* An index type. Assert if out of range value was attempted to be used.
|
|
*/
|
|
class index_t
|
|
{
|
|
public:
|
|
index_t(int32_t aVal) : mVal(aVal) {}
|
|
|
|
operator uint32_t() const
|
|
{
|
|
MOZ_ASSERT(mVal >= 0, "Attempt to use wrong index!");
|
|
return mVal;
|
|
}
|
|
|
|
bool IsValid() const { return mVal >= 0; }
|
|
|
|
private:
|
|
int32_t mVal;
|
|
};
|
|
|
|
typedef nsRefPtrHashtable<nsPtrHashKey<const void>, Accessible>
|
|
AccessibleHashtable;
|
|
|
|
|
|
#define NS_ACCESSIBLE_IMPL_IID \
|
|
{ /* 133c8bf4-4913-4355-bd50-426bd1d6e1ad */ \
|
|
0x133c8bf4, \
|
|
0x4913, \
|
|
0x4355, \
|
|
{ 0xbd, 0x50, 0x42, 0x6b, 0xd1, 0xd6, 0xe1, 0xad } \
|
|
}
|
|
|
|
class Accessible : public nsIAccessible,
|
|
public nsIAccessibleHyperLink,
|
|
public xpcAccessibleSelectable,
|
|
public xpcAccessibleValue
|
|
{
|
|
public:
|
|
Accessible(nsIContent* aContent, DocAccessible* aDoc);
|
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
|
NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(Accessible, nsIAccessible)
|
|
|
|
NS_DECL_NSIACCESSIBLE
|
|
NS_DECL_NSIACCESSIBLEHYPERLINK
|
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ACCESSIBLE_IMPL_IID)
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Public methods
|
|
|
|
/**
|
|
* Return the document accessible for this accessible.
|
|
*/
|
|
DocAccessible* Document() const { return mDoc; }
|
|
|
|
/**
|
|
* Return the root document accessible for this accessible.
|
|
*/
|
|
a11y::RootAccessible* RootAccessible() const;
|
|
|
|
/**
|
|
* Return frame for this accessible.
|
|
*/
|
|
virtual nsIFrame* GetFrame() const;
|
|
|
|
/**
|
|
* Return DOM node associated with the accessible.
|
|
*/
|
|
virtual nsINode* GetNode() const;
|
|
inline already_AddRefed<nsIDOMNode> DOMNode() const
|
|
{
|
|
nsCOMPtr<nsIDOMNode> DOMNode = do_QueryInterface(GetNode());
|
|
return DOMNode.forget();
|
|
}
|
|
nsIContent* GetContent() const { return mContent; }
|
|
|
|
/**
|
|
* Return node type information of DOM node associated with the accessible.
|
|
*/
|
|
bool IsContent() const
|
|
{ return GetNode() && GetNode()->IsNodeOfType(nsINode::eCONTENT); }
|
|
|
|
/**
|
|
* Return the unique identifier of the accessible.
|
|
*/
|
|
void* UniqueID() { return static_cast<void*>(this); }
|
|
|
|
/**
|
|
* Return language associated with the accessible.
|
|
*/
|
|
void Language(nsAString& aLocale);
|
|
|
|
/**
|
|
* Get the description of this accessible.
|
|
*/
|
|
virtual void Description(nsString& aDescription);
|
|
|
|
/**
|
|
* Get the value of this accessible.
|
|
*/
|
|
virtual void Value(nsString& aValue);
|
|
|
|
/**
|
|
* Get the name of this accessible.
|
|
*
|
|
* Note: aName.IsVoid() when name was left empty by the author on purpose.
|
|
* aName.IsEmpty() when the author missed name, AT can try to repair a name.
|
|
*/
|
|
virtual ENameValueFlag Name(nsString& aName);
|
|
|
|
/**
|
|
* Maps ARIA state attributes to state of accessible. Note the given state
|
|
* argument should hold states for accessible before you pass it into this
|
|
* method.
|
|
*
|
|
* @param [in/out] where to fill the states into.
|
|
*/
|
|
virtual void ApplyARIAState(uint64_t* aState) const;
|
|
|
|
/**
|
|
* Return enumerated accessible role (see constants in Role.h).
|
|
*/
|
|
mozilla::a11y::role Role();
|
|
|
|
/**
|
|
* Return true if ARIA role is specified on the element.
|
|
*/
|
|
bool HasARIARole() const { return mRoleMapEntry; }
|
|
bool IsARIARole(nsIAtom* aARIARole) const;
|
|
|
|
/**
|
|
* Retrun ARIA role map if any.
|
|
*/
|
|
nsRoleMapEntry* ARIARoleMap() const { return mRoleMapEntry; }
|
|
|
|
/**
|
|
* Return accessible role specified by ARIA (see constants in
|
|
* roles).
|
|
*/
|
|
mozilla::a11y::role ARIARole();
|
|
|
|
/**
|
|
* Returns enumerated accessible role from native markup (see constants in
|
|
* Role.h). Doesn't take into account ARIA roles.
|
|
*/
|
|
virtual mozilla::a11y::role NativeRole();
|
|
|
|
/**
|
|
* Return all states of accessible (including ARIA states).
|
|
*/
|
|
virtual uint64_t State();
|
|
|
|
/**
|
|
* Return interactive states present on the accessible
|
|
* (@see NativeInteractiveState).
|
|
*/
|
|
uint64_t InteractiveState() const
|
|
{
|
|
uint64_t state = NativeInteractiveState();
|
|
ApplyARIAState(&state);
|
|
return state;
|
|
}
|
|
|
|
/**
|
|
* Return link states present on the accessible.
|
|
*/
|
|
uint64_t LinkState() const
|
|
{
|
|
uint64_t state = NativeLinkState();
|
|
ApplyARIAState(&state);
|
|
return state;
|
|
}
|
|
|
|
/**
|
|
* Return if accessible is unavailable.
|
|
*/
|
|
bool Unavailable() const
|
|
{
|
|
uint64_t state = NativelyUnavailable() ? states::UNAVAILABLE : 0;
|
|
ApplyARIAState(&state);
|
|
return state & states::UNAVAILABLE;
|
|
}
|
|
|
|
/**
|
|
* Return the states of accessible, not taking into account ARIA states.
|
|
* Use State() to get complete set of states.
|
|
*/
|
|
virtual uint64_t NativeState();
|
|
|
|
/**
|
|
* Return native interactice state (unavailable, focusable or selectable).
|
|
*/
|
|
virtual uint64_t NativeInteractiveState() const;
|
|
|
|
/**
|
|
* Return native link states present on the accessible.
|
|
*/
|
|
virtual uint64_t NativeLinkState() const;
|
|
|
|
/**
|
|
* Return bit set of invisible and offscreen states.
|
|
*/
|
|
uint64_t VisibilityState();
|
|
|
|
/**
|
|
* Return true if native unavailable state present.
|
|
*/
|
|
virtual bool NativelyUnavailable() const;
|
|
|
|
/**
|
|
* Return object attributes for the accessible.
|
|
*/
|
|
virtual already_AddRefed<nsIPersistentProperties> Attributes();
|
|
|
|
/**
|
|
* Return group position (level, position in set and set size).
|
|
*/
|
|
virtual mozilla::a11y::GroupPos GroupPosition();
|
|
|
|
/**
|
|
* Used by ChildAtPoint() method to get direct or deepest child at point.
|
|
*/
|
|
enum EWhichChildAtPoint {
|
|
eDirectChild,
|
|
eDeepestChild
|
|
};
|
|
|
|
/**
|
|
* Return direct or deepest child at the given point.
|
|
*
|
|
* @param aX [in] x coordinate relative screen
|
|
* @param aY [in] y coordinate relative screen
|
|
* @param aWhichChild [in] flag points if deepest or direct child
|
|
* should be returned
|
|
*/
|
|
virtual Accessible* ChildAtPoint(int32_t aX, int32_t aY,
|
|
EWhichChildAtPoint aWhichChild);
|
|
|
|
/**
|
|
* Return the focused child if any.
|
|
*/
|
|
virtual Accessible* FocusedChild();
|
|
|
|
/**
|
|
* Return calculated group level based on accessible hierarchy.
|
|
*/
|
|
virtual int32_t GetLevelInternal();
|
|
|
|
/**
|
|
* Calculate position in group and group size ('posinset' and 'setsize') based
|
|
* on accessible hierarchy.
|
|
*
|
|
* @param aPosInSet [out] accessible position in the group
|
|
* @param aSetSize [out] the group size
|
|
*/
|
|
virtual void GetPositionAndSizeInternal(int32_t *aPosInSet,
|
|
int32_t *aSetSize);
|
|
|
|
/**
|
|
* Get the relation of the given type.
|
|
*/
|
|
virtual Relation RelationByType(RelationType aType);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Initializing methods
|
|
|
|
/**
|
|
* Shutdown this accessible object.
|
|
*/
|
|
virtual void Shutdown();
|
|
|
|
/**
|
|
* Set the ARIA role map entry for a new accessible.
|
|
*/
|
|
void SetRoleMapEntry(nsRoleMapEntry* aRoleMapEntry)
|
|
{ mRoleMapEntry = aRoleMapEntry; }
|
|
|
|
/**
|
|
* Update the children cache.
|
|
*/
|
|
inline bool UpdateChildren()
|
|
{
|
|
InvalidateChildren();
|
|
return EnsureChildren();
|
|
}
|
|
|
|
/**
|
|
* Cache children if necessary. Return true if the accessible is defunct.
|
|
*/
|
|
bool EnsureChildren();
|
|
|
|
/**
|
|
* Set the child count to -1 (unknown) and null out cached child pointers.
|
|
* Should be called when accessible tree is changed because document has
|
|
* transformed. Note, if accessible cares about its parent relation chain
|
|
* itself should override this method to do nothing.
|
|
*/
|
|
virtual void InvalidateChildren();
|
|
|
|
/**
|
|
* Append/insert/remove a child. Return true if operation was successful.
|
|
*/
|
|
bool AppendChild(Accessible* aChild)
|
|
{ return InsertChildAt(mChildren.Length(), aChild); }
|
|
virtual bool InsertChildAt(uint32_t aIndex, Accessible* aChild);
|
|
virtual bool RemoveChild(Accessible* aChild);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Accessible tree traverse methods
|
|
|
|
/**
|
|
* Return parent accessible.
|
|
*/
|
|
Accessible* Parent() const { return mParent; }
|
|
|
|
/**
|
|
* Return child accessible at the given index.
|
|
*/
|
|
virtual Accessible* GetChildAt(uint32_t aIndex) const;
|
|
|
|
/**
|
|
* Return child accessible count.
|
|
*/
|
|
virtual uint32_t ChildCount() const;
|
|
|
|
/**
|
|
* Return index of the given child accessible.
|
|
*/
|
|
int32_t GetIndexOf(const Accessible* aChild) const
|
|
{ return (aChild->mParent != this) ? -1 : aChild->IndexInParent(); }
|
|
|
|
/**
|
|
* Return index in parent accessible.
|
|
*/
|
|
virtual int32_t IndexInParent() const;
|
|
|
|
/**
|
|
* Return true if accessible has children;
|
|
*/
|
|
bool HasChildren() { return !!GetChildAt(0); }
|
|
|
|
/**
|
|
* Return first/last/next/previous sibling of the accessible.
|
|
*/
|
|
inline Accessible* NextSibling() const
|
|
{ return GetSiblingAtOffset(1); }
|
|
inline Accessible* PrevSibling() const
|
|
{ return GetSiblingAtOffset(-1); }
|
|
inline Accessible* FirstChild()
|
|
{ return GetChildAt(0); }
|
|
inline Accessible* LastChild()
|
|
{
|
|
uint32_t childCount = ChildCount();
|
|
return childCount != 0 ? GetChildAt(childCount - 1) : nullptr;
|
|
}
|
|
|
|
/**
|
|
* Return embedded accessible children count.
|
|
*/
|
|
uint32_t EmbeddedChildCount();
|
|
|
|
/**
|
|
* Return embedded accessible child at the given index.
|
|
*/
|
|
Accessible* GetEmbeddedChildAt(uint32_t aIndex);
|
|
|
|
/**
|
|
* Return index of the given embedded accessible child.
|
|
*/
|
|
int32_t GetIndexOfEmbeddedChild(Accessible* aChild);
|
|
|
|
/**
|
|
* Return number of content children/content child at index. The content
|
|
* child is created from markup in contrast to it's never constructed by its
|
|
* parent accessible (like treeitem accessibles for XUL trees).
|
|
*/
|
|
uint32_t ContentChildCount() const { return mChildren.Length(); }
|
|
Accessible* ContentChildAt(uint32_t aIndex) const
|
|
{ return mChildren.ElementAt(aIndex); }
|
|
|
|
/**
|
|
* Return true if children were initialized.
|
|
*/
|
|
inline bool AreChildrenCached() const
|
|
{ return !IsChildrenFlag(eChildrenUninitialized); }
|
|
|
|
/**
|
|
* Return true if the accessible is attached to tree.
|
|
*/
|
|
bool IsBoundToParent() const { return !!mParent; }
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Miscellaneous methods
|
|
|
|
/**
|
|
* Handle accessible event, i.e. process it, notifies observers and fires
|
|
* platform specific event.
|
|
*/
|
|
virtual nsresult HandleAccEvent(AccEvent* aAccEvent);
|
|
|
|
/**
|
|
* Return true if this accessible allows accessible children from anonymous subtree.
|
|
*/
|
|
virtual bool CanHaveAnonChildren();
|
|
|
|
/**
|
|
* Return true if the accessible is an acceptable child.
|
|
*/
|
|
virtual bool IsAcceptableChild(Accessible* aPossibleChild) const { return true; }
|
|
|
|
/**
|
|
* Returns text of accessible if accessible has text role otherwise empty
|
|
* string.
|
|
*
|
|
* @param aText [in] returned text of the accessible
|
|
* @param aStartOffset [in, optional] start offset inside of the accessible,
|
|
* if missed entire text is appended
|
|
* @param aLength [in, optional] required length of text, if missed
|
|
* then text form start offset till the end is appended
|
|
*/
|
|
virtual void AppendTextTo(nsAString& aText, uint32_t aStartOffset = 0,
|
|
uint32_t aLength = UINT32_MAX);
|
|
|
|
/**
|
|
* Assert if child not in parent's cache if the cache was initialized at this
|
|
* point.
|
|
*/
|
|
void TestChildCache(Accessible* aCachedChild) const;
|
|
|
|
/**
|
|
* Return boundaries rect relative the bounding frame.
|
|
*/
|
|
virtual void GetBoundsRect(nsRect& aRect, nsIFrame** aRelativeFrame);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Downcasting and types
|
|
|
|
inline bool IsAbbreviation() const
|
|
{
|
|
return mContent->IsHTML() &&
|
|
(mContent->Tag() == nsGkAtoms::abbr || mContent->Tag() == nsGkAtoms::acronym);
|
|
}
|
|
|
|
bool IsApplication() const { return mType == eApplicationType; }
|
|
|
|
bool IsAutoComplete() const { return HasGenericType(eAutoComplete); }
|
|
|
|
bool IsAutoCompletePopup() const
|
|
{ return HasGenericType(eAutoCompletePopup); }
|
|
|
|
bool IsButton() const { return HasGenericType(eButton); }
|
|
|
|
bool IsCombobox() const { return HasGenericType(eCombobox); }
|
|
|
|
bool IsDoc() const { return HasGenericType(eDocument); }
|
|
DocAccessible* AsDoc();
|
|
|
|
bool IsHyperText() const { return HasGenericType(eHyperText); }
|
|
HyperTextAccessible* AsHyperText();
|
|
|
|
bool IsHTMLBr() const { return mType == eHTMLBRType; }
|
|
bool IsHTMLFileInput() const { return mType == eHTMLFileInputType; }
|
|
|
|
bool IsHTMLListItem() const { return mType == eHTMLLiType; }
|
|
HTMLLIAccessible* AsHTMLListItem();
|
|
|
|
bool IsHTMLOptGroup() const { return mType == eHTMLOptGroupType; }
|
|
|
|
bool IsHTMLTable() const { return mType == eHTMLTableType; }
|
|
bool IsHTMLTableRow() const { return mType == eHTMLTableRowType; }
|
|
|
|
bool IsImage() const { return mType == eImageType; }
|
|
ImageAccessible* AsImage();
|
|
|
|
bool IsImageMap() const { return mType == eImageMapType; }
|
|
HTMLImageMapAccessible* AsImageMap();
|
|
|
|
bool IsList() const { return HasGenericType(eList); }
|
|
|
|
bool IsListControl() const { return HasGenericType(eListControl); }
|
|
|
|
bool IsMenuButton() const { return HasGenericType(eMenuButton); }
|
|
|
|
bool IsMenuPopup() const { return mType == eMenuPopupType; }
|
|
|
|
bool IsProgress() const { return mType == eProgressType; }
|
|
|
|
bool IsRoot() const { return mType == eRootType; }
|
|
a11y::RootAccessible* AsRoot();
|
|
|
|
bool IsSelect() const { return HasGenericType(eSelect); }
|
|
|
|
bool IsTable() const { return HasGenericType(eTable); }
|
|
virtual TableAccessible* AsTable() { return nullptr; }
|
|
|
|
bool IsTableCell() const { return HasGenericType(eTableCell); }
|
|
virtual TableCellAccessible* AsTableCell() { return nullptr; }
|
|
const TableCellAccessible* AsTableCell() const
|
|
{ return const_cast<Accessible*>(this)->AsTableCell(); }
|
|
|
|
bool IsTableRow() const { return HasGenericType(eTableRow); }
|
|
|
|
bool IsTextField() const { return mType == eHTMLTextFieldType; }
|
|
|
|
bool IsTextLeaf() const { return mType == eTextLeafType; }
|
|
TextLeafAccessible* AsTextLeaf();
|
|
|
|
bool IsXULLabel() const { return mType == eXULLabelType; }
|
|
XULLabelAccessible* AsXULLabel();
|
|
|
|
bool IsXULListItem() const { return mType == eXULListItemType; }
|
|
|
|
bool IsXULTabpanels() const { return mType == eXULTabpanelsType; }
|
|
|
|
bool IsXULTree() const { return mType == eXULTreeType; }
|
|
XULTreeAccessible* AsXULTree();
|
|
|
|
/**
|
|
* Return true if the accessible belongs to the given accessible type.
|
|
*/
|
|
bool HasGenericType(AccGenericType aType) const;
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// ActionAccessible
|
|
|
|
/**
|
|
* Return the number of actions that can be performed on this accessible.
|
|
*/
|
|
virtual uint8_t ActionCount();
|
|
|
|
/**
|
|
* Return access key, such as Alt+D.
|
|
*/
|
|
virtual KeyBinding AccessKey() const;
|
|
|
|
/**
|
|
* Return global keyboard shortcut for default action, such as Ctrl+O for
|
|
* Open file menuitem.
|
|
*/
|
|
virtual KeyBinding KeyboardShortcut() const;
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// HyperLinkAccessible
|
|
|
|
/**
|
|
* Return true if the accessible is hyper link accessible.
|
|
*/
|
|
virtual bool IsLink();
|
|
|
|
/**
|
|
* Return the start offset of the link within the parent accessible.
|
|
*/
|
|
virtual uint32_t StartOffset();
|
|
|
|
/**
|
|
* Return the end offset of the link within the parent accessible.
|
|
*/
|
|
virtual uint32_t EndOffset();
|
|
|
|
/**
|
|
* Return true if the link is valid (e. g. points to a valid URL).
|
|
*/
|
|
inline bool IsLinkValid()
|
|
{
|
|
NS_PRECONDITION(IsLink(), "IsLinkValid is called on not hyper link!");
|
|
|
|
// XXX In order to implement this we would need to follow every link
|
|
// Perhaps we can get information about invalid links from the cache
|
|
// In the mean time authors can use role="link" aria-invalid="true"
|
|
// to force it for links they internally know to be invalid
|
|
return (0 == (State() & mozilla::a11y::states::INVALID));
|
|
}
|
|
|
|
/**
|
|
* Return the number of anchors within the link.
|
|
*/
|
|
virtual uint32_t AnchorCount();
|
|
|
|
/**
|
|
* Returns an anchor accessible at the given index.
|
|
*/
|
|
virtual Accessible* AnchorAt(uint32_t aAnchorIndex);
|
|
|
|
/**
|
|
* Returns an anchor URI at the given index.
|
|
*/
|
|
virtual already_AddRefed<nsIURI> AnchorURIAt(uint32_t aAnchorIndex);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// SelectAccessible
|
|
|
|
/**
|
|
* Return an array of selected items.
|
|
*/
|
|
virtual already_AddRefed<nsIArray> SelectedItems();
|
|
|
|
/**
|
|
* Return the number of selected items.
|
|
*/
|
|
virtual uint32_t SelectedItemCount();
|
|
|
|
/**
|
|
* Return selected item at the given index.
|
|
*/
|
|
virtual Accessible* GetSelectedItem(uint32_t aIndex);
|
|
|
|
/**
|
|
* Determine if item at the given index is selected.
|
|
*/
|
|
virtual bool IsItemSelected(uint32_t aIndex);
|
|
|
|
/**
|
|
* Add item at the given index the selection. Return true if success.
|
|
*/
|
|
virtual bool AddItemToSelection(uint32_t aIndex);
|
|
|
|
/**
|
|
* Remove item at the given index from the selection. Return if success.
|
|
*/
|
|
virtual bool RemoveItemFromSelection(uint32_t aIndex);
|
|
|
|
/**
|
|
* Select all items. Return true if success.
|
|
*/
|
|
virtual bool SelectAll();
|
|
|
|
/**
|
|
* Unselect all items. Return true if success.
|
|
*/
|
|
virtual bool UnselectAll();
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Value (numeric value interface)
|
|
|
|
virtual double MaxValue() const;
|
|
virtual double MinValue() const;
|
|
virtual double CurValue() const;
|
|
virtual double Step() const;
|
|
virtual bool SetCurValue(double aValue);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Widgets
|
|
|
|
/**
|
|
* Return true if accessible is a widget, i.e. control or accessible that
|
|
* manages its items. Note, being a widget the accessible may be a part of
|
|
* composite widget.
|
|
*/
|
|
virtual bool IsWidget() const;
|
|
|
|
/**
|
|
* Return true if the widget is active, i.e. has a focus within it.
|
|
*/
|
|
virtual bool IsActiveWidget() const;
|
|
|
|
/**
|
|
* Return true if the widget has items and items are operable by user and
|
|
* can be activated.
|
|
*/
|
|
virtual bool AreItemsOperable() const;
|
|
|
|
/**
|
|
* Return the current item of the widget, i.e. an item that has or will have
|
|
* keyboard focus when widget gets active.
|
|
*/
|
|
virtual Accessible* CurrentItem();
|
|
|
|
/**
|
|
* Set the current item of the widget.
|
|
*/
|
|
virtual void SetCurrentItem(Accessible* aItem);
|
|
|
|
/**
|
|
* Return container widget this accessible belongs to.
|
|
*/
|
|
virtual Accessible* ContainerWidget() const;
|
|
|
|
/**
|
|
* Return the localized string for the given key.
|
|
*/
|
|
static void TranslateString(const nsString& aKey, nsAString& aStringOut);
|
|
|
|
/**
|
|
* Return true if the accessible is defunct.
|
|
*/
|
|
bool IsDefunct() const { return mStateFlags & eIsDefunct; }
|
|
|
|
/**
|
|
* Return true if the accessible is no longer in the document.
|
|
*/
|
|
bool IsInDocument() const { return !(mStateFlags & eIsNotInDocument); }
|
|
|
|
/**
|
|
* Return true if the accessible should be contained by document node map.
|
|
*/
|
|
bool IsNodeMapEntry() const
|
|
{ return HasOwnContent() && !(mStateFlags & eNotNodeMapEntry); }
|
|
|
|
/**
|
|
* Return true if the accessible's group info needs to be updated.
|
|
*/
|
|
inline bool HasDirtyGroupInfo() const { return mStateFlags & eGroupInfoDirty; }
|
|
|
|
/**
|
|
* Return true if the accessible has associated DOM content.
|
|
*/
|
|
bool HasOwnContent() const
|
|
{ return mContent && !(mStateFlags & eSharedNode); }
|
|
|
|
/**
|
|
* Return true if the accessible has a numeric value.
|
|
*/
|
|
bool HasNumericValue() const;
|
|
|
|
/**
|
|
* Return true if the accessible state change is processed by handling proper
|
|
* DOM UI event, if otherwise then false. For example, HTMLCheckboxAccessible
|
|
* process nsIDocumentObserver::ContentStateChanged instead
|
|
* 'CheckboxStateChange' event.
|
|
*/
|
|
bool NeedsDOMUIEvent() const
|
|
{ return !(mStateFlags & eIgnoreDOMUIEvent); }
|
|
|
|
/**
|
|
* Return true if this accessible has a parent whose name depends on this
|
|
* accessible.
|
|
*/
|
|
bool HasNameDependentParent() const
|
|
{ return mContextFlags & eHasNameDependentParent; }
|
|
|
|
protected:
|
|
|
|
virtual ~Accessible();
|
|
|
|
/**
|
|
* Return the accessible name provided by native markup. It doesn't take
|
|
* into account ARIA markup used to specify the name.
|
|
*/
|
|
virtual mozilla::a11y::ENameValueFlag NativeName(nsString& aName);
|
|
|
|
/**
|
|
* Return object attributes provided by native markup. It doesn't take into
|
|
* account ARIA.
|
|
*/
|
|
virtual already_AddRefed<nsIPersistentProperties> NativeAttributes();
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Initializing, cache and tree traverse methods
|
|
|
|
/**
|
|
* Destroy the object.
|
|
*/
|
|
void LastRelease();
|
|
|
|
/**
|
|
* Cache accessible children.
|
|
*/
|
|
virtual void CacheChildren();
|
|
|
|
/**
|
|
* Set accessible parent and index in parent.
|
|
*/
|
|
virtual void BindToParent(Accessible* aParent, uint32_t aIndexInParent);
|
|
virtual void UnbindFromParent();
|
|
|
|
/**
|
|
* Return sibling accessible at the given offset.
|
|
*/
|
|
virtual Accessible* GetSiblingAtOffset(int32_t aOffset,
|
|
nsresult *aError = nullptr) const;
|
|
|
|
/**
|
|
* Flags used to describe the state and type of children.
|
|
*/
|
|
enum ChildrenFlags {
|
|
eChildrenUninitialized = 0, // children aren't initialized
|
|
eMixedChildren = 1 << 0, // text leaf children are presented
|
|
eEmbeddedChildren = 1 << 1, // all children are embedded objects
|
|
|
|
eLastChildrenFlag = eEmbeddedChildren
|
|
};
|
|
|
|
/**
|
|
* Return true if the children flag is set.
|
|
*/
|
|
bool IsChildrenFlag(ChildrenFlags aFlag) const
|
|
{ return static_cast<ChildrenFlags>(mChildrenFlags) == aFlag; }
|
|
|
|
/**
|
|
* Set children flag.
|
|
*/
|
|
void SetChildrenFlag(ChildrenFlags aFlag) { mChildrenFlags = aFlag; }
|
|
|
|
/**
|
|
* Flags used to describe the state of this accessible.
|
|
* @note keep these flags in sync with ChildrenFlags
|
|
*/
|
|
enum StateFlags {
|
|
eIsDefunct = 1 << 0, // accessible is defunct
|
|
eIsNotInDocument = 1 << 1, // accessible is not in document
|
|
eSharedNode = 1 << 2, // accessible shares DOM node from another accessible
|
|
eNotNodeMapEntry = 1 << 3, // accessible shouldn't be in document node map
|
|
eHasNumericValue = 1 << 4, // accessible has a numeric value
|
|
eGroupInfoDirty = 1 << 5, // accessible needs to update group info
|
|
eIgnoreDOMUIEvent = 1 << 6, // don't process DOM UI events for a11y events
|
|
|
|
eLastStateFlag = eIgnoreDOMUIEvent
|
|
};
|
|
|
|
/**
|
|
* Flags used for contextual information about the accessible.
|
|
*/
|
|
enum ContextFlags {
|
|
eHasNameDependentParent = 1 << 0, // Parent's name depends on this accessible.
|
|
|
|
eLastContextFlag = eHasNameDependentParent
|
|
};
|
|
|
|
protected:
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Miscellaneous helpers
|
|
|
|
/**
|
|
* Return ARIA role (helper method).
|
|
*/
|
|
mozilla::a11y::role ARIATransformRole(mozilla::a11y::role aRole);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Name helpers
|
|
|
|
/**
|
|
* Returns the accessible name specified by ARIA.
|
|
*/
|
|
void ARIAName(nsString& aName);
|
|
|
|
/**
|
|
* Return the name for XUL element.
|
|
*/
|
|
static void XULElmName(DocAccessible* aDocument,
|
|
nsIContent* aElm, nsString& aName);
|
|
|
|
// helper method to verify frames
|
|
static nsresult GetFullKeyName(const nsAString& aModifierName, const nsAString& aKeyName, nsAString& aStringOut);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Action helpers
|
|
|
|
/**
|
|
* Prepares click action that will be invoked in timeout.
|
|
*
|
|
* @note DoCommand() prepares an action in timeout because when action
|
|
* command opens a modal dialog/window, it won't return until the
|
|
* dialog/window is closed. If executing action command directly in
|
|
* nsIAccessible::DoAction() method, it will block AT tools (e.g. GOK) that
|
|
* invoke action of mozilla accessibles direclty (see bug 277888 for details).
|
|
*
|
|
* @param aContent [in, optional] element to click
|
|
* @param aActionIndex [in, optional] index of accessible action
|
|
*/
|
|
void DoCommand(nsIContent *aContent = nullptr, uint32_t aActionIndex = 0);
|
|
|
|
/**
|
|
* Dispatch click event.
|
|
*/
|
|
virtual void DispatchClickEvent(nsIContent *aContent, uint32_t aActionIndex);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Helpers
|
|
|
|
/**
|
|
* Get the container node for an atomic region, defined by aria-atomic="true"
|
|
* @return the container node
|
|
*/
|
|
nsIContent* GetAtomicRegion() const;
|
|
|
|
/**
|
|
* Return numeric value of the given ARIA attribute, NaN if not applicable.
|
|
*
|
|
* @param aARIAProperty [in] the ARIA property we're using
|
|
* @return a numeric value
|
|
*/
|
|
double AttrNumericValue(nsIAtom* aARIAAttr) const;
|
|
|
|
/**
|
|
* Return the action rule based on ARIA enum constants EActionRule
|
|
* (see ARIAMap.h). Used by ActionCount() and GetActionName().
|
|
*/
|
|
uint32_t GetActionRule();
|
|
|
|
/**
|
|
* Return group info.
|
|
*/
|
|
AccGroupInfo* GetGroupInfo();
|
|
|
|
/**
|
|
* Set dirty state of the accessible's group info.
|
|
*/
|
|
inline void SetDirtyGroupInfo(bool aIsDirty)
|
|
{
|
|
if (aIsDirty)
|
|
mStateFlags |= eGroupInfoDirty;
|
|
else
|
|
mStateFlags &= ~eGroupInfoDirty;
|
|
}
|
|
|
|
/**
|
|
* Flag all children group info as needing to be updated.
|
|
*/
|
|
void InvalidateChildrenGroupInfo();
|
|
|
|
// Data Members
|
|
nsCOMPtr<nsIContent> mContent;
|
|
DocAccessible* mDoc;
|
|
|
|
nsRefPtr<Accessible> mParent;
|
|
nsTArray<nsRefPtr<Accessible> > mChildren;
|
|
int32_t mIndexInParent;
|
|
|
|
static const uint8_t kChildrenFlagsBits = 2;
|
|
static const uint8_t kStateFlagsBits = 7;
|
|
static const uint8_t kContextFlagsBits = 1;
|
|
static const uint8_t kTypeBits = 6;
|
|
static const uint8_t kGenericTypesBits = 13;
|
|
|
|
/**
|
|
* Keep in sync with ChildrenFlags, StateFlags, ContextFlags, and AccTypes.
|
|
*/
|
|
uint32_t mChildrenFlags : kChildrenFlagsBits;
|
|
uint32_t mStateFlags : kStateFlagsBits;
|
|
uint32_t mContextFlags : kContextFlagsBits;
|
|
uint32_t mType : kTypeBits;
|
|
uint32_t mGenericTypes : kGenericTypesBits;
|
|
|
|
void StaticAsserts() const;
|
|
|
|
friend class DocAccessible;
|
|
|
|
nsAutoPtr<mozilla::a11y::EmbeddedObjCollector> mEmbeddedObjCollector;
|
|
int32_t mIndexOfEmbeddedChild;
|
|
friend class EmbeddedObjCollector;
|
|
|
|
nsAutoPtr<AccGroupInfo> mGroupInfo;
|
|
friend class AccGroupInfo;
|
|
|
|
/**
|
|
* Non-null indicates author-supplied role; possibly state & value as well
|
|
*/
|
|
nsRoleMapEntry* mRoleMapEntry;
|
|
|
|
private:
|
|
Accessible() MOZ_DELETE;
|
|
Accessible(const Accessible&) MOZ_DELETE;
|
|
Accessible& operator =(const Accessible&) MOZ_DELETE;
|
|
|
|
};
|
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(Accessible,
|
|
NS_ACCESSIBLE_IMPL_IID)
|
|
|
|
|
|
/**
|
|
* Represent key binding associated with accessible (such as access key and
|
|
* global keyboard shortcuts).
|
|
*/
|
|
class KeyBinding
|
|
{
|
|
public:
|
|
/**
|
|
* Modifier mask values.
|
|
*/
|
|
static const uint32_t kShift = 1;
|
|
static const uint32_t kControl = 2;
|
|
static const uint32_t kAlt = 4;
|
|
static const uint32_t kMeta = 8;
|
|
static const uint32_t kOS = 16;
|
|
|
|
static uint32_t AccelModifier();
|
|
|
|
KeyBinding() : mKey(0), mModifierMask(0) {}
|
|
KeyBinding(uint32_t aKey, uint32_t aModifierMask) :
|
|
mKey(aKey), mModifierMask(aModifierMask) {}
|
|
|
|
inline bool IsEmpty() const { return !mKey; }
|
|
inline uint32_t Key() const { return mKey; }
|
|
inline uint32_t ModifierMask() const { return mModifierMask; }
|
|
|
|
enum Format {
|
|
ePlatformFormat,
|
|
eAtkFormat
|
|
};
|
|
|
|
/**
|
|
* Return formatted string for this key binding depending on the given format.
|
|
*/
|
|
inline void ToString(nsAString& aValue,
|
|
Format aFormat = ePlatformFormat) const
|
|
{
|
|
aValue.Truncate();
|
|
AppendToString(aValue, aFormat);
|
|
}
|
|
inline void AppendToString(nsAString& aValue,
|
|
Format aFormat = ePlatformFormat) const
|
|
{
|
|
if (mKey) {
|
|
if (aFormat == ePlatformFormat)
|
|
ToPlatformFormat(aValue);
|
|
else
|
|
ToAtkFormat(aValue);
|
|
}
|
|
}
|
|
|
|
private:
|
|
void ToPlatformFormat(nsAString& aValue) const;
|
|
void ToAtkFormat(nsAString& aValue) const;
|
|
|
|
uint32_t mKey;
|
|
uint32_t mModifierMask;
|
|
};
|
|
|
|
} // namespace a11y
|
|
} // namespace mozilla
|
|
|
|
#endif
|