2012-05-05 05:46:21 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
|
|
/* 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/. */
|
|
|
|
|
2013-10-23 03:55:27 +04:00
|
|
|
#include "nsIAccessibleRelation.h"
|
2012-05-05 05:46:21 +04:00
|
|
|
#include "nsIAccessibleRole.h"
|
2013-10-23 03:55:27 +04:00
|
|
|
#include "RelationType.h"
|
2012-05-05 05:46:21 +04:00
|
|
|
#include "Role.h"
|
|
|
|
|
|
|
|
using namespace mozilla::a11y;
|
|
|
|
|
2018-08-09 14:43:00 +03:00
|
|
|
#define ROLE(geckoRole, stringRole, atkRole, macRole, msaaRole, ia2Role, \
|
|
|
|
androidClass, nameRule) \
|
2013-07-18 21:59:53 +04:00
|
|
|
static_assert( \
|
|
|
|
static_cast<uint32_t>(roles::geckoRole) == \
|
|
|
|
static_cast<uint32_t>(nsIAccessibleRole::ROLE_##geckoRole), \
|
|
|
|
"internal and xpcom roles differ!");
|
2012-05-05 05:46:21 +04:00
|
|
|
#include "RoleMap.h"
|
|
|
|
#undef ROLE
|
2013-10-23 03:55:27 +04:00
|
|
|
|
|
|
|
#define RELATIONTYPE(geckoType, stringType, atkType, msaaType, ia2Type) \
|
|
|
|
static_assert( \
|
|
|
|
static_cast<uint32_t>(RelationType::geckoType) == \
|
|
|
|
static_cast<uint32_t>(nsIAccessibleRelation::RELATION_##geckoType), \
|
|
|
|
"internal and xpcom relations differ!");
|
|
|
|
#include "RelationTypeMap.h"
|
|
|
|
#undef RELATIONTYPE
|