1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/accessible/src/base/Asserts.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim: set ts=2 et sw=2 tw=80: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.8 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsIAccessibleRelation.h" 1.11 +#include "nsIAccessibleRole.h" 1.12 +#include "RelationType.h" 1.13 +#include "Role.h" 1.14 + 1.15 +using namespace mozilla::a11y; 1.16 + 1.17 +#define ROLE(geckoRole, stringRole, atkRole, macRole, msaaRole, ia2Role, nameRule) \ 1.18 + static_assert(static_cast<uint32_t>(roles::geckoRole) \ 1.19 + == static_cast<uint32_t>(nsIAccessibleRole::ROLE_ ## geckoRole), \ 1.20 + "internal and xpcom roles differ!"); 1.21 +#include "RoleMap.h" 1.22 +#undef ROLE 1.23 + 1.24 +#define RELATIONTYPE(geckoType, stringType, atkType, msaaType, ia2Type) \ 1.25 + static_assert(static_cast<uint32_t>(RelationType::geckoType) \ 1.26 + == static_cast<uint32_t>(nsIAccessibleRelation::RELATION_ ## geckoType), \ 1.27 + "internal and xpcom relations differ!"); 1.28 +#include "RelationTypeMap.h" 1.29 +#undef RELATIONTYPE