зеркало из https://github.com/mozilla/gecko-dev.git
Bug 743680 - don't export nsARIAMap.h, r=tbsaunde
This commit is contained in:
Родитель
e0223efe12
Коммит
fc65c7a4a0
|
@ -38,7 +38,7 @@
|
|||
#ifndef AccGroupInfo_h_
|
||||
#define AccGroupInfo_h_
|
||||
|
||||
#include "nsAccessible.h"
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccUtils.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include "FocusManager.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsRootAccessible.h"
|
||||
|
|
|
@ -85,13 +85,11 @@ EXPORTS = \
|
|||
nsAccessibilityService.h \
|
||||
nsAccessible.h \
|
||||
nsAccessNode.h \
|
||||
nsARIAMap.h \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS_NAMESPACES = mozilla/a11y
|
||||
|
||||
EXPORTS_mozilla/a11y = \
|
||||
ARIAStateMap.h \
|
||||
FocusManager.h \
|
||||
States.h \
|
||||
Role.h \
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "NotificationController.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsCoreUtils.h"
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "TextUpdater.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsDocAccessible.h"
|
||||
#include "nsTextAccessible.h"
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
#include "filters.h"
|
||||
|
||||
#include "nsAccessible.h"
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "Role.h"
|
||||
#include "States.h"
|
||||
|
|
|
@ -40,9 +40,8 @@
|
|||
#ifndef _nsARIAMap_H_
|
||||
#define _nsARIAMap_H_
|
||||
|
||||
#include "mozilla/a11y/ARIAStateMap.h"
|
||||
#include "ARIAStateMap.h"
|
||||
#include "mozilla/a11y/Role.h"
|
||||
#include "prtypes.h"
|
||||
|
||||
class nsIAtom;
|
||||
class nsIContent;
|
||||
|
|
|
@ -36,18 +36,18 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "nsCoreUtils.h"
|
||||
#include "nsAccUtils.h"
|
||||
|
||||
#include "nsIAccessibleTypes.h"
|
||||
#include "Role.h"
|
||||
#include "States.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsARIAMap.h"
|
||||
#include "nsCoreUtils.h"
|
||||
#include "nsDocAccessible.h"
|
||||
#include "nsHyperTextAccessible.h"
|
||||
#include "nsIAccessibleTypes.h"
|
||||
#include "nsTextAccessible.h"
|
||||
#include "Role.h"
|
||||
#include "States.h"
|
||||
|
||||
#include "nsIDOMXULContainerElement.h"
|
||||
#include "nsIDOMXULSelectCntrlEl.h"
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#include "nsIAccessibleText.h"
|
||||
#include "nsIAccessibleTable.h"
|
||||
|
||||
#include "nsARIAMap.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsCoreUtils.h"
|
||||
|
||||
|
@ -60,6 +59,7 @@ class nsAccessible;
|
|||
class nsHyperTextAccessible;
|
||||
class nsHTMLTableAccessible;
|
||||
class nsDocAccessible;
|
||||
struct nsRoleMapEntry;
|
||||
#ifdef MOZ_XUL
|
||||
class nsXULTreeAccessible;
|
||||
#endif
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#include "nsAccessibilityService.h"
|
||||
|
||||
// NOTE: alphabetically ordered
|
||||
#include "Accessible-inl.h"
|
||||
#include "ARIAGridAccessibleWrap.h"
|
||||
#ifdef MOZ_ACCESSIBILITY_ATK
|
||||
#include "AtkSocketAccessible.h"
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "nsAccessible.h"
|
||||
#include "Accessible-inl.h"
|
||||
|
||||
#include "nsIXBLAccessible.h"
|
||||
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
#include "nsIAccessibleRole.h"
|
||||
#include "nsIAccessibleStates.h"
|
||||
|
||||
#include "nsARIAMap.h"
|
||||
#include "nsStringGlue.h"
|
||||
#include "nsTArray.h"
|
||||
#include "nsRefPtrHashtable.h"
|
||||
|
@ -64,6 +63,7 @@ class nsHyperTextAccessible;
|
|||
class nsHTMLImageAccessible;
|
||||
class nsHTMLImageMapAccessible;
|
||||
class nsHTMLLIAccessible;
|
||||
struct nsRoleMapEntry;
|
||||
class Relation;
|
||||
namespace mozilla {
|
||||
namespace a11y {
|
||||
|
@ -180,33 +180,19 @@ public:
|
|||
/**
|
||||
* Return enumerated accessible role (see constants in Role.h).
|
||||
*/
|
||||
inline mozilla::a11y::role Role()
|
||||
{
|
||||
if (!mRoleMapEntry || mRoleMapEntry->roleRule != kUseMapRole)
|
||||
return ARIATransformRole(NativeRole());
|
||||
|
||||
return ARIATransformRole(mRoleMapEntry->role);
|
||||
}
|
||||
mozilla::a11y::role Role();
|
||||
|
||||
/**
|
||||
* Return true if ARIA role is specified on the element.
|
||||
*/
|
||||
inline bool HasARIARole() const
|
||||
{
|
||||
return mRoleMapEntry;
|
||||
}
|
||||
bool HasARIARole() const
|
||||
{ return mRoleMapEntry; }
|
||||
|
||||
/**
|
||||
* Return accessible role specified by ARIA (see constants in
|
||||
* roles).
|
||||
*/
|
||||
inline mozilla::a11y::role ARIARole()
|
||||
{
|
||||
if (!mRoleMapEntry || mRoleMapEntry->roleRule != kUseMapRole)
|
||||
return mozilla::a11y::roles::NOTHING;
|
||||
|
||||
return ARIATransformRole(mRoleMapEntry->role);
|
||||
}
|
||||
mozilla::a11y::role ARIARole();
|
||||
|
||||
/**
|
||||
* Returns enumerated accessible role from native markup (see constants in
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include "nsAccessiblePivot.h"
|
||||
|
||||
#include "nsAccessible.h"
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsHyperTextAccessible.h"
|
||||
#include "States.h"
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
#include "nsBaseWidgetAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsCoreUtils.h"
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "AccIterator.h"
|
||||
#include "nsAccCache.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#define CreateEvent CreateEventA
|
||||
#include "nsIDOMDocument.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsApplicationAccessibleWrap.h"
|
||||
#include "nsAccUtils.h"
|
||||
|
|
|
@ -39,9 +39,9 @@
|
|||
|
||||
#include "nsTextEquivUtils.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "AccIterator.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsAccessible.h"
|
||||
#include "nsAccUtils.h"
|
||||
|
||||
#include "nsIDOMXULLabeledControlEl.h"
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "ARIAGridAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "AccIterator.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "Role.h"
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
/* -*- 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/. */
|
||||
|
||||
#ifndef mozilla_a11y_Accessible_inl_h_
|
||||
#define mozilla_a11y_Accessible_inl_h_
|
||||
|
||||
#include "nsAccessible.h"
|
||||
#include "nsARIAMap.h"
|
||||
|
||||
inline mozilla::a11y::role
|
||||
nsAccessible::Role()
|
||||
{
|
||||
if (!mRoleMapEntry || mRoleMapEntry->roleRule != kUseMapRole)
|
||||
return ARIATransformRole(NativeRole());
|
||||
|
||||
return ARIATransformRole(mRoleMapEntry->role);
|
||||
}
|
||||
|
||||
inline mozilla::a11y::role
|
||||
nsAccessible::ARIARole()
|
||||
{
|
||||
if (!mRoleMapEntry || mRoleMapEntry->roleRule != kUseMapRole)
|
||||
return mozilla::a11y::roles::NOTHING;
|
||||
|
||||
return ARIATransformRole(mRoleMapEntry->role);
|
||||
}
|
||||
|
||||
#endif
|
|
@ -38,7 +38,9 @@
|
|||
|
||||
#include "nsHTMLFormControlAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsARIAMap.h"
|
||||
#include "nsTextEquivUtils.h"
|
||||
#include "Relation.h"
|
||||
#include "Role.h"
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#include "nsHTMLImageMapAccessible.h"
|
||||
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsARIAMap.h"
|
||||
#include "nsDocAccessible.h"
|
||||
#include "Role.h"
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "nsHTMLSelectAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsDocAccessible.h"
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
#include "nsHTMLTableAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsAccTreeWalker.h"
|
||||
#include "nsAccUtils.h"
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
#include "nsHyperTextAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsDocAccessible.h"
|
||||
|
|
|
@ -91,6 +91,7 @@ include $(topsrcdir)/config/rules.mk
|
|||
LOCAL_INCLUDES += \
|
||||
-I$(srcdir) \
|
||||
-I$(srcdir)/../base \
|
||||
-I$(srcdir)/../generic \
|
||||
-I$(srcdir)/../html \
|
||||
-I$(srcdir)/../xul \
|
||||
$(NULL)
|
||||
|
|
|
@ -42,23 +42,20 @@
|
|||
#import "mozView.h"
|
||||
#import "nsRoleMap.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsIAccessibleRelation.h"
|
||||
#include "nsIAccessibleText.h"
|
||||
#include "nsIAccessibleEditableText.h"
|
||||
#include "nsRootAccessible.h"
|
||||
#include "Relation.h"
|
||||
#include "Role.h"
|
||||
|
||||
#include "mozilla/Services.h"
|
||||
#include "nsRect.h"
|
||||
#include "nsCocoaUtils.h"
|
||||
#include "nsCoord.h"
|
||||
#include "nsObjCExceptions.h"
|
||||
|
||||
#include "nsIAccessible.h"
|
||||
#include "nsIAccessibleRelation.h"
|
||||
#include "nsIAccessibleText.h"
|
||||
#include "nsIAccessibleEditableText.h"
|
||||
#include "Relation.h"
|
||||
#include "Role.h"
|
||||
|
||||
#include "nsAccessNode.h"
|
||||
#include "nsRootAccessible.h"
|
||||
|
||||
#include "mozilla/Services.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::a11y;
|
||||
|
||||
|
|
|
@ -39,9 +39,8 @@
|
|||
#import "mozActionElements.h"
|
||||
|
||||
#import "MacUtils.h"
|
||||
|
||||
#import "nsIAccessible.h"
|
||||
#import "nsXULTabAccessible.h"
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsXULTabAccessible.h"
|
||||
|
||||
#include "nsObjCExceptions.h"
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
|
||||
#import "nsRoleMap.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "Role.h"
|
||||
|
||||
#import "mozAccessible.h"
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "nsXULColorPickerAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsAccTreeWalker.h"
|
||||
#include "nsCoreUtils.h"
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
|
||||
#include "nsXULComboboxAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsDocAccessible.h"
|
||||
#include "nsCoreUtils.h"
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
#include "nsXULFormControlAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsAccTreeWalker.h"
|
||||
#include "nsCoreUtils.h"
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
|
||||
#include "nsXULListboxAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsDocAccessible.h"
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "nsXULMenuAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccessibilityService.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsDocAccessible.h"
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
// NOTE: groups are alphabetically ordered
|
||||
#include "nsXULTextAccessible.h"
|
||||
|
||||
#include "Accessible-inl.h"
|
||||
#include "nsAccUtils.h"
|
||||
#include "nsBaseWidgetAccessible.h"
|
||||
#include "nsCoreUtils.h"
|
||||
|
|
Загрузка…
Ссылка в новой задаче