Closed
Bug 379579
Opened 18 years ago
Closed 18 years ago
implement IAccessibleHypertext
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: surkov, Assigned: surkov)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
No description provided.
Attachment #263568 -
Flags: superreview?(neil)
Attachment #263568 -
Flags: review?(aaronleventhal)
Comment 1•18 years ago
|
||
Comment on attachment 263568 [details] [diff] [review]
patch
>+class CAccessibleHypertext: public CAccessibleText,
>+ public IAccessibleHypertext
Why does CAccessibleHypertext need to derive from CAccessibleText?
Assignee | ||
Comment 2•18 years ago
|
||
(In reply to comment #1)
> (From update of attachment 263568 [details] [diff] [review])
> >+class CAccessibleHypertext: public CAccessibleText,
> >+ public IAccessibleHypertext
> Why does CAccessibleHypertext need to derive from CAccessibleText?
>
because IAccessibleHypertext is inherited from IAccessibleText. I am getting IAccessibleText implementation from CAccessibleText.
Comment 3•18 years ago
|
||
Comment on attachment 263568 [details] [diff] [review]
patch
I like it other than the macro:
GET_NSIACCESSIBLEHYPERTEXT
Attachment #263568 -
Flags: review?(aaronleventhal) → review+
Assignee | ||
Updated•18 years ago
|
Assignee: aaronleventhal → surkov.alexander
Assignee | ||
Comment 4•18 years ago
|
||
with aaron's comments
Attachment #263568 -
Attachment is obsolete: true
Attachment #263994 -
Flags: superreview?(neil)
Attachment #263568 -
Flags: superreview?(neil)
Comment 5•18 years ago
|
||
(In reply to comment #2)
>I am getting IAccessibleText implementation from CAccessibleText.
Right, but why not make nsHyperTextAccessibleWrap to derive from both CAccessibleText and CAccessibleHyperText instead?
Assignee | ||
Comment 6•18 years ago
|
||
(In reply to comment #5)
> (In reply to comment #2)
> >I am getting IAccessibleText implementation from CAccessibleText.
> Right, but why not make nsHyperTextAccessibleWrap to derive from both
> CAccessibleText and CAccessibleHyperText instead?
>
Yes, then I should declare FORWARD_IACCESSIBLETEXT(CAccessibleText) on nsHyperTextAccessibleWrap instead CAccessibleHyperText and I should do it everywhere where I want to use CAccessibleHyperText. Right?
Comment 7•18 years ago
|
||
Here, make sure the QI to the XPCOM hyper text interface succeeds first.
if (IID_IAccessibleHypertext == iid) {
*ppv = NS_STATIC_CAST(IAccessibleHypertext*, this);
(NS_REINTERPRET_CAST(IUnknown*, *ppv))->AddRef();
return S_OK;
Comment 8•18 years ago
|
||
And if you haven't already, do that for all the other XPCOM interfaces with IA2 equivalents.
Comment 9•18 years ago
|
||
Comment on attachment 263994 [details] [diff] [review]
patch2
(In reply to comment #6)
>Yes, then I should declare FORWARD_IACCESSIBLETEXT(CAccessibleText) on
>nsHyperTextAccessibleWrap instead CAccessibleHyperText and I should do it
>everywhere where I want to use CAccessibleHyperText. Right?
My fault, I keep thinking that C++ interfaces work like Java interfaces and they don't. Your original way is fine.
Attachment #263994 -
Flags: superreview?(neil) → superreview+
Comment 10•18 years ago
|
||
Surkov, is this one ready to go in?
Assignee | ||
Comment 11•18 years ago
|
||
(In reply to comment #10)
> Surkov, is this one ready to go in?
>
this one - yes :)
Attachment #263994 -
Attachment is obsolete: true
Assignee | ||
Comment 12•18 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•