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