2009-09-11 05:07:56 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2005-03-18 07:29:39 +03:00
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
#ifndef mozilla_a11y_XULComboboxAccessible_h__
|
|
|
|
#define mozilla_a11y_XULComboboxAccessible_h__
|
2005-03-18 07:29:39 +03:00
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
#include "XULMenuAccessible.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
2012-06-09 19:45:07 +04:00
|
|
|
|
2009-09-11 05:07:56 +04:00
|
|
|
/**
|
|
|
|
* Used for XUL comboboxes like xul:menulist and autocomplete textbox.
|
|
|
|
*/
|
2012-06-11 03:44:50 +04:00
|
|
|
class XULComboboxAccessible : public AccessibleWrap {
|
2009-09-11 05:07:56 +04:00
|
|
|
public:
|
|
|
|
enum { eAction_Click = 0 };
|
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
XULComboboxAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
2009-09-11 05:07:56 +04:00
|
|
|
|
2012-05-29 05:18:45 +04:00
|
|
|
// Accessible
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void Description(nsString& aDescription) override;
|
2018-05-15 19:55:28 +03:00
|
|
|
virtual void Value(nsString& aValue) const override;
|
2018-05-07 22:05:50 +03:00
|
|
|
virtual a11y::role NativeRole() const override;
|
2018-05-15 21:04:50 +03:00
|
|
|
virtual uint64_t NativeState() const override;
|
2011-06-05 23:35:43 +04:00
|
|
|
|
|
|
|
// ActionAccessible
|
2018-05-15 20:40:22 +03:00
|
|
|
virtual uint8_t ActionCount() const override;
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void ActionNameAt(uint8_t aIndex, nsAString& aName) override;
|
2018-05-15 20:40:22 +03:00
|
|
|
virtual bool DoAction(uint8_t aIndex) const override;
|
2011-09-28 05:46:11 +04:00
|
|
|
|
|
|
|
// Widgets
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual bool IsActiveWidget() const override;
|
2019-04-23 04:34:24 +03:00
|
|
|
MOZ_CAN_RUN_SCRIPT_BOUNDARY virtual bool AreItemsOperable() const override;
|
2009-09-11 05:07:56 +04:00
|
|
|
};
|
2005-03-18 07:29:39 +03:00
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2005-03-18 07:29:39 +03:00
|
|
|
#endif
|