Closed Bug 741697 Opened 14 years ago Closed 13 years ago

dexpcomify CAccessibleComponent

Categories

(Core :: Disability Access APIs, defect)

All
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: tbsaunde, Assigned: jhk)

References

Details

Attachments

(1 file, 6 obsolete files)

1. include nsAccessibleWrap.h instead of nsAccessible.h 2. change nsRefPtr<nsAccessible> acc = do_QueryObject(this) to static_cast<nsAccessibleWrap*>(this); 3. get rid of the use of the xpcom GetParent() on an accessible replacing it with Parent() 4. rename the class to ia2AccessibleComponent surkov sound good?
yes 5. remove NS_IMETHOD QueryInterface(const nsIID& uuid, void** result) = 0;
Attached patch Patch (obsolete) — Splinter Review
Attachment #613717 - Flags: review?(trev.saunders)
Jignesh, you should do hg rename instead
Attached patch Patch_2 (obsolete) — Splinter Review
Attachment #613717 - Attachment is obsolete: true
Attachment #613717 - Flags: review?(trev.saunders)
Attachment #613901 - Flags: review?(trev.saunders)
Comment on attachment 613901 [details] [diff] [review] Patch_2 Review of attachment 613901 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/src/msaa/Makefile.in @@ +64,5 @@ > nsApplicationAccessibleWrap.cpp \ > nsWinUtils.cpp \ > ia2AccessibleAction.cpp \ > CAccessibleImage.cpp \ > + ia2AccessibleComponent.cpp \ put it after is2AccessibleAction please @@ +93,5 @@ > nsHTMLTableAccessibleWrap.h \ > nsApplicationAccessibleWrap.h \ > ia2AccessibleAction.h \ > CAccessibleImage.h \ > + ia2AccessibleComponent.h \ same ::: accessible/src/msaa/CAccessibleComponent.cpp @@ -37,5 @@ > * the terms of any one of the MPL, the GPL or the LGPL. > * > * ***** END LICENSE BLOCK ***** */ > > -#include "CAccessibleComponent.h" it makes sense to keep it even it comes from nsAccessibleWrap.h @@ +70,5 @@ > > // IAccessibleComponent > > STDMETHODIMP > +ia2AccessibleComponent::get_locationInParent(long *aX, long *aY) type* name please
Attachment #613901 - Flags: feedback+
Attached patch Patch_3 (obsolete) — Splinter Review
Fixed above comments.
Attachment #613901 - Attachment is obsolete: true
Attachment #613901 - Flags: review?(trev.saunders)
Attachment #613948 - Flags: review?(trev.saunders)
Comment on attachment 613948 [details] [diff] [review] Patch_3 > >-#include "nsAccessible.h" >+#include "nsAccessibleWrap.h" > #include "nsCoreUtils.h" > #include "nsWinUtils.h" I'm pretty sure these headers aren't needed any more, it'd be nice if you could remove them if that's actually the case. > #include "States.h" > > #include "nsString.h" > > #include "nsIDOMCSSPrimitiveValue.h" > #include "nsIDOMNSRGBAColor.h" pretty sure you don't need these last three either. >+ nsAccessibleWrap* acc = static_cast<nsAccessibleWrap*>(this); >+ if (acc->IsDefunct()) > return E_FAIL; that should be CO_E_OBJECTNOTCONNECTED now. >+ nsAccessibleWrap* acc = static_cast<nsAccessibleWrap*>(this); > if (acc->IsDefunct()) > return E_FAIL; same, though since you didn't change this maybe you just need to rebase. >-#ifndef _ACCESSIBLE_COMPONENt_H >+#ifndef _ACCESSIBLE_COMPONENT_H > #define _ACCESSIBLE_COMPONENT_H not sure what you change here, but it would be nice if you rename the guard to something like IA2_ACCESSIBLE_COMPONENT_H_
Attachment #613948 - Flags: review?(trev.saunders)
Attached patch Patch_4 (obsolete) — Splinter Review
Fixed all above comments. we need nsCoreUtils.h for nsIFrame hence I kept it.
Attachment #613948 - Attachment is obsolete: true
Attachment #614317 - Flags: review?(trev.saunders)
Attached patch Patch_5 (obsolete) — Splinter Review
Please review this one.
Attachment #614317 - Attachment is obsolete: true
Attachment #614317 - Flags: review?(trev.saunders)
Attachment #614318 - Flags: review?(trev.saunders)
(In reply to Jignesh Kakadiya [:jhk] from comment #8) > Created attachment 614317 [details] [diff] [review] > Patch_4 > > Fixed all above comments. we need nsCoreUtils.h for nsIFrame hence I kept it. why not include nsIFrame.h directly then?
Comment on attachment 614318 [details] [diff] [review] Patch_5 > #include "nsIDOMNSRGBAColor.h" why didn't you get rid of this include?
Attachment #614318 - Flags: review?(trev.saunders) → review+
Attached patch Patch_6 (obsolete) — Splinter Review
Good to go?
Attached patch Patch_7Splinter Review
Header position fixed.
Attachment #614326 - Attachment is obsolete: true
Attachment #614318 - Attachment is obsolete: true
Comment on attachment 614332 [details] [diff] [review] Patch_7 Review of attachment 614332 [details] [diff] [review]: ----------------------------------------------------------------- I'll fix nits before landing ::: accessible/src/msaa/CAccessibleComponent.h @@ +38,5 @@ > * > * ***** END LICENSE BLOCK ***** */ > > +#ifndef IA2_ACCESSIBLE_COMPONENT_H_ > +#define IA2_ACCESSIBLE_COMPONENT_H_ extra space after ifndef and define @@ +43,4 @@ > > #include "AccessibleComponent.h" > > +class ia2AccessibleComponent: public IAccessibleComponent space before :
Status: ASSIGNED → 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: