Closed Bug 88284 Opened 24 years ago Closed 24 years ago

Active Accessibility: nsIAccessible interface should be made scriptable.

Categories

(Core Graveyard :: Embedding: APIs, enhancement, P3)

x86
Windows NT
enhancement

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.5

People

(Reporter: dsirnapalli, Assigned: aaronlev)

References

Details

(Keywords: access)

Attachments

(3 files)

All the interfaces under accessibility should be made scriptable.
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla0.9.5
Attached patch Patch v1.0Splinter Review
Okay, this works. John, for your r=, notice I opted to make just one version of GetAccessibleFor, that takes a DOM node, but doesn't take a pres shell. This simplified the code in places. I also got rid of the extra CoInitialize that we had in nsWindow.cpp. This extra windows API call was slow and superfluous.
Whiteboard: Need r=/sr=
Looks good. Whitespace issues - adding lines between methods. Do it for all, or not, doesn't matter to me just keep the file consistent. ( the standard seems to be one line between ). return (mAccService && + NS_SUCCEEDED(mAccService->GetAccessibleFor(mDOMNode, getter_AddRefs(mAccessible))) + && mAccessible); This is just hard to read, put the '&&' in one place, end of line or beginning of line Why are you changing this comment? Alot more happens in that method -// Deal with all sort of mouse event +// Deal with accessible events r= jgaunt with this issues resolved
Attached patch Patch v 1.1Splinter Review
Thanks, fixed the whitespace and the comment. Someone had copy/pasted a method, changed it, and forgot to change the comment. I've fixed the comment, correctly now, in this new patch.
Nits only, really: + /*********** Check if we need outer owning doc ************/ Extra space before "Check" above, and don't these C-style comments seem a bit gaudy compared to the // C++ style one-liners elsewhere in the file? This: + return (mAccService && + NS_SUCCEEDED(mAccService->GetAccessibleFor(mDOMNode, getter_AddRefs(mAccessible))) && + mAccessible); would be even prettier if the hanging indentation lined up: + return (mAccService && + NS_SUCCEEDED(mAccService->GetAccessibleFor(mDOMNode, getter_AddRefs(mAccessible))) && + mAccessible); Take 'em or leave 'em, no need for another patch if you do. sr=brendan@mozilla.org. /be
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: Need r=/sr=
Blocks: 95819
QA Contact: mdunn → dsirnapalli
Keywords: access
Summary: nsIAccessible interface should be made scriptable. → Active Accessibility: nsIAccessible interface should be made scriptable.
-- Marking the bug as verified since all the accessibility interfaces are made scriptable.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: