Closed Bug 634829 Opened 14 years ago Closed 13 years ago

remove nsIAccessibleWin32Object interface

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: surkov, Assigned: drexler)

References

(Blocks 1 open bug)

Details

(Keywords: access, Whiteboard: [good first bug][mentor=surkov.alexander@gmail.com])

Attachments

(1 file, 5 obsolete files)

it's not needed, static nsAccesssibleWrap::GetHWNDFor can be used instead (change NativeAccessible to take nsAccessbile as an argument).
Whiteboard: [good first bug]
Whiteboard: [good first bug] → [good first bug][mentor=surkov.alexander@gmail.com]
Attached patch Patch v1 (obsolete) — Splinter Review
Assignee: nobody → andrew.quartey
Attachment #582570 - Flags: review?(surkov.alexander)
Comment on attachment 582570 [details] [diff] [review] Patch v1 Review of attachment 582570 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/src/msaa/nsAccessibleWrap.cpp @@ +1721,5 @@ > NS_WARNING("Not passing in an aXPAccessible"); > return NULL; > } > + > + nsAccessible *accObject = dynamic_cast<nsAccessible*>(aXPAccessible); coding style: '*' stuck to the type and space after. Applies in the following lines too.
Attached patch Patch v2 (obsolete) — Splinter Review
Coding style changes per Hub's suggestion.
Attachment #582570 - Attachment is obsolete: true
Attachment #582591 - Flags: review?(surkov.alexander)
Attachment #582570 - Flags: review?(surkov.alexander)
Comment on attachment 582591 [details] [diff] [review] Patch v2 >+IDispatch* nsAccessibleWrap::NativeAccessible(nsIAccessible *aXPAccessible) Per bug description change to take an nsAccessible* >+ nsAccessible* accObject = dynamic_cast<nsAccessible*> (aXPAccessible); isn't needed if you change the argument, but isn't correct since mozilla doesn't use rtti.
Attachment #582591 - Flags: review?(surkov.alexander) → review-
Attached patch Patch v3 (obsolete) — Splinter Review
Changed NativeAccessible to take an nsAccessible* > > but isn't correct since mozilla doesn't use rtti. Interesting. That C++ portability guide could do with a little more visibility on the developer guide home page.
Attachment #582591 - Attachment is obsolete: true
Attachment #582744 - Flags: review?(trev.saunders)
Comment on attachment 582744 [details] [diff] [review] Patch v3 So it appears mHWND in nsHTMLWin32ObjectAccessible is now unused which means a lot more code there to get the HWND can go away. However I'm not familiar enough with win32 and plugins to be sure that this change won't break something there.
Attachment #582744 - Flags: review?(trev.saunders)
Attachment #582744 - Flags: review?(surkov.alexander)
Attachment #582744 - Flags: review?(marco.zehe)
Attachment #582744 - Flags: review?(bolterbugz)
A try-server build would be helpful to verify this.
Comment on attachment 582744 [details] [diff] [review] Patch v3 1. This patch no longer applies against mozilla-central trunk. 2. After manually rebasing it and doing a local build, when I start that build, NVDA is no longer able to interact with any of the UI elements. parent-child-traversal from the primary application frame into the accessible tree is not possible, no virtual documents, nothing works.
Attachment #582744 - Flags: review?(marco.zehe) → review-
Interesting. I will update my working directory and send this patch to try.
Attachment #582744 - Flags: review?(surkov.alexander)
Attachment #582744 - Flags: review?(bolterbugz)
(In reply to alexander :surkov from comment #0) > it's not needed, static nsAccesssibleWrap::GetHWNDFor can be used instead > (change NativeAccessible to take nsAccessbile as an argument). that doesn't work, sorry for confusion. you need to override GetNativeInterface for nsHTMLWin32ObjectAccessible to return desired accessible. please let me know if you need details.
Attached patch Patch v4 (obsolete) — Splinter Review
>that doesn't work, sorry for confusion. No problem.
Attachment #582744 - Attachment is obsolete: true
Attachment #595909 - Flags: review?(surkov.alexander)
Comment on attachment 595909 [details] [diff] [review] Patch v4 Review of attachment 595909 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/src/msaa/nsHTMLWin32ObjectAccessible.cpp @@ +121,3 @@ > { > + *aOutAccessible = static_cast<IAccessible*>(this); > + NS_ADDREF_THIS(); hah, you should move here what you removed from nsAccessibleWrap::NativeAccessible
Attachment #595909 - Flags: review?(surkov.alexander) → review-
Attached patch Patch v5 (obsolete) — Splinter Review
Attachment #595909 - Attachment is obsolete: true
Attachment #595941 - Flags: review?(surkov.alexander)
Comment on attachment 595941 [details] [diff] [review] Patch v5 Review of attachment 595941 [details] [diff] [review]: ----------------------------------------------------------------- r=me ::: accessible/src/msaa/nsAccessibleWrap.cpp @@ +1687,5 @@ > NS_WARNING("Not passing in an aXPAccessible"); > return NULL; > } > > + IAccessible *msaaAccessible = nsnull; nit: IAccessible* msaaAccessible = nsnull; ::: accessible/src/msaa/nsHTMLWin32ObjectAccessible.cpp @@ +118,3 @@ > > +NS_IMETHODIMP > +nsHTMLWin32ObjectAccessible::GetNativeInterface(void** aOutAccessible) aOutAccessible -> aNativeAccessible @@ +121,3 @@ > { > + if (mHwnd) { > + ::AccessibleObjectFromWindow(reinterpret_cast<HWND>(mHwnd), use static_cast ::: accessible/src/msaa/nsHTMLWin32ObjectAccessible.h @@ +89,5 @@ > virtual ~nsHTMLWin32ObjectAccessible() {} > > NS_DECL_ISUPPORTS_INHERITED > + > + NS_OVERRIDE NS_IMETHOD GetNativeInterface(void** aOutAccessible); aNativeAccessible
Attachment #595941 - Flags: review?(surkov.alexander) → review+
Attached patch Patch v6Splinter Review
Changes per last review comments. Thanks for review.
Attachment #595941 - Attachment is obsolete: true
Attachment #595949 - Flags: review?(surkov.alexander)
Comment on attachment 595949 [details] [diff] [review] Patch v6 there's few nits remaining but I'll fix them before landing
Attachment #595949 - Flags: review?(surkov.alexander) → review+
Sure.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: