2009-09-11 01:07:56 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00: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 04:29:39 +00:00
|
|
|
|
2012-06-10 23:44:50 +00:00
|
|
|
#ifndef mozilla_a11y_XULComboboxAccessible_h__
|
|
|
|
#define mozilla_a11y_XULComboboxAccessible_h__
|
2005-03-18 04:29:39 +00:00
|
|
|
|
2012-06-10 23:44:50 +00:00
|
|
|
#include "XULMenuAccessible.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
2012-06-09 15:45:07 +00:00
|
|
|
|
2009-09-11 01:07:56 +00:00
|
|
|
/**
|
|
|
|
* Used for XUL comboboxes like xul:menulist and autocomplete textbox.
|
|
|
|
*/
|
2012-06-10 23:44:50 +00:00
|
|
|
class XULComboboxAccessible : public AccessibleWrap
|
2009-09-11 01:07:56 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum { eAction_Click = 0 };
|
|
|
|
|
2012-06-10 23:44:50 +00:00
|
|
|
XULComboboxAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
2009-09-11 01:07:56 +00:00
|
|
|
|
2012-05-29 01:18:45 +00:00
|
|
|
// Accessible
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual void Description(nsString& aDescription) override;
|
|
|
|
virtual void Value(nsString& aValue) override;
|
|
|
|
virtual a11y::role NativeRole() override;
|
|
|
|
virtual uint64_t NativeState() override;
|
2011-06-05 19:35:43 +00:00
|
|
|
|
|
|
|
// ActionAccessible
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual uint8_t ActionCount() override;
|
|
|
|
virtual void ActionNameAt(uint8_t aIndex, nsAString& aName) override;
|
|
|
|
virtual bool DoAction(uint8_t aIndex) override;
|
2011-09-28 01:46:11 +00:00
|
|
|
|
|
|
|
// Widgets
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual bool IsActiveWidget() const override;
|
|
|
|
virtual bool AreItemsOperable() const override;
|
2009-09-11 01:07:56 +00:00
|
|
|
};
|
2005-03-18 04:29:39 +00:00
|
|
|
|
2012-06-10 23:44:50 +00:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2005-03-18 04:29:39 +00:00
|
|
|
#endif
|