2007-06-05 19:41:07 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:expandtab:shiftwidth=2:tabstop=2:
|
|
|
|
*/
|
2012-05-21 15:12:37 +04: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-06-05 19:41:07 +04:00
|
|
|
|
2013-04-25 07:48:26 +04:00
|
|
|
#include "ARIAMap.h"
|
2010-12-01 11:53:17 +03:00
|
|
|
|
2012-08-11 00:10:18 +04:00
|
|
|
#include "nsAccUtils.h"
|
2012-04-16 13:24:23 +04:00
|
|
|
#include "nsCoreUtils.h"
|
2012-01-12 07:07:35 +04:00
|
|
|
#include "Role.h"
|
2011-04-10 03:38:06 +04:00
|
|
|
#include "States.h"
|
2007-06-05 19:41:07 +04:00
|
|
|
|
2012-08-11 00:10:18 +04:00
|
|
|
#include "nsAttrName.h"
|
2012-04-16 13:24:23 +04:00
|
|
|
#include "nsWhitespaceTokenizer.h"
|
2010-12-01 11:53:17 +03:00
|
|
|
|
2014-09-17 17:46:24 +04:00
|
|
|
#include "mozilla/BinarySearch.h"
|
2016-03-03 15:45:47 +03:00
|
|
|
#include "mozilla/dom/Element.h"
|
2014-09-17 17:46:24 +04:00
|
|
|
|
2012-04-16 13:24:23 +04:00
|
|
|
using namespace mozilla;
|
2011-07-27 16:43:01 +04:00
|
|
|
using namespace mozilla::a11y;
|
2012-04-05 20:23:30 +04:00
|
|
|
using namespace mozilla::a11y::aria;
|
2011-07-27 16:43:01 +04:00
|
|
|
|
2012-11-11 06:16:17 +04:00
|
|
|
static const uint32_t kGenericAccType = 0;
|
|
|
|
|
2007-06-05 19:41:07 +04:00
|
|
|
/**
|
|
|
|
* This list of WAI-defined roles are currently hardcoded.
|
|
|
|
* Eventually we will most likely be loading an RDF resource that contains this information
|
|
|
|
* Using RDF will also allow for role extensibility. See bug 280138.
|
|
|
|
*
|
2012-04-05 20:23:30 +04:00
|
|
|
* Definition of nsRoleMapEntry contains comments explaining this table.
|
2007-06-05 19:41:07 +04:00
|
|
|
*
|
2014-10-22 04:49:28 +04:00
|
|
|
* When no Role enum mapping exists for an ARIA role, the role will be exposed
|
|
|
|
* via the object attribute "xml-roles".
|
2009-06-25 06:12:38 +04:00
|
|
|
*/
|
2007-06-05 19:41:07 +04:00
|
|
|
|
2016-03-11 05:13:01 +03:00
|
|
|
static const nsRoleMapEntry sWAIRoleMaps[] =
|
2007-06-05 19:41:07 +04:00
|
|
|
{
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // alert
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::alert,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::ALERT,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2016-02-29 18:08:40 +03:00
|
|
|
eAlert,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // alertdialog
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::alertdialog,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::DIALOG,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // application
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::application,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::APPLICATION,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2015-03-01 01:25:06 +03:00
|
|
|
eLandmark,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // article
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::article,
|
2017-06-16 23:07:23 +03:00
|
|
|
roles::ARTICLE,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 10:34:40 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2012-03-14 21:48:01 +04:00
|
|
|
kNoReqStates,
|
|
|
|
eReadonlyUntilEditable
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2015-03-01 01:25:06 +03:00
|
|
|
{ // banner
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::banner,
|
2015-03-01 01:25:06 +03:00
|
|
|
roles::NOTHING,
|
|
|
|
kUseNativeRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2018-06-05 09:54:00 +03:00
|
|
|
{ // blockquote
|
|
|
|
&nsGkAtoms::blockquote,
|
|
|
|
roles::BLOCKQUOTE,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // button
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::button,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::PUSHBUTTON,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
2012-02-02 05:13:09 +04:00
|
|
|
ePressAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2014-04-04 12:01:19 +04:00
|
|
|
eButton,
|
|
|
|
kNoReqStates
|
|
|
|
// eARIAPressed is auto applied on any button
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2018-06-05 09:54:00 +03:00
|
|
|
{ // caption
|
|
|
|
&nsGkAtoms::caption,
|
|
|
|
roles::CAPTION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
},
|
2015-06-25 21:59:06 +03:00
|
|
|
{ // cell
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::cell,
|
2015-06-25 21:59:06 +03:00
|
|
|
roles::CELL,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eTableCell,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // checkbox
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::checkbox,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::CHECKBUTTON,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eCheckUncheckAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates,
|
|
|
|
eARIACheckableMixed,
|
|
|
|
eARIAReadonly
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // columnheader
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::columnheader,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::COLUMNHEADER,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
2009-04-20 10:06:19 +04:00
|
|
|
eSortAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-12-18 09:22:26 +04:00
|
|
|
eTableCell,
|
2008-10-08 16:54:58 +04:00
|
|
|
kNoReqStates,
|
2013-07-19 19:20:51 +04:00
|
|
|
eARIASelectableIfDefined,
|
2013-04-05 06:10:17 +04:00
|
|
|
eARIAReadonlyOrEditableIfDefined
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2017-07-11 12:16:00 +03:00
|
|
|
{ // combobox, which consists of text input and popup
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::combobox,
|
2017-07-11 12:16:00 +03:00
|
|
|
roles::EDITCOMBOBOX,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2012-02-25 08:32:10 +04:00
|
|
|
eNoValue,
|
2008-10-08 16:54:58 +04:00
|
|
|
eOpenCloseAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2017-07-11 12:16:00 +03:00
|
|
|
eCombobox,
|
2017-06-20 06:32:00 +03:00
|
|
|
states::COLLAPSED | states::HASPOPUP,
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIAAutoComplete,
|
2014-08-11 16:13:44 +04:00
|
|
|
eARIAReadonly,
|
|
|
|
eARIAOrientation
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2015-03-01 01:25:06 +03:00
|
|
|
{ // complementary
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::complementary,
|
2015-03-01 01:25:06 +03:00
|
|
|
roles::NOTHING,
|
|
|
|
kUseNativeRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // contentinfo
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::contentinfo,
|
2015-03-01 01:25:06 +03:00
|
|
|
roles::NOTHING,
|
|
|
|
kUseNativeRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // dialog
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::dialog,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::DIALOG,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // directory
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::directory,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::LIST,
|
2010-01-13 05:18:24 +03:00
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
2012-12-18 09:22:26 +04:00
|
|
|
eList,
|
2017-02-02 08:46:00 +03:00
|
|
|
states::READONLY
|
2010-01-13 05:18:24 +03:00
|
|
|
},
|
2017-06-13 22:06:08 +03:00
|
|
|
{ // doc-abstract
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docAbstract,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::SECTION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-acknowledgments
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docAcknowledgments,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-afterword
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docAfterword,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-appendix
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docAppendix,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-backlink
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docBacklink,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LINK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eJumpAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
states::LINKED
|
|
|
|
},
|
|
|
|
{ // doc-biblioentry
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docBiblioentry,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LISTITEM,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
states::READONLY
|
|
|
|
},
|
|
|
|
{ // doc-bibliography
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docBibliography,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-biblioref
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docBiblioref,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LINK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eJumpAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
states::LINKED
|
|
|
|
},
|
|
|
|
{ // doc-chapter
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docChapter,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-colophon
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docColophon,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::SECTION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-conclusion
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docConclusion,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-cover
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docCover,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::GRAPHIC,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-credit
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docCredit,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::SECTION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-credits
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docCredits,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-dedication
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docDedication,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::SECTION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-endnote
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docEndnote,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LISTITEM,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
states::READONLY
|
|
|
|
},
|
|
|
|
{ // doc-endnotes
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docEndnotes,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-epigraph
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docEpigraph,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::SECTION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-epilogue
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docEpilogue,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-errata
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docErrata,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-example
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docExample,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::SECTION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-footnote
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docFootnote,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::FOOTNOTE,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-foreword
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docForeword,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-glossary
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docGlossary,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-glossref
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docGlossref,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LINK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eJumpAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
states::LINKED
|
|
|
|
},
|
|
|
|
{ // doc-index
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docIndex,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::NAVIGATION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-introduction
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docIntroduction,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-noteref
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docNoteref,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LINK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eJumpAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
states::LINKED
|
|
|
|
},
|
|
|
|
{ // doc-notice
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docNotice,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::NOTE,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-pagebreak
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docPagebreak,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::SEPARATOR,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-pagelist
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docPagelist,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::NAVIGATION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-part
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docPart,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-preface
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docPreface,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-prologue
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docPrologue,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::LANDMARK,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-pullquote
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docPullquote,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::SECTION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-qna
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docQna,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::SECTION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-subtitle
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docSubtitle,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::HEADING,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-tip
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docTip,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::NOTE,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // doc-toc
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::docToc,
|
2017-06-13 22:06:08 +03:00
|
|
|
roles::NAVIGATION,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // document
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::document,
|
2018-02-06 13:13:00 +03:00
|
|
|
roles::NON_NATIVE_DOCUMENT,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 10:34:40 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2012-03-14 21:48:01 +04:00
|
|
|
kNoReqStates,
|
|
|
|
eReadonlyUntilEditable
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2016-08-10 21:07:29 +03:00
|
|
|
{ // feed
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::feed,
|
2016-08-10 21:07:29 +03:00
|
|
|
roles::GROUPING,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2017-07-04 05:27:00 +03:00
|
|
|
{ // figure
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::figure,
|
2017-07-04 05:27:00 +03:00
|
|
|
roles::FIGURE,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // form
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::form,
|
2012-03-26 18:05:04 +04:00
|
|
|
roles::FORM,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
2015-03-01 01:25:06 +03:00
|
|
|
eLandmark,
|
2012-03-26 18:05:04 +04:00
|
|
|
kNoReqStates
|
|
|
|
},
|
2018-01-23 10:37:00 +03:00
|
|
|
{ // graphics-document
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::graphicsDocument,
|
2018-02-06 13:13:00 +03:00
|
|
|
roles::NON_NATIVE_DOCUMENT,
|
2018-01-23 10:37:00 +03:00
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates,
|
|
|
|
eReadonlyUntilEditable
|
|
|
|
},
|
|
|
|
{ // graphics-object
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::graphicsObject,
|
2018-01-23 10:37:00 +03:00
|
|
|
roles::GROUPING,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
|
|
|
{ // graphics-symbol
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::graphicsSymbol,
|
2018-01-23 10:37:00 +03:00
|
|
|
roles::GRAPHIC,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // grid
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::grid,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::TABLE,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-12-18 09:22:26 +04:00
|
|
|
eSelect | eTable,
|
2013-07-26 14:26:44 +04:00
|
|
|
kNoReqStates,
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIAMultiSelectable,
|
2013-07-26 14:26:44 +04:00
|
|
|
eARIAReadonlyOrEditable,
|
|
|
|
eFocusableUntilDisabled
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // gridcell
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::gridcell,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::GRID_CELL,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-12-18 09:22:26 +04:00
|
|
|
eTableCell,
|
2008-10-08 16:54:58 +04:00
|
|
|
kNoReqStates,
|
2009-06-29 19:24:36 +04:00
|
|
|
eARIASelectable,
|
2013-02-14 14:57:35 +04:00
|
|
|
eARIAReadonlyOrEditableIfDefined
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // group
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::group,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::GROUPING,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // heading
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::heading,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::HEADING,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // img
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::img,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::GRAPHIC,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2013-04-30 01:07:39 +04:00
|
|
|
{ // key
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::key,
|
2013-04-30 01:07:39 +04:00
|
|
|
roles::KEY,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
ePressAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates,
|
|
|
|
eARIAPressed
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // link
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::link,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::LINK,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eJumpAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2011-04-10 03:38:06 +04:00
|
|
|
states::LINKED
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // list
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::list_,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::LIST,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-12-18 09:22:26 +04:00
|
|
|
eList,
|
2012-02-10 22:25:48 +04:00
|
|
|
states::READONLY
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // listbox
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::listbox,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::LISTBOX,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-12-23 04:54:13 +04:00
|
|
|
eListControl | eSelect,
|
2014-08-11 16:13:44 +04:00
|
|
|
states::VERTICAL,
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIAMultiSelectable,
|
2013-07-26 14:26:44 +04:00
|
|
|
eARIAReadonly,
|
2014-08-11 16:13:44 +04:00
|
|
|
eFocusableUntilDisabled,
|
|
|
|
eARIAOrientation
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // listitem
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::listitem,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::LISTITEM,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction, // XXX: should depend on state, parent accessible
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2012-02-10 22:25:48 +04:00
|
|
|
states::READONLY
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // log
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::log_,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::NOTHING,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseNativeRole,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
ePoliteLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2009-02-19 09:56:19 +03:00
|
|
|
},
|
2015-03-01 01:25:06 +03:00
|
|
|
{ // main
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::main,
|
2015-03-01 01:25:06 +03:00
|
|
|
roles::NOTHING,
|
|
|
|
kUseNativeRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // marquee
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::marquee,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::ANIMATION,
|
2010-01-13 05:18:24 +03:00
|
|
|
kUseMapRole,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eOffLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2009-02-19 09:56:19 +03:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // math
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::math,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::FLAT_EQUATION,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // menu
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::menu,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::MENUPOPUP,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction, // XXX: technically accessibles of menupopup role haven't
|
|
|
|
// any action, but menu can be open or close.
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2014-08-11 16:13:44 +04:00
|
|
|
states::VERTICAL,
|
|
|
|
eARIAOrientation
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // menubar
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::menubar,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::MENUBAR,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2014-08-11 16:13:44 +04:00
|
|
|
states::HORIZONTAL,
|
|
|
|
eARIAOrientation
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // menuitem
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::menuitem,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::MENUITEM,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eClickAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2017-06-19 18:09:23 +03:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // menuitemcheckbox
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::menuitemcheckbox,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::CHECK_MENU_ITEM,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eClickAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates,
|
2017-06-19 18:09:23 +03:00
|
|
|
eARIACheckableMixed,
|
|
|
|
eARIAReadonly
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // menuitemradio
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::menuitemradio,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::RADIO_MENU_ITEM,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eClickAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates,
|
2017-06-19 18:09:23 +03:00
|
|
|
eARIACheckableBool,
|
|
|
|
eARIAReadonly
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2015-03-01 01:25:06 +03:00
|
|
|
{ // navigation
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::navigation,
|
2015-03-01 01:25:06 +03:00
|
|
|
roles::NOTHING,
|
|
|
|
kUseNativeRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2015-02-19 20:50:34 +03:00
|
|
|
{ // none
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::none,
|
2015-02-19 20:50:34 +03:00
|
|
|
roles::NOTHING,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // note
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::note_,
|
2012-03-23 09:23:46 +04:00
|
|
|
roles::NOTE,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2012-03-23 09:23:46 +04:00
|
|
|
kNoReqStates
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // option
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::option,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::OPTION,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eSelectAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2008-10-08 16:54:58 +04:00
|
|
|
kNoReqStates,
|
2009-06-29 19:24:36 +04:00
|
|
|
eARIASelectable,
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIACheckedMixed
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2018-06-05 09:54:00 +03:00
|
|
|
{ // paragraph
|
|
|
|
&nsGkAtoms::paragraph,
|
|
|
|
roles::PARAGRAPH,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // presentation
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::presentation,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::NOTHING,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // progressbar
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::progressbar,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::PROGRESSBAR,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eHasValueMinMax,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2012-04-13 02:44:16 +04:00
|
|
|
states::READONLY,
|
|
|
|
eIndeterminateIfNoValue
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // radio
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::radio,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::RADIOBUTTON,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eSelectAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates,
|
|
|
|
eARIACheckableBool
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // radiogroup
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::radiogroup,
|
2015-03-30 16:37:09 +03:00
|
|
|
roles::RADIO_GROUP,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2014-08-11 16:13:44 +04:00
|
|
|
kNoReqStates,
|
2017-06-19 18:09:23 +03:00
|
|
|
eARIAOrientation,
|
|
|
|
eARIAReadonly
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // region
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::region,
|
2017-07-05 01:10:00 +03:00
|
|
|
roles::REGION,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2017-07-05 01:10:00 +03:00
|
|
|
eLandmark,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // row
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::row,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::ROW,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-12-18 09:22:26 +04:00
|
|
|
eTableRow,
|
2008-10-08 16:54:58 +04:00
|
|
|
kNoReqStates,
|
2009-06-29 19:24:36 +04:00
|
|
|
eARIASelectable
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-11-17 11:59:55 +04:00
|
|
|
{ // rowgroup
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::rowgroup,
|
2012-11-17 11:59:55 +04:00
|
|
|
roles::GROUPING,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // rowheader
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::rowheader,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::ROWHEADER,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
2009-04-20 10:06:19 +04:00
|
|
|
eSortAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-12-18 09:22:26 +04:00
|
|
|
eTableCell,
|
2008-10-08 16:54:58 +04:00
|
|
|
kNoReqStates,
|
2013-07-19 19:20:51 +04:00
|
|
|
eARIASelectableIfDefined,
|
2013-04-05 06:10:17 +04:00
|
|
|
eARIAReadonlyOrEditableIfDefined
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // scrollbar
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::scrollbar,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::SCROLLBAR,
|
2009-12-15 19:03:39 +03:00
|
|
|
kUseMapRole,
|
|
|
|
eHasValueMinMax,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2014-08-11 16:13:44 +04:00
|
|
|
states::VERTICAL,
|
2009-12-15 19:03:39 +03:00
|
|
|
eARIAOrientation,
|
|
|
|
eARIAReadonly
|
|
|
|
},
|
2015-03-01 01:25:06 +03:00
|
|
|
{ // search
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::search,
|
2015-03-01 01:25:06 +03:00
|
|
|
roles::NOTHING,
|
|
|
|
kUseNativeRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eLandmark,
|
|
|
|
kNoReqStates
|
|
|
|
},
|
2015-02-27 17:41:57 +03:00
|
|
|
{ // searchbox
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::searchbox,
|
2015-02-27 17:41:57 +03:00
|
|
|
roles::ENTRY,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eActivateAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates,
|
|
|
|
eARIAAutoComplete,
|
|
|
|
eARIAMultiline,
|
|
|
|
eARIAReadonlyOrEditable
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // separator
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::separator_,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::SEPARATOR,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2017-06-28 14:11:00 +03:00
|
|
|
eHasValueMinMaxIfFocusable,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2014-08-11 16:13:44 +04:00
|
|
|
states::HORIZONTAL,
|
2011-11-17 17:18:54 +04:00
|
|
|
eARIAOrientation
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // slider
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::slider,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::SLIDER,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eHasValueMinMax,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2014-08-11 16:13:44 +04:00
|
|
|
states::HORIZONTAL,
|
2011-11-17 17:18:54 +04:00
|
|
|
eARIAOrientation,
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIAReadonly
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // spinbutton
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::spinbutton,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::SPINBUTTON,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eHasValueMinMax,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2008-10-08 16:54:58 +04:00
|
|
|
kNoReqStates,
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIAReadonly
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // status
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::status,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::STATUSBAR,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 11:10:45 +03:00
|
|
|
ePoliteLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2015-02-26 16:47:15 +03:00
|
|
|
{ // switch
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::svgSwitch,
|
2015-02-26 16:47:15 +03:00
|
|
|
roles::SWITCH,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eCheckUncheckAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
kNoReqStates,
|
2017-06-19 18:09:23 +03:00
|
|
|
eARIACheckableBool,
|
|
|
|
eARIAReadonly
|
2015-02-26 16:47:15 +03:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // tab
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::tab,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::PAGETAB,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eSwitchAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2011-05-24 18:02:44 +04:00
|
|
|
kNoReqStates,
|
|
|
|
eARIASelectable
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2015-06-25 21:59:06 +03:00
|
|
|
{ // table
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::table,
|
2015-06-25 21:59:06 +03:00
|
|
|
roles::TABLE,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
eTable,
|
|
|
|
kNoReqStates,
|
|
|
|
eARIASelectable
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // tablist
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::tablist,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::PAGETABLIST,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2013-07-24 11:04:49 +04:00
|
|
|
eNoLiveAttr,
|
2012-12-18 09:22:26 +04:00
|
|
|
eSelect,
|
2014-08-11 16:13:44 +04:00
|
|
|
states::HORIZONTAL,
|
|
|
|
eARIAOrientation
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // tabpanel
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::tabpanel,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::PROPERTYPAGE,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2017-06-16 21:02:55 +03:00
|
|
|
{ // term
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::term,
|
2017-06-16 21:02:55 +03:00
|
|
|
roles::TERM,
|
|
|
|
kUseMapRole,
|
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eNoLiveAttr,
|
|
|
|
kGenericAccType,
|
|
|
|
states::READONLY
|
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // textbox
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::textbox,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::ENTRY,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eActivateAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2008-10-08 16:54:58 +04:00
|
|
|
kNoReqStates,
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIAAutoComplete,
|
|
|
|
eARIAMultiline,
|
|
|
|
eARIAReadonlyOrEditable
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // timer
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::timer,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::NOTHING,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseNativeRole,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
|
|
|
eOffLiveAttr,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2009-02-19 09:56:19 +03:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // toolbar
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::toolbar,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::TOOLBAR,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2014-08-11 16:13:44 +04:00
|
|
|
states::HORIZONTAL,
|
|
|
|
eARIAOrientation
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // tooltip
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::tooltip,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::TOOLTIP,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // tree
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::tree,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::OUTLINE,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-12-18 09:22:26 +04:00
|
|
|
eSelect,
|
2014-08-11 16:13:44 +04:00
|
|
|
states::VERTICAL,
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIAReadonly,
|
2013-07-26 14:26:44 +04:00
|
|
|
eARIAMultiSelectable,
|
2014-08-11 16:13:44 +04:00
|
|
|
eFocusableUntilDisabled,
|
|
|
|
eARIAOrientation
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // treegrid
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::treegrid,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::TREE_TABLE,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-12-18 09:22:26 +04:00
|
|
|
eSelect | eTable,
|
2017-06-20 06:32:00 +03:00
|
|
|
kNoReqStates,
|
2013-07-30 19:43:00 +04:00
|
|
|
eARIAReadonlyOrEditable,
|
2013-07-26 14:26:44 +04:00
|
|
|
eARIAMultiSelectable,
|
2014-08-11 16:13:44 +04:00
|
|
|
eFocusableUntilDisabled,
|
|
|
|
eARIAOrientation
|
2008-10-08 16:54:58 +04:00
|
|
|
},
|
2012-06-11 03:44:50 +04:00
|
|
|
{ // treeitem
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::treeitem,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::OUTLINEITEM,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoValue,
|
|
|
|
eActivateAction, // XXX: should expose second 'expand/collapse' action based
|
|
|
|
// on states
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2008-10-08 16:54:58 +04:00
|
|
|
kNoReqStates,
|
2009-06-29 19:24:36 +04:00
|
|
|
eARIASelectable,
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIACheckedMixed
|
2009-02-19 10:23:44 +03:00
|
|
|
}
|
2007-11-12 04:05:37 +03:00
|
|
|
};
|
|
|
|
|
2016-03-11 05:13:01 +03:00
|
|
|
static const nsRoleMapEntry sLandmarkRoleMap = {
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::_empty,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::NOTHING,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseNativeRole,
|
2007-11-12 04:05:37 +03:00
|
|
|
eNoValue,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
2007-06-05 19:41:07 +04:00
|
|
|
};
|
|
|
|
|
2013-04-25 07:48:26 +04:00
|
|
|
nsRoleMapEntry aria::gEmptyRoleMap = {
|
2018-04-11 11:22:05 +03:00
|
|
|
&nsGkAtoms::_empty,
|
2012-01-12 07:07:35 +04:00
|
|
|
roles::NOTHING,
|
2009-06-11 22:18:24 +04:00
|
|
|
kUseMapRole,
|
2008-02-07 07:14:59 +03:00
|
|
|
eNoValue,
|
2008-10-08 16:54:58 +04:00
|
|
|
eNoAction,
|
2009-02-19 09:56:19 +03:00
|
|
|
eNoLiveAttr,
|
2012-11-11 06:16:17 +04:00
|
|
|
kGenericAccType,
|
2009-06-25 06:12:38 +04:00
|
|
|
kNoReqStates
|
|
|
|
};
|
|
|
|
|
2007-06-05 19:41:07 +04:00
|
|
|
/**
|
2010-03-18 16:49:28 +03:00
|
|
|
* Universal (Global) states:
|
2007-06-05 19:41:07 +04:00
|
|
|
* The following state rules are applied to any accessible element,
|
|
|
|
* whether there is an ARIA role or not:
|
|
|
|
*/
|
2012-07-11 05:00:30 +04:00
|
|
|
static const EStateRule sWAIUnivStateMap[] = {
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIABusy,
|
2017-07-03 18:02:00 +03:00
|
|
|
eARIACurrent,
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIADisabled,
|
2010-03-18 16:49:28 +03:00
|
|
|
eARIAExpanded, // Currently under spec review but precedent exists
|
2017-09-05 16:15:09 +03:00
|
|
|
eARIAHasPopup, // Note this is a tokenised attribute starting in ARIA 1.1
|
2010-03-18 16:49:28 +03:00
|
|
|
eARIAInvalid,
|
2014-11-28 18:01:43 +03:00
|
|
|
eARIAModal,
|
2010-03-18 16:49:28 +03:00
|
|
|
eARIARequired, // XXX not global, Bug 553117
|
2009-06-25 06:12:38 +04:00
|
|
|
eARIANone
|
2007-06-05 19:41:07 +04:00
|
|
|
};
|
|
|
|
|
2009-02-15 11:15:31 +03:00
|
|
|
|
|
|
|
/**
|
2013-04-25 07:48:26 +04:00
|
|
|
* ARIA attribute map for attribute characteristics.
|
|
|
|
* @note ARIA attributes that don't have any flags are not included here.
|
2009-02-15 11:15:31 +03:00
|
|
|
*/
|
2013-04-25 07:48:26 +04:00
|
|
|
|
|
|
|
struct AttrCharacteristics
|
|
|
|
{
|
2018-04-11 11:22:05 +03:00
|
|
|
nsStaticAtom** attributeName;
|
2013-04-25 07:48:26 +04:00
|
|
|
const uint8_t characteristics;
|
|
|
|
};
|
|
|
|
|
|
|
|
static const AttrCharacteristics gWAIUnivAttrMap[] = {
|
2018-04-11 11:22:05 +03:00
|
|
|
{&nsGkAtoms::aria_activedescendant, ATTR_BYPASSOBJ },
|
|
|
|
{&nsGkAtoms::aria_atomic, ATTR_BYPASSOBJ_IF_FALSE | ATTR_VALTOKEN | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_busy, ATTR_VALTOKEN | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_checked, ATTR_BYPASSOBJ | ATTR_VALTOKEN }, /* exposes checkable obj attr */
|
|
|
|
{&nsGkAtoms::aria_controls, ATTR_BYPASSOBJ | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_describedby, ATTR_BYPASSOBJ | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_details, ATTR_BYPASSOBJ | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_disabled, ATTR_BYPASSOBJ | ATTR_VALTOKEN | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_dropeffect, ATTR_VALTOKEN | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_errormessage, ATTR_BYPASSOBJ | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_expanded, ATTR_BYPASSOBJ | ATTR_VALTOKEN },
|
|
|
|
{&nsGkAtoms::aria_flowto, ATTR_BYPASSOBJ | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_grabbed, ATTR_VALTOKEN | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_haspopup, ATTR_BYPASSOBJ_IF_FALSE | ATTR_VALTOKEN | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_hidden, ATTR_BYPASSOBJ | ATTR_VALTOKEN | ATTR_GLOBAL }, /* handled special way */
|
|
|
|
{&nsGkAtoms::aria_invalid, ATTR_BYPASSOBJ | ATTR_VALTOKEN | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_label, ATTR_BYPASSOBJ | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_labelledby, ATTR_BYPASSOBJ | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_level, ATTR_BYPASSOBJ }, /* handled via groupPosition */
|
|
|
|
{&nsGkAtoms::aria_live, ATTR_VALTOKEN | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_modal, ATTR_BYPASSOBJ | ATTR_VALTOKEN | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_multiline, ATTR_BYPASSOBJ | ATTR_VALTOKEN },
|
|
|
|
{&nsGkAtoms::aria_multiselectable, ATTR_BYPASSOBJ | ATTR_VALTOKEN },
|
|
|
|
{&nsGkAtoms::aria_owns, ATTR_BYPASSOBJ | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_orientation, ATTR_VALTOKEN },
|
|
|
|
{&nsGkAtoms::aria_posinset, ATTR_BYPASSOBJ }, /* handled via groupPosition */
|
|
|
|
{&nsGkAtoms::aria_pressed, ATTR_BYPASSOBJ | ATTR_VALTOKEN },
|
|
|
|
{&nsGkAtoms::aria_readonly, ATTR_BYPASSOBJ | ATTR_VALTOKEN },
|
|
|
|
{&nsGkAtoms::aria_relevant, ATTR_BYPASSOBJ | ATTR_GLOBAL },
|
|
|
|
{&nsGkAtoms::aria_required, ATTR_BYPASSOBJ | ATTR_VALTOKEN },
|
|
|
|
{&nsGkAtoms::aria_selected, ATTR_BYPASSOBJ | ATTR_VALTOKEN },
|
|
|
|
{&nsGkAtoms::aria_setsize, ATTR_BYPASSOBJ }, /* handled via groupPosition */
|
|
|
|
{&nsGkAtoms::aria_sort, ATTR_VALTOKEN },
|
|
|
|
{&nsGkAtoms::aria_valuenow, ATTR_BYPASSOBJ },
|
|
|
|
{&nsGkAtoms::aria_valuemin, ATTR_BYPASSOBJ },
|
|
|
|
{&nsGkAtoms::aria_valuemax, ATTR_BYPASSOBJ },
|
|
|
|
{&nsGkAtoms::aria_valuetext, ATTR_BYPASSOBJ }
|
2009-02-15 11:15:31 +03:00
|
|
|
};
|
|
|
|
|
2014-09-17 17:46:24 +04:00
|
|
|
namespace {
|
|
|
|
|
|
|
|
struct RoleComparator
|
|
|
|
{
|
|
|
|
const nsDependentSubstring& mRole;
|
2014-09-24 17:16:53 +04:00
|
|
|
explicit RoleComparator(const nsDependentSubstring& aRole) : mRole(aRole) {}
|
2014-09-17 17:46:24 +04:00
|
|
|
int operator()(const nsRoleMapEntry& aEntry) const {
|
|
|
|
return Compare(mRole, aEntry.ARIARoleString());
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-03-11 05:13:01 +03:00
|
|
|
const nsRoleMapEntry*
|
2016-03-03 15:45:47 +03:00
|
|
|
aria::GetRoleMap(dom::Element* aEl)
|
2016-07-18 18:52:44 +03:00
|
|
|
{
|
|
|
|
return GetRoleMapFromIndex(GetRoleMapIndex(aEl));
|
|
|
|
}
|
|
|
|
|
|
|
|
uint8_t
|
|
|
|
aria::GetRoleMapIndex(dom::Element* aEl)
|
2012-04-16 13:24:23 +04:00
|
|
|
{
|
2012-06-11 03:44:50 +04:00
|
|
|
nsAutoString roles;
|
2016-03-03 15:45:47 +03:00
|
|
|
if (!aEl || !aEl->GetAttr(kNameSpaceID_None, nsGkAtoms::role, roles) ||
|
2012-06-11 03:44:50 +04:00
|
|
|
roles.IsEmpty()) {
|
2012-04-16 13:24:23 +04:00
|
|
|
// We treat role="" as if the role attribute is absent (per aria spec:8.1.1)
|
2016-07-18 18:52:44 +03:00
|
|
|
return NO_ROLE_MAP_ENTRY_INDEX;
|
2012-04-16 13:24:23 +04:00
|
|
|
}
|
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
nsWhitespaceTokenizer tokenizer(roles);
|
2012-04-16 13:24:23 +04:00
|
|
|
while (tokenizer.hasMoreTokens()) {
|
|
|
|
// Do a binary search through table for the next role in role list
|
2012-06-11 03:44:50 +04:00
|
|
|
const nsDependentSubstring role = tokenizer.nextToken();
|
2014-09-17 17:46:24 +04:00
|
|
|
size_t idx;
|
|
|
|
if (BinarySearchIf(sWAIRoleMaps, 0, ArrayLength(sWAIRoleMaps),
|
|
|
|
RoleComparator(role), &idx)) {
|
2016-07-18 18:52:44 +03:00
|
|
|
return idx;
|
2012-04-16 13:24:23 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-18 18:52:44 +03:00
|
|
|
// Always use some entry index if there is a non-empty role string
|
2012-04-16 13:24:23 +04:00
|
|
|
// To ensure an accessible object is created
|
2016-07-18 18:52:44 +03:00
|
|
|
return LANDMARK_ROLE_MAP_ENTRY_INDEX;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const nsRoleMapEntry*
|
|
|
|
aria::GetRoleMapFromIndex(uint8_t aRoleMapIndex)
|
|
|
|
{
|
|
|
|
switch (aRoleMapIndex) {
|
|
|
|
case NO_ROLE_MAP_ENTRY_INDEX:
|
|
|
|
return nullptr;
|
|
|
|
case EMPTY_ROLE_MAP_ENTRY_INDEX:
|
|
|
|
return &gEmptyRoleMap;
|
|
|
|
case LANDMARK_ROLE_MAP_ENTRY_INDEX:
|
|
|
|
return &sLandmarkRoleMap;
|
|
|
|
default:
|
|
|
|
return sWAIRoleMaps + aRoleMapIndex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
uint8_t
|
|
|
|
aria::GetIndexFromRoleMap(const nsRoleMapEntry* aRoleMapEntry)
|
|
|
|
{
|
|
|
|
if (aRoleMapEntry == nullptr) {
|
|
|
|
return NO_ROLE_MAP_ENTRY_INDEX;
|
|
|
|
} else if (aRoleMapEntry == &gEmptyRoleMap) {
|
|
|
|
return EMPTY_ROLE_MAP_ENTRY_INDEX;
|
|
|
|
} else if (aRoleMapEntry == &sLandmarkRoleMap) {
|
|
|
|
return LANDMARK_ROLE_MAP_ENTRY_INDEX;
|
|
|
|
} else {
|
|
|
|
return aRoleMapEntry - sWAIRoleMaps;
|
|
|
|
}
|
2012-04-16 13:24:23 +04:00
|
|
|
}
|
2012-07-11 05:00:30 +04:00
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
uint64_t
|
2012-07-11 05:00:30 +04:00
|
|
|
aria::UniversalStatesFor(mozilla::dom::Element* aElement)
|
|
|
|
{
|
2012-08-22 19:56:38 +04:00
|
|
|
uint64_t state = 0;
|
|
|
|
uint32_t index = 0;
|
2012-07-11 05:00:30 +04:00
|
|
|
while (MapToState(sWAIUnivStateMap[index], aElement, &state))
|
|
|
|
index++;
|
|
|
|
|
|
|
|
return state;
|
|
|
|
}
|
2012-08-11 00:10:18 +04:00
|
|
|
|
2013-04-25 07:48:26 +04:00
|
|
|
uint8_t
|
2017-10-03 01:05:19 +03:00
|
|
|
aria::AttrCharacteristicsFor(nsAtom* aAtom)
|
2013-04-25 07:48:26 +04:00
|
|
|
{
|
|
|
|
for (uint32_t i = 0; i < ArrayLength(gWAIUnivAttrMap); i++)
|
2018-04-11 11:22:05 +03:00
|
|
|
if (*gWAIUnivAttrMap[i].attributeName == aAtom)
|
2013-04-25 07:48:26 +04:00
|
|
|
return gWAIUnivAttrMap[i].characteristics;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-02-05 02:33:33 +03:00
|
|
|
bool
|
|
|
|
aria::HasDefinedARIAHidden(nsIContent* aContent)
|
|
|
|
{
|
2018-07-04 17:18:43 +03:00
|
|
|
return aContent && aContent->IsElement() &&
|
|
|
|
aContent->AsElement()->AttrValueIs(kNameSpaceID_None,
|
|
|
|
nsGkAtoms::aria_hidden,
|
|
|
|
nsGkAtoms::_true, eCaseMatters);
|
2015-02-05 02:33:33 +03:00
|
|
|
}
|
|
|
|
|
2012-08-11 00:10:18 +04:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// AttrIterator class
|
|
|
|
|
|
|
|
bool
|
|
|
|
AttrIterator::Next(nsAString& aAttrName, nsAString& aAttrValue)
|
|
|
|
{
|
|
|
|
while (mAttrIdx < mAttrCount) {
|
2017-12-05 20:05:51 +03:00
|
|
|
const nsAttrName* attr = mElement->GetAttrNameAt(mAttrIdx);
|
2012-08-11 00:10:18 +04:00
|
|
|
mAttrIdx++;
|
|
|
|
if (attr->NamespaceEquals(kNameSpaceID_None)) {
|
2017-10-03 01:05:19 +03:00
|
|
|
nsAtom* attrAtom = attr->Atom();
|
2012-08-11 00:10:18 +04:00
|
|
|
nsDependentAtomString attrStr(attrAtom);
|
|
|
|
if (!StringBeginsWith(attrStr, NS_LITERAL_STRING("aria-")))
|
|
|
|
continue; // Not ARIA
|
|
|
|
|
2013-04-25 07:48:26 +04:00
|
|
|
uint8_t attrFlags = aria::AttrCharacteristicsFor(attrAtom);
|
2012-08-11 00:10:18 +04:00
|
|
|
if (attrFlags & ATTR_BYPASSOBJ)
|
|
|
|
continue; // No need to handle exposing as obj attribute here
|
|
|
|
|
|
|
|
if ((attrFlags & ATTR_VALTOKEN) &&
|
2017-12-05 20:05:51 +03:00
|
|
|
!nsAccUtils::HasDefinedARIAToken(mElement, attrAtom))
|
2012-08-11 00:10:18 +04:00
|
|
|
continue; // only expose token based attributes if they are defined
|
|
|
|
|
2013-02-11 04:54:14 +04:00
|
|
|
if ((attrFlags & ATTR_BYPASSOBJ_IF_FALSE) &&
|
2017-12-05 20:05:51 +03:00
|
|
|
mElement->AttrValueIs(kNameSpaceID_None, attrAtom,
|
2013-02-11 04:54:14 +04:00
|
|
|
nsGkAtoms::_false, eCaseMatters)) {
|
|
|
|
continue; // only expose token based attribute if value is not 'false'.
|
|
|
|
}
|
|
|
|
|
2012-08-11 00:10:18 +04:00
|
|
|
nsAutoString value;
|
2017-12-05 20:05:51 +03:00
|
|
|
if (mElement->GetAttr(kNameSpaceID_None, attrAtom, value)) {
|
2012-08-11 00:10:18 +04:00
|
|
|
aAttrName.Assign(Substring(attrStr, 5));
|
|
|
|
aAttrValue.Assign(value);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|