From 80066aef218f4144cc7f57362c585e74537a8f61 Mon Sep 17 00:00:00 2001 From: Oussama BADR Date: Sun, 24 Jun 2012 02:19:13 -0400 Subject: [PATCH] Bug 763150 - remove notification methods from nsIAccessibilityService, r=tbsaunde --- accessible/public/nsIAccessibilityService.h | 27 ---------------- accessible/src/base/nsAccessibilityService.h | 33 +++++++++++++++----- 2 files changed, 25 insertions(+), 35 deletions(-) diff --git a/accessible/public/nsIAccessibilityService.h b/accessible/public/nsIAccessibilityService.h index 5ce4714a61c1..250a03640a56 100644 --- a/accessible/public/nsIAccessibilityService.h +++ b/accessible/public/nsIAccessibilityService.h @@ -48,33 +48,6 @@ public: virtual Accessible* AddNativeRootAccessible(void* aAtkAccessible) = 0; virtual void RemoveNativeRootAccessible(Accessible* aRootAccessible) = 0; - /** - * Notification used to update the accessible tree when new content is - * inserted. - */ - virtual void ContentRangeInserted(nsIPresShell* aPresShell, - nsIContent* aContainer, - nsIContent* aStartChild, - nsIContent* aEndChild) = 0; - - /** - * Notification used to update the accessible tree when content is removed. - */ - virtual void ContentRemoved(nsIPresShell* aPresShell, nsIContent* aContainer, - nsIContent* aChild) = 0; - - /** - * Notify accessibility that anchor jump has been accomplished to the given - * target. Used by layout. - */ - virtual void NotifyOfAnchorJumpTo(nsIContent *aTarget) = 0; - - /** - * Notify the accessibility service that the given presshell is - * being destroyed. - */ - virtual void PresShellDestroyed(nsIPresShell *aPresShell) = 0; - /** * Fire accessible event of the given type for the given target. * diff --git a/accessible/src/base/nsAccessibilityService.h b/accessible/src/base/nsAccessibilityService.h index 922d9fe2f4d8..3d5ff42dee13 100644 --- a/accessible/src/base/nsAccessibilityService.h +++ b/accessible/src/base/nsAccessibilityService.h @@ -122,16 +122,25 @@ public: already_AddRefed CreateOuterDocAccessible(nsIContent* aContent, nsIPresShell* aPresShell); + /** + * Adds/remove ATK root accessible for gtk+ native window to/from children + * of the application accessible. + */ virtual Accessible* AddNativeRootAccessible(void* aAtkAccessible); virtual void RemoveNativeRootAccessible(Accessible* aRootAccessible); - virtual void ContentRangeInserted(nsIPresShell* aPresShell, - nsIContent* aContainer, - nsIContent* aStartChild, - nsIContent* aEndChild); + /** + * Notification used to update the accessible tree when new content is + * inserted. + */ + void ContentRangeInserted(nsIPresShell* aPresShell, nsIContent* aContainer, + nsIContent* aStartChild, nsIContent* aEndChild); - virtual void ContentRemoved(nsIPresShell* aPresShell, nsIContent* aContainer, - nsIContent* aChild); + /** + * Notification used to update the accessible tree when content is removed. + */ + void ContentRemoved(nsIPresShell* aPresShell, nsIContent* aContainer, + nsIContent* aChild); virtual void UpdateText(nsIPresShell* aPresShell, nsIContent* aContent); @@ -153,9 +162,17 @@ public: */ void UpdateImageMap(nsImageFrame* aImageFrame); - virtual void NotifyOfAnchorJumpTo(nsIContent *aTarget); + /** + * Notify accessibility that anchor jump has been accomplished to the given + * target. Used by layout. + */ + void NotifyOfAnchorJumpTo(nsIContent *aTarget); - virtual void PresShellDestroyed(nsIPresShell* aPresShell); + /** + * Notify the accessibility service that the given presshell is + * being destroyed. + */ + void PresShellDestroyed(nsIPresShell* aPresShell); /** * Notify that presshell is activated.