1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_a11y_XULComboboxAccessible_h__
7 #define mozilla_a11y_XULComboboxAccessible_h__
9 #include "XULMenuAccessible.h"
15 * Used for XUL comboboxes like xul:menulist and autocomplete textbox.
17 class XULComboboxAccessible
: public AccessibleWrap
{
19 enum { eAction_Click
= 0 };
21 XULComboboxAccessible(nsIContent
* aContent
, DocAccessible
* aDoc
);
24 virtual void Description(nsString
& aDescription
) override
;
25 virtual void Value(nsString
& aValue
) const override
;
26 virtual a11y::role
NativeRole() const override
;
27 virtual uint64_t NativeState() const override
;
30 virtual uint8_t ActionCount() const override
;
31 virtual void ActionNameAt(uint8_t aIndex
, nsAString
& aName
) override
;
32 virtual bool DoAction(uint8_t aIndex
) const override
;
35 virtual bool IsActiveWidget() const override
;
36 MOZ_CAN_RUN_SCRIPT_BOUNDARY
virtual bool AreItemsOperable() const override
;
40 } // namespace mozilla