Closed
Bug 634829
Opened 14 years ago
Closed 13 years ago
remove nsIAccessibleWin32Object interface
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
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)
7.66 KB,
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
it's not needed, static nsAccesssibleWrap::GetHWNDFor can be used instead (change NativeAccessible to take nsAccessbile as an argument).
Reporter | ||
Updated•14 years ago
|
Whiteboard: [good first bug]
Updated•13 years ago
|
Whiteboard: [good first bug] → [good first bug][mentor=surkov.alexander@gmail.com]
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: nobody → andrew.quartey
Attachment #582570 -
Flags: review?(surkov.alexander)
Comment 2•13 years ago
|
||
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.
Assignee | ||
Comment 3•13 years ago
|
||
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 4•13 years ago
|
||
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-
Assignee | ||
Comment 5•13 years ago
|
||
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 6•13 years ago
|
||
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)
Comment 7•13 years ago
|
||
A try-server build would be helpful to verify this.
Comment 8•13 years ago
|
||
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-
Assignee | ||
Comment 9•13 years ago
|
||
Interesting. I will update my working directory and send this patch to try.
Updated•13 years ago
|
Attachment #582744 -
Flags: review?(surkov.alexander)
Attachment #582744 -
Flags: review?(bolterbugz)
Reporter | ||
Comment 10•13 years ago
|
||
(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.
Assignee | ||
Comment 11•13 years ago
|
||
>that doesn't work, sorry for confusion.
No problem.
Attachment #582744 -
Attachment is obsolete: true
Attachment #595909 -
Flags: review?(surkov.alexander)
Reporter | ||
Comment 12•13 years ago
|
||
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-
Assignee | ||
Comment 13•13 years ago
|
||
Attachment #595909 -
Attachment is obsolete: true
Attachment #595941 -
Flags: review?(surkov.alexander)
Reporter | ||
Comment 14•13 years ago
|
||
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+
Assignee | ||
Comment 15•13 years ago
|
||
Changes per last review comments. Thanks for review.
Attachment #595941 -
Attachment is obsolete: true
Attachment #595949 -
Flags: review?(surkov.alexander)
Reporter | ||
Comment 16•13 years ago
|
||
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+
Assignee | ||
Comment 17•13 years ago
|
||
Sure.
Reporter | ||
Comment 18•13 years ago
|
||
Reporter | ||
Comment 19•13 years ago
|
||
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.
Description
•