Bug 1931748. Fix some readability-else-after-return issues in layout code. r=jfkthame
[gecko.git] / accessible / xul / XULComboboxAccessible.h
blob92f909690ecfa81144d7f303fc461e0497ce6395
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 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;
30 // ActionAccessible
31 bool HasPrimaryAction() const override;
32 void ActionNameAt(uint8_t aIndex, nsAString& aName) override;
33 bool DoAction(uint8_t aIndex) const override;
35 // Widgets
36 bool IsActiveWidget() const override;
37 MOZ_CAN_RUN_SCRIPT_BOUNDARY bool AreItemsOperable() const override;
40 } // namespace a11y
41 } // namespace mozilla
43 #endif