Closed Bug 298648 Opened 19 years ago Closed 19 years ago

Implement ISimpleDOMNode::get_language()

Categories

(Core :: Disability Access APIs, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: aaronlev)

References

Details

(Keywords: access)

Attachments

(1 file)

We need a method to return the language of a DOM node.

I am purposely not revving the UUID for ISimpleDOMNode, but instead adding the
method to the end, because I want to avoid compatibility issues with current
impls that use ISimpleDOMNode.
Attachment #187185 - Flags: superreview?(bzbarsky)
Attachment #187185 - Flags: review?(pkwarren)
Attachment #187185 - Flags: review?(pkwarren) → review?(timeless)
Comment on attachment 187185 [details] [diff] [review]
Implement get_language. I decided to rev the GUID for ISimpleDOMNode after all.

>@@ -131,12 +137,13 @@ import "oaidl.idl";
> const long DISPID_NODE_NODEINFO   = -5900;
> const long DISPID_NODE_ATTRIBUTES = -5901;
> const long DISPID_NODE_ATTRIBUTESFORNAMES = -5902;
> const long DISPID_NODE_COMPSTYLE  = -5903;
> const long DISPID_NODE_COMPSTYLEFORPROPS = -5904;
>+const long DISPID_NODE_LANGUAGE = -5905;

i noted that the code was aligning ='s, i don't care if it does or doesn't.

>Index: accessible/src/msaa/nsAccessNodeWrap.cpp
>+nsAccessNodeWrap::get_language(BSTR __RPC_FAR *aLanguage)
>+  *aLanguage = ::SysAllocString(language.get());

i think you should return E_OOM if this fails
>+  return S_OK;
Attachment #187185 - Flags: review?(timeless) → review+
Okay, I'll fix those thanks.
Blocks: deera11y
Comment on attachment 187185 [details] [diff] [review]
Implement get_language. I decided to rev the GUID for ISimpleDOMNode after all.

Bz is swamped. Roc?
Attachment #187185 - Flags: superreview?(bzbarsky) → superreview?(roc)
Flags: blocking1.8b4?
Attachment #187185 - Flags: superreview?(roc) → superreview+
Attachment #187185 - Flags: approval1.8b4?
Attachment #187185 - Flags: approval1.8b4? → approval1.8b4+
Checking in accessible/public/msaa/ISimpleDOMNode.idl;
/cvsroot/mozilla/accessible/public/msaa/ISimpleDOMNode.idl,v  <-- 
ISimpleDOMNode.idl
new revision: 1.5; previous revision: 1.4
done
Checking in accessible/src/base/nsAccessibilityAtomList.h;
/cvsroot/mozilla/accessible/src/base/nsAccessibilityAtomList.h,v  <-- 
nsAccessibilityAtomList.h
new revision: 1.27; previous revision: 1.26
done
Checking in accessible/src/msaa/nsAccessNodeWrap.cpp;
/cvsroot/mozilla/accessible/src/msaa/nsAccessNodeWrap.cpp,v  <-- 
nsAccessNodeWrap.cpp
new revision: 1.17; previous revision: 1.16
done
Checking in accessible/src/msaa/nsAccessNodeWrap.h;
/cvsroot/mozilla/accessible/src/msaa/nsAccessNodeWrap.h,v  <--  nsAccessNodeWrap.h
new revision: 1.5; previous revision: 1.4
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Flags: blocking1.8b4?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: