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 void Description(nsString
& aDescription
) const override
;
25 void Value(nsString
& aValue
) const override
;
26 a11y::role
NativeRole() const override
;
27 uint64_t NativeState() const override
;
28 bool IsAcceptableChild(nsIContent
*) const override
;
31 bool HasPrimaryAction() const override
;
32 void ActionNameAt(uint8_t aIndex
, nsAString
& aName
) override
;
33 bool DoAction(uint8_t aIndex
) const override
;
36 bool IsActiveWidget() const override
;
37 MOZ_CAN_RUN_SCRIPT_BOUNDARY
bool AreItemsOperable() const override
;
41 } // namespace mozilla