bug 542039 - accessible object types r=surkov, roc

This commit is contained in:
Trevor Saunders
2012-09-28 17:53:44 -04:00
parent 8aa5987293
commit ef05b16386
51 changed files with 298 additions and 633 deletions

View File

@@ -29,11 +29,10 @@
#include "nsIDOMHTMLButtonElement.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsStyleSet.h"
#ifdef ACCESSIBILITY
#include "nsAccessibilityService.h"
#endif
#include "nsDisplayList.h"
using namespace mozilla;
nsIFrame*
NS_NewHTMLButtonControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
{
@@ -77,16 +76,10 @@ NS_QUERYFRAME_HEAD(nsHTMLButtonControlFrame)
NS_QUERYFRAME_TAIL_INHERITING(nsContainerFrame)
#ifdef ACCESSIBILITY
already_AddRefed<Accessible>
nsHTMLButtonControlFrame::CreateAccessible()
a11y::AccType
nsHTMLButtonControlFrame::AccessibleType()
{
nsAccessibilityService* accService = nsIPresShell::AccService();
if (accService) {
return accService->CreateHTMLButtonAccessible(mContent,
PresContext()->PresShell());
}
return nullptr;
return a11y::eHTMLButtonAccessible;
}
#endif