2012-05-04 18:46:21 -07: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/. */
|
|
|
|
|
|
|
|
#include "nsIAccessibleRole.h"
|
|
|
|
#include "Role.h"
|
|
|
|
|
|
|
|
#include "mozilla/Assertions.h"
|
|
|
|
|
|
|
|
using namespace mozilla::a11y;
|
|
|
|
|
2012-07-21 11:32:25 -07:00
|
|
|
#define ROLE(geckoRole, stringRole, atkRole, macRole, msaaRole, ia2Role, nameRule) \
|
2012-08-23 14:00:58 -07:00
|
|
|
MOZ_STATIC_ASSERT(static_cast<uint32_t>(roles::geckoRole) \
|
|
|
|
== static_cast<uint32_t>(nsIAccessibleRole::ROLE_ ## geckoRole), \
|
|
|
|
"internal and xpcom roles differ!");
|
2012-05-04 18:46:21 -07:00
|
|
|
#include "RoleMap.h"
|
|
|
|
#undef ROLE
|