Closed Bug 205594 Opened 21 years ago Closed 21 years ago

embedded mozilla gtk2 is not accessibility enabled.

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: yinbolian, Assigned: yinbolian)

References

Details

Attachments

(1 file, 1 obsolete file)

 
Status: NEW → ASSIGNED
QA Contact: dsirnapalli → jessie.li
Depends on: 205772
Blocks: gtk2
No longer depends on: gtk2
Attached patch patch (obsolete) — Splinter Review
Comment on attachment 123775 [details] [diff] [review]
patch

This patch will make gtkmozembed accessible. can you review it?
Attachment #123775 - Flags: review?(blizzard)
Comment on attachment 123775 [details] [diff] [review]
patch


>+
>+    nsCOMPtr<nsIWebNavigation> webNav = do_QueryInterface(webBrowser);
>+    NS_ENSURE_TRUE(webNav, nsnull);

The web navigation object is already stashed locally as mNavigation, so you
shouldn't have to get it again.

>Index: EmbedPrivate.h
>===================================================================
>RCS file: /cvsroot/mozilla/embedding/browser/gtk/src/EmbedPrivate.h,v
>retrieving revision 1.18
>diff -u -r1.18 EmbedPrivate.h
>--- EmbedPrivate.h	9 Mar 2003 07:08:40 -0000	1.18
>+++ EmbedPrivate.h	20 May 2003 05:32:20 -0000
>@@ -104,6 +104,10 @@
>   void        ChildFocusIn (void);
>   void        ChildFocusOut(void);
> 
>+#ifdef ACCESSIBILITY
>+  void *GetAtkObjectForCurrentDocument();
>+#endif

All of the accessibility code requires gtk2, so we can only define
accessibility for gtk2.  Might be easiest to do as part of the Makefile and
then just use the ACCESSIBILITY definition in the actual source files.
Attachment #123775 - Flags: review?(blizzard) → review-
Attached patch patch_v2Splinter Review
I remember MOZ_ACCESSIBILITY_ATK can be used in the code for the purpose. But
MOZ_ACCESSIBILITY_ATK cannot be used in Makefile. So I still use ACCESSIBILITY
in Makefile, I think it is harmless.
also use mNavigation on Blizzard's suggestion.
Attachment #123775 - Attachment is obsolete: true
Attachment #123858 - Flags: review?(blizzard)
Comment on attachment 123858 [details] [diff] [review]
patch_v2

r=blizzard
Attachment #123858 - Flags: review?(blizzard) → review+
checked in Trunk.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Forgive my ignorance but is this all what was needed to make embedding apps
accessible or is there work left to do in the application itself ?
Thanks a lot to have worked on this btw.
First, I should say it only works on Gnome2 Desktop.
If your application is base on Gtk+-2.0 and it is already accessible, then the
embeded mozilla is also accessible, no more work needed. 
But I only tested in TestGtkEmbed, not a real application, so there maybe some
bugs left there. If you find problems, please file bugs. 
Thanks for concerning it.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: