Bug 1718535 [wpt PR 29519] - [Credentialless] Fix flaky reporting-subresource-corp...
[gecko.git] / accessible / xul / XULComboboxAccessible.h
blob2c56c5b2bf40b14ec07cf576d124a9931b199658
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"
11 namespace mozilla {
12 namespace a11y {
14 /**
15 * Used for XUL comboboxes like xul:menulist and autocomplete textbox.
17 class XULComboboxAccessible : public AccessibleWrap {
18 public:
19 enum { eAction_Click = 0 };
21 XULComboboxAccessible(nsIContent* aContent, DocAccessible* aDoc);
23 // LocalAccessible
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;
29 // ActionAccessible
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;
34 // Widgets
35 virtual bool IsActiveWidget() const override;
36 MOZ_CAN_RUN_SCRIPT_BOUNDARY virtual bool AreItemsOperable() const override;
39 } // namespace a11y
40 } // namespace mozilla
42 #endif