bug 397644. File control not exposed correctly to a11y apis. r+sr+a=roc

git-svn-id: svn://10.0.0.236/trunk@236818 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronleventhal%moonset.net
2007-09-28 01:09:14 +00:00
parent 4c33447f53
commit 27463ea0c8
3 changed files with 28 additions and 0 deletions

View File

@@ -70,6 +70,9 @@
#include "nsContentCreatorFunctions.h"
#include "nsContentUtils.h"
#include "nsDisplayList.h"
#ifdef ACCESSIBILITY
#include "nsIAccessibilityService.h"
#endif
#define SYNC_TEXT 0x1
#define SYNC_BUTTON 0x2
@@ -598,6 +601,15 @@ nsFileControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
return DisplaySelectionOverlay(aBuilder, aLists);
}
#ifdef ACCESSIBILITY
NS_IMETHODIMP nsFileControlFrame::GetAccessible(nsIAccessible** aAccessible)
{
// No accessible object for file control, only for child text frame and button
*aAccessible = nsnull;
return NS_ERROR_FAILURE;
}
#endif
////////////////////////////////////////////////////////////
// Mouse listener implementation