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
|
|
|
|
|
|
|
// nsIAccessible
|
2012-08-22 15:56:38 +00:00
|
|
|
NS_IMETHOD DoAction(uint8_t aIndex);
|
|
|
|
NS_IMETHOD GetActionName(uint8_t aIndex, nsAString& aName);
|
2009-09-11 01:07:56 +00:00
|
|
|
|
2012-05-29 01:18:45 +00:00
|
|
|
// Accessible
|
2011-04-23 13:14:05 +00:00
|
|
|
virtual void Description(nsString& aDescription);
|
2012-04-09 09:48:41 +00:00
|
|
|
virtual void Value(nsString& aValue);
|
2012-06-10 23:44:50 +00:00
|
|
|
virtual a11y::role NativeRole();
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual uint64_t NativeState();
|
2012-02-08 07:31:25 +00:00
|
|
|
virtual bool CanHaveAnonChildren();
|
2011-06-05 19:35:43 +00:00
|
|
|
|
|
|
|
// ActionAccessible
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual uint8_t ActionCount();
|
2011-09-28 01:46:11 +00:00
|
|
|
|
|
|
|
// Widgets
|
|
|
|
virtual bool IsActiveWidget() const;
|
|
|
|
virtual bool AreItemsOperable() const;
|
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
|