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
|
|
|
|
2009-09-11 01:07:56 +00:00
|
|
|
#ifndef __nsXULComboboxAccessible_h__
|
|
|
|
#define __nsXULComboboxAccessible_h__
|
2005-03-18 04:29:39 +00:00
|
|
|
|
2012-06-09 08:21:07 +00:00
|
|
|
#include "XULMenuAccessible.h"
|
2009-09-11 01:07:56 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Used for XUL comboboxes like xul:menulist and autocomplete textbox.
|
|
|
|
*/
|
2012-05-29 01:18:45 +00:00
|
|
|
class nsXULComboboxAccessible : public AccessibleWrap
|
2009-09-11 01:07:56 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum { eAction_Click = 0 };
|
|
|
|
|
2012-05-27 09:01:40 +00:00
|
|
|
nsXULComboboxAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
2009-09-11 01:07:56 +00:00
|
|
|
|
|
|
|
// nsIAccessible
|
|
|
|
NS_IMETHOD DoAction(PRUint8 aIndex);
|
|
|
|
NS_IMETHOD GetActionName(PRUint8 aIndex, nsAString& aName);
|
|
|
|
|
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-01-12 03:07:35 +00:00
|
|
|
virtual mozilla::a11y::role NativeRole();
|
2011-04-09 23:38:06 +00:00
|
|
|
virtual PRUint64 NativeState();
|
2012-02-08 07:31:25 +00:00
|
|
|
virtual bool CanHaveAnonChildren();
|
2011-06-05 19:35:43 +00:00
|
|
|
|
|
|
|
// ActionAccessible
|
|
|
|
virtual PRUint8 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
|
|
|
|
|
|
|
#endif
|