/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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/. */
/** * Selects, Listboxes and Comboboxes, are made up of a number of different * widgets, some of which are shared between the two. This file contains * all of the widgets for both of the Selects, for HTML only. * * Listbox: * - HTMLSelectListAccessible * - HTMLSelectOptionAccessible * * Comboboxes: * - HTMLComboboxAccessible * - HTMLComboboxListAccessible [ inserted in accessible tree ] * - HTMLSelectOptionAccessible(s)
*/
/* * The list that contains all the options in the select.
*/ class HTMLSelectListAccessible : public AccessibleWrap { public:
HTMLSelectListAccessible(nsIContent* aContent, DocAccessible* aDoc); virtual ~HTMLSelectListAccessible() {}
/* * Options inside the select, contained within the list
*/ class HTMLSelectOptionAccessible : public HyperTextAccessible { public: enum { eAction_Select = 0 };
/* * Opt Groups inside the select, contained within the list
*/ class HTMLSelectOptGroupAccessible : public HTMLSelectOptionAccessible { public:
HTMLSelectOptGroupAccessible(nsIContent* aContent, DocAccessible* aDoc)
: HTMLSelectOptionAccessible(aContent, aDoc) {
mType = eHTMLOptGroupType;
} virtual ~HTMLSelectOptGroupAccessible() {}
/* * A class the represents the HTML Combobox widget.
*/ class HTMLComboboxAccessible final : public AccessibleWrap { public: enum { eAction_Click = 0 };
/* * A class that represents the window that lives to the right * of the drop down button inside the Select. This is the window * that is made visible when the button is pressed.
*/ class HTMLComboboxListAccessible : public HTMLSelectListAccessible { public:
HTMLComboboxListAccessible(LocalAccessible* aParent, nsIContent* aContent,
DocAccessible* aDoc); virtual ~HTMLComboboxListAccessible() {}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.