Accessibility work. bug #12952

-r aaronl -sr brendan
This commit is contained in:
evaughan@netscape.com
2001-04-17 23:06:38 +00:00
parent 6424474e0a
commit 0f41960fd3
51 changed files with 2542 additions and 179 deletions

View File

@@ -92,12 +92,8 @@ nsGfxCheckboxControlFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr
nsresult rv = NS_OK;
NS_WITH_SERVICE(nsIAccessibilityService, accService, "@mozilla.org/accessibilityService;1", &rv);
if (accService) {
nsCOMPtr<nsIDOMNode> node = do_QueryInterface(mContent);
nsIMutableAccessible* acc = nsnull;
accService->CreateMutableAccessible(node,&acc);
acc->SetName(NS_LITERAL_STRING("Check Box").get());
acc->SetRole(NS_LITERAL_STRING("check box").get());
acc->SetIsLeaf(PR_TRUE);
nsIAccessible* acc = nsnull;
accService->CreateHTMLCheckboxAccessible(NS_STATIC_CAST(nsIFrame*, this), &acc);
*aInstancePtr = acc;
return NS_OK;
}