зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1438193 - part11-9: NativeState r=surkov
turn NativeState into const functions
This commit is contained in:
Родитель
2b0e583f32
Коммит
55c94aedca
|
@ -407,7 +407,7 @@ Accessible::VisibilityState() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
Accessible::NativeState()
|
||||
Accessible::NativeState() const
|
||||
{
|
||||
uint64_t state = 0;
|
||||
|
||||
|
|
|
@ -293,7 +293,7 @@ public:
|
|||
* Return the states of accessible, not taking into account ARIA states.
|
||||
* Use State() to get complete set of states.
|
||||
*/
|
||||
virtual uint64_t NativeState();
|
||||
virtual uint64_t NativeState() const;
|
||||
|
||||
/**
|
||||
* Return native interactice state (unavailable, focusable or selectable).
|
||||
|
|
|
@ -148,7 +148,7 @@ ApplicationAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
ApplicationAccessible::NativeState()
|
||||
ApplicationAccessible::NativeState() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ public:
|
|||
virtual void Value(nsString& aValue) const override;
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t State() override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual Relation RelationByType(RelationType aType) const override;
|
||||
|
||||
virtual Accessible* ChildAtPoint(int32_t aX, int32_t aY,
|
||||
|
|
|
@ -231,7 +231,7 @@ LinkableAccessible::AnchorURIAt(uint32_t aAnchorIndex) const
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
uint64_t
|
||||
DummyAccessible::NativeState()
|
||||
DummyAccessible::NativeState() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ public:
|
|||
explicit DummyAccessible(DocAccessible* aDocument = nullptr) :
|
||||
AccessibleWrap(nullptr, aDocument) { }
|
||||
|
||||
uint64_t NativeState() final;
|
||||
uint64_t NativeState() const final;
|
||||
uint64_t NativeInteractiveState() const final;
|
||||
uint64_t NativeLinkState() const final;
|
||||
bool NativelyUnavailable() const final;
|
||||
|
|
|
@ -236,7 +236,7 @@ DocAccessible::Description(nsString& aDescription)
|
|||
|
||||
// Accessible public method
|
||||
uint64_t
|
||||
DocAccessible::NativeState()
|
||||
DocAccessible::NativeState() const
|
||||
{
|
||||
// Document is always focusable.
|
||||
uint64_t state = states::FOCUSABLE; // keep in sync with NativeInteractiveState() impl
|
||||
|
|
|
@ -73,7 +73,7 @@ public:
|
|||
virtual void Description(nsString& aDescription) override;
|
||||
virtual Accessible* FocusedChild() override;
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
virtual bool NativelyUnavailable() const override;
|
||||
virtual void ApplyARIAState(uint64_t* aState) const override;
|
||||
|
|
|
@ -32,7 +32,7 @@ ProgressMeterAccessible<Max>::NativeRole() const
|
|||
|
||||
template<int Max>
|
||||
uint64_t
|
||||
ProgressMeterAccessible<Max>::NativeState()
|
||||
ProgressMeterAccessible<Max>::NativeState() const
|
||||
{
|
||||
uint64_t state = LeafAccessible::NativeState();
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
// Accessible
|
||||
virtual void Value(nsString& aValue) const override;
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// Value
|
||||
virtual double MaxValue() const override;
|
||||
|
|
|
@ -71,7 +71,7 @@ HyperTextAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HyperTextAccessible::NativeState()
|
||||
HyperTextAccessible::NativeState() const
|
||||
{
|
||||
uint64_t states = AccessibleWrap::NativeState();
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
virtual int32_t GetLevelInternal() override;
|
||||
virtual already_AddRefed<nsIPersistentProperties> NativeAttributes() override;
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
virtual void Shutdown() override;
|
||||
virtual bool RemoveChild(Accessible* aAccessible) override;
|
||||
|
|
|
@ -42,7 +42,7 @@ ImageAccessible::~ImageAccessible()
|
|||
// Accessible public
|
||||
|
||||
uint64_t
|
||||
ImageAccessible::NativeState()
|
||||
ImageAccessible::NativeState() const
|
||||
{
|
||||
// The state is a bitfield, get our inherited state, then logically OR it with
|
||||
// states::ANIMATED if this is an animated image.
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual already_AddRefed<nsIPersistentProperties> NativeAttributes() override;
|
||||
|
||||
// ActionAccessible
|
||||
|
|
|
@ -123,7 +123,7 @@ RootAccessible::GetChromeFlags() const
|
|||
#endif
|
||||
|
||||
uint64_t
|
||||
RootAccessible::NativeState()
|
||||
RootAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = DocAccessibleWrap::NativeState();
|
||||
if (state & states::DEFUNCT)
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
virtual mozilla::a11y::ENameValueFlag Name(nsString& aName) const override;
|
||||
virtual Relation RelationByType(RelationType aType) const override;
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// RootAccessible
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ HTMLBRAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLBRAccessible::NativeState()
|
||||
HTMLBRAccessible::NativeState() const
|
||||
{
|
||||
return states::READONLY;
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ HTMLSummaryAccessible::DoAction(uint8_t aIndex) const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLSummaryAccessible::NativeState()
|
||||
HTMLSummaryAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = HyperTextAccessibleWrap::NativeState();
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
protected:
|
||||
// Accessible
|
||||
|
@ -105,7 +105,7 @@ public:
|
|||
HTMLSummaryAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
||||
|
||||
// Accessible
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// ActionAccessible
|
||||
virtual uint8_t ActionCount() const override;
|
||||
|
|
|
@ -76,7 +76,7 @@ HTMLCheckboxAccessible::DoAction(uint8_t aIndex) const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLCheckboxAccessible::NativeState()
|
||||
HTMLCheckboxAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = LeafAccessible::NativeState();
|
||||
|
||||
|
@ -109,7 +109,7 @@ HTMLCheckboxAccessible::IsWidget() const
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
uint64_t
|
||||
HTMLRadioButtonAccessible::NativeState()
|
||||
HTMLRadioButtonAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = AccessibleWrap::NativeState();
|
||||
|
||||
|
@ -222,7 +222,7 @@ HTMLButtonAccessible::State()
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLButtonAccessible::NativeState()
|
||||
HTMLButtonAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = HyperTextAccessibleWrap::NativeState();
|
||||
|
||||
|
@ -373,7 +373,7 @@ HTMLTextFieldAccessible::ApplyARIAState(uint64_t* aState) const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLTextFieldAccessible::NativeState()
|
||||
HTMLTextFieldAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = HyperTextAccessibleWrap::NativeState();
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// ActionAccessible
|
||||
virtual uint8_t ActionCount() const override;
|
||||
|
@ -65,7 +65,7 @@ public:
|
|||
}
|
||||
|
||||
// Accessible
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual void GetPositionAndSizeInternal(int32_t *aPosInSet,
|
||||
int32_t *aSetSize) override;
|
||||
};
|
||||
|
@ -86,7 +86,7 @@ public:
|
|||
// Accessible
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t State() override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// ActionAccessible
|
||||
virtual uint8_t ActionCount() const override;
|
||||
|
@ -124,7 +124,7 @@ public:
|
|||
virtual void Value(nsString& aValue) const override;
|
||||
virtual void ApplyARIAState(uint64_t* aState) const override;
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual already_AddRefed<nsIPersistentProperties> NativeAttributes() override;
|
||||
|
||||
// ActionAccessible
|
||||
|
|
|
@ -37,7 +37,7 @@ HTMLLinkAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLLinkAccessible::NativeState()
|
||||
HTMLLinkAccessible::NativeState() const
|
||||
{
|
||||
return HyperTextAccessibleWrap::NativeState() & ~states::READONLY;
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
// Accessible
|
||||
virtual void Value(nsString& aValue) const override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeLinkState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ HTMLListAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLListAccessible::NativeState()
|
||||
HTMLListAccessible::NativeState() const
|
||||
{
|
||||
return HyperTextAccessibleWrap::NativeState() | states::READONLY;
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ HTMLLIAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLLIAccessible::NativeState()
|
||||
HTMLLIAccessible::NativeState() const
|
||||
{
|
||||
return HyperTextAccessibleWrap::NativeState() | states::READONLY;
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ HTMLListBulletAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLListBulletAccessible::NativeState()
|
||||
HTMLListBulletAccessible::NativeState() const
|
||||
{
|
||||
return LeafAccessible::NativeState() | states::READONLY;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
protected:
|
||||
virtual ~HTMLListAccessible() { }
|
||||
|
@ -53,7 +53,7 @@ public:
|
|||
virtual void Shutdown() override;
|
||||
virtual nsRect BoundsInAppUnits() const override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
virtual bool InsertChildAt(uint32_t aIndex, Accessible* aChild) override;
|
||||
|
||||
|
@ -82,7 +82,7 @@ public:
|
|||
virtual nsIFrame* GetFrame() const override;
|
||||
virtual ENameValueFlag Name(nsString& aName) const override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual void AppendTextTo(nsAString& aText, uint32_t aStartOffset = 0,
|
||||
uint32_t aLength = UINT32_MAX) override;
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ HTMLSelectListAccessible::
|
|||
// HTMLSelectListAccessible: Accessible public
|
||||
|
||||
uint64_t
|
||||
HTMLSelectListAccessible::NativeState()
|
||||
HTMLSelectListAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = AccessibleWrap::NativeState();
|
||||
if (mContent->AsElement()->HasAttr(kNameSpaceID_None, nsGkAtoms::multiple))
|
||||
|
@ -169,7 +169,7 @@ HTMLSelectOptionAccessible::NativeName(nsString& aName) const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLSelectOptionAccessible::NativeState()
|
||||
HTMLSelectOptionAccessible::NativeState() const
|
||||
{
|
||||
// As a HTMLSelectOptionAccessible we can have the following states:
|
||||
// SELECTABLE, SELECTED, FOCUSED, FOCUSABLE, OFFSCREEN
|
||||
|
@ -397,7 +397,7 @@ HTMLComboboxAccessible::Shutdown()
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLComboboxAccessible::NativeState()
|
||||
HTMLComboboxAccessible::NativeState() const
|
||||
{
|
||||
// As a HTMLComboboxAccessible we can have the following states:
|
||||
// FOCUSED, FOCUSABLE, HASPOPUP, EXPANDED, COLLAPSED
|
||||
|
@ -568,7 +568,7 @@ HTMLComboboxListAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLComboboxListAccessible::NativeState()
|
||||
HTMLComboboxListAccessible::NativeState() const
|
||||
{
|
||||
// As a HTMLComboboxListAccessible we can have the following states:
|
||||
// FOCUSED, FOCUSABLE, FLOATING, INVISIBLE
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual bool IsAcceptableChild(nsIContent* aEl) const override;
|
||||
|
||||
// SelectAccessible
|
||||
|
@ -66,7 +66,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
|
||||
virtual int32_t GetLevelInternal() override;
|
||||
|
@ -167,7 +167,7 @@ public:
|
|||
virtual void Description(nsString& aDescription) override;
|
||||
virtual void Value(nsString& aValue) const override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual bool RemoveChild(Accessible* aChild) override;
|
||||
virtual bool IsAcceptableChild(nsIContent* aEl) const override;
|
||||
|
||||
|
@ -209,7 +209,7 @@ public:
|
|||
// Accessible
|
||||
virtual nsIFrame* GetFrame() const override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual nsRect RelativeBounds(nsIFrame** aBoundingFrame) const override;
|
||||
virtual bool IsAcceptableChild(nsIContent* aEl) const override;
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ HTMLTableCellAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLTableCellAccessible::NativeState()
|
||||
HTMLTableCellAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = HyperTextAccessibleWrap::NativeState();
|
||||
|
||||
|
@ -404,7 +404,7 @@ HTMLTableAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
HTMLTableAccessible::NativeState()
|
||||
HTMLTableAccessible::NativeState() const
|
||||
{
|
||||
return Accessible::NativeState() | states::READONLY;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
// Accessible
|
||||
virtual TableCellAccessible* AsTableCell() override { return this; }
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
virtual already_AddRefed<nsIPersistentProperties> NativeAttributes() override;
|
||||
virtual mozilla::a11y::GroupPos GroupPosition() override;
|
||||
|
@ -163,7 +163,7 @@ public:
|
|||
virtual TableAccessible* AsTable() override { return this; }
|
||||
virtual void Description(nsString& aDescription) override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual already_AddRefed<nsIPersistentProperties> NativeAttributes() override;
|
||||
virtual Relation RelationByType(RelationType aRelationType) const override;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ XULAlertAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULAlertAccessible::NativeState()
|
||||
XULAlertAccessible::NativeState() const
|
||||
{
|
||||
return Accessible::NativeState() | states::ALERT;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
// Accessible
|
||||
virtual mozilla::a11y::ENameValueFlag Name(nsString& aName) const override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// Widgets
|
||||
virtual bool IsWidget() const override;
|
||||
|
|
|
@ -43,7 +43,7 @@ XULColorPickerTileAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULColorPickerTileAccessible::NativeState()
|
||||
XULColorPickerTileAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = AccessibleWrap::NativeState();
|
||||
if (mContent->AsElement()->HasAttr(kNameSpaceID_None, nsGkAtoms::selected))
|
||||
|
@ -89,7 +89,7 @@ XULColorPickerAccessible::
|
|||
// XULColorPickerAccessible: Accessible
|
||||
|
||||
uint64_t
|
||||
XULColorPickerAccessible::NativeState()
|
||||
XULColorPickerAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = AccessibleWrap::NativeState();
|
||||
return state | states::HASPOPUP;
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
// Accessible
|
||||
virtual void Value(nsString& aValue) const override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
|
||||
// Widgets
|
||||
|
@ -41,7 +41,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// Widgets
|
||||
virtual bool IsWidget() const override;
|
||||
|
|
|
@ -50,7 +50,7 @@ XULComboboxAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULComboboxAccessible::NativeState()
|
||||
XULComboboxAccessible::NativeState() const
|
||||
{
|
||||
// As a nsComboboxAccessible we can have the following states:
|
||||
// STATE_FOCUSED
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
virtual void Description(nsString& aDescription) override;
|
||||
virtual void Value(nsString& aValue) const override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// ActionAccessible
|
||||
virtual uint8_t ActionCount() const override;
|
||||
|
|
|
@ -79,7 +79,7 @@ XULLabelAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULLabelAccessible::NativeState()
|
||||
XULLabelAccessible::NativeState() const
|
||||
{
|
||||
// Labels and description have read only state
|
||||
// They are not focusable or selectable
|
||||
|
@ -133,7 +133,7 @@ XULLabelTextLeafAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULLabelTextLeafAccessible::NativeState()
|
||||
XULLabelTextLeafAccessible::NativeState() const
|
||||
{
|
||||
return TextLeafAccessibleWrap::NativeState() | states::READONLY;
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ XULTooltipAccessible::
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULTooltipAccessible::NativeState()
|
||||
XULTooltipAccessible::NativeState() const
|
||||
{
|
||||
return LeafAccessible::NativeState() | states::READONLY;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
// Accessible
|
||||
virtual void Shutdown() override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual Relation RelationByType(RelationType aType) const override;
|
||||
|
||||
void UpdateLabelValue(const nsString& aValue);
|
||||
|
@ -60,7 +60,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -75,7 +75,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
};
|
||||
|
||||
class XULLinkAccessible : public XULLabelAccessible
|
||||
|
|
|
@ -88,7 +88,7 @@ XULButtonAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULButtonAccessible::NativeState()
|
||||
XULButtonAccessible::NativeState() const
|
||||
{
|
||||
// Possible states: focused, focusable, unavailable(disabled).
|
||||
|
||||
|
@ -270,7 +270,7 @@ XULDropmarkerAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULDropmarkerAccessible::NativeState()
|
||||
XULDropmarkerAccessible::NativeState() const
|
||||
{
|
||||
return DropmarkerOpen(false) ? states::PRESSED : 0;
|
||||
}
|
||||
|
@ -319,7 +319,7 @@ XULCheckboxAccessible::DoAction(uint8_t aIndex) const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULCheckboxAccessible::NativeState()
|
||||
XULCheckboxAccessible::NativeState() const
|
||||
{
|
||||
// Possible states: focused, focusable, unavailable(disabled), checked
|
||||
// Get focus and disable status from base class
|
||||
|
@ -408,7 +408,7 @@ XULRadioButtonAccessible::
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULRadioButtonAccessible::NativeState()
|
||||
XULRadioButtonAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = LeafAccessible::NativeState();
|
||||
state |= states::CHECKABLE;
|
||||
|
@ -610,7 +610,7 @@ XULToolbarSeparatorAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULToolbarSeparatorAccessible::NativeState()
|
||||
XULToolbarSeparatorAccessible::NativeState() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// ActionAccessible
|
||||
virtual uint8_t ActionCount() const override;
|
||||
|
@ -71,7 +71,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// ActionAccessible
|
||||
virtual uint8_t ActionCount() const override;
|
||||
|
@ -90,7 +90,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// ActionAccessible
|
||||
virtual uint8_t ActionCount() const override;
|
||||
|
@ -128,7 +128,7 @@ public:
|
|||
XULRadioButtonAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
||||
|
||||
// Accessible
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
|
||||
// Widgets
|
||||
|
@ -208,7 +208,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual mozilla::a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
};
|
||||
|
||||
} // namespace a11y
|
||||
|
|
|
@ -41,7 +41,7 @@ XULColumAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULColumAccessible::NativeState()
|
||||
XULColumAccessible::NativeState() const
|
||||
{
|
||||
return states::READONLY;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ XULColumnItemAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULColumnItemAccessible::NativeState()
|
||||
XULColumnItemAccessible::NativeState() const
|
||||
{
|
||||
return states::READONLY;
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ XULListboxAccessible::
|
|||
// XULListboxAccessible: Accessible
|
||||
|
||||
uint64_t
|
||||
XULListboxAccessible::NativeState()
|
||||
XULListboxAccessible::NativeState() const
|
||||
{
|
||||
// As a XULListboxAccessible we can have the following states:
|
||||
// FOCUSED, READONLY, FOCUSABLE
|
||||
|
@ -613,7 +613,7 @@ XULListitemAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULListitemAccessible::NativeState()
|
||||
XULListitemAccessible::NativeState() const
|
||||
{
|
||||
if (mIsCheckbox)
|
||||
return XULMenuitemAccessible::NativeState();
|
||||
|
|
|
@ -28,7 +28,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -42,7 +42,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// ActionAccessible
|
||||
virtual uint8_t ActionCount() const override;
|
||||
|
@ -83,7 +83,7 @@ public:
|
|||
virtual void Value(nsString& aValue) const override;
|
||||
virtual TableAccessible* AsTable() override { return this; }
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// Widgets
|
||||
virtual bool IsWidget() const override;
|
||||
|
@ -114,7 +114,7 @@ public:
|
|||
// Accessible
|
||||
virtual void Description(nsString& aDesc) override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
|
||||
// Actions
|
||||
|
|
|
@ -43,7 +43,7 @@ XULMenuitemAccessible::
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULMenuitemAccessible::NativeState()
|
||||
XULMenuitemAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = Accessible::NativeState();
|
||||
|
||||
|
@ -354,7 +354,7 @@ XULMenuSeparatorAccessible::
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULMenuSeparatorAccessible::NativeState()
|
||||
XULMenuSeparatorAccessible::NativeState() const
|
||||
{
|
||||
// Isn't focusable, but can be offscreen/invisible -- only copy those states
|
||||
return XULMenuitemAccessible::NativeState() &
|
||||
|
@ -412,7 +412,7 @@ XULMenupopupAccessible::
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULMenupopupAccessible::NativeState()
|
||||
XULMenupopupAccessible::NativeState() const
|
||||
{
|
||||
uint64_t state = Accessible::NativeState();
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
// Accessible
|
||||
virtual void Description(nsString& aDescription) override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
virtual int32_t GetLevelInternal() override;
|
||||
|
||||
|
@ -57,7 +57,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// ActionAccessible
|
||||
virtual uint8_t ActionCount() const override;
|
||||
|
@ -80,7 +80,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
|
||||
// Widgets
|
||||
virtual bool IsWidget() const override;
|
||||
|
|
|
@ -71,7 +71,7 @@ XULTabAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULTabAccessible::NativeState()
|
||||
XULTabAccessible::NativeState() const
|
||||
{
|
||||
// Possible states: focused, focusable, unavailable(disabled), offscreen.
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
|
||||
// Accessible
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
virtual Relation RelationByType(RelationType aType) const override;
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ NS_IMPL_RELEASE_INHERITED(XULTreeAccessible, Accessible)
|
|||
// XULTreeAccessible: Accessible implementation
|
||||
|
||||
uint64_t
|
||||
XULTreeAccessible::NativeState()
|
||||
XULTreeAccessible::NativeState() const
|
||||
{
|
||||
// Get focus status from base class.
|
||||
uint64_t state = Accessible::NativeState();
|
||||
|
@ -919,7 +919,7 @@ XULTreeItemAccessibleBase::GroupPosition()
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULTreeItemAccessibleBase::NativeState()
|
||||
XULTreeItemAccessibleBase::NativeState() const
|
||||
{
|
||||
|
||||
// focusable and selectable states
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
virtual void Shutdown() override;
|
||||
virtual void Value(nsString& aValue) const override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual Accessible* ChildAtPoint(int32_t aX, int32_t aY,
|
||||
EWhichChildAtPoint aWhichChild) override;
|
||||
|
||||
|
@ -149,7 +149,7 @@ public:
|
|||
virtual nsRect BoundsInAppUnits() const override;
|
||||
virtual nsIntRect BoundsInCSSPixels() const override;
|
||||
virtual GroupPos GroupPosition() override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
virtual int32_t IndexInParent() const override;
|
||||
virtual Relation RelationByType(RelationType aType) const override;
|
||||
|
|
|
@ -688,7 +688,7 @@ XULTreeGridCellAccessible::NativeRole() const
|
|||
}
|
||||
|
||||
uint64_t
|
||||
XULTreeGridCellAccessible::NativeState()
|
||||
XULTreeGridCellAccessible::NativeState() const
|
||||
{
|
||||
if (!mTreeView)
|
||||
return states::DEFUNCT;
|
||||
|
|
|
@ -134,7 +134,7 @@ public:
|
|||
virtual int32_t IndexInParent() const override;
|
||||
virtual Relation RelationByType(RelationType aType) const override;
|
||||
virtual a11y::role NativeRole() const override;
|
||||
virtual uint64_t NativeState() override;
|
||||
virtual uint64_t NativeState() const override;
|
||||
virtual uint64_t NativeInteractiveState() const override;
|
||||
|
||||
// ActionAccessible
|
||||
|
|
Загрузка…
Ссылка в новой задаче