Closed
Bug 377037
Opened 18 years ago
Closed 18 years ago
get rid of StateChange struct
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: surkov, Assigned: surkov)
References
Details
Attachments
(3 files, 3 obsolete files)
8.14 KB,
patch
|
aaronlev
:
review+
|
Details | Diff | Splinter Review |
26.05 KB,
patch
|
ginnchen+exoracle
:
review+
|
Details | Diff | Splinter Review |
1.12 KB,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•18 years ago
|
||
1) remove accdoc from arguments of event object constructor
2) rename nsAccessibleEventData -> nsAccEvent
Attachment #261141 -
Flags: review?(aaronleventhal)
Updated•18 years ago
|
Attachment #261141 -
Flags: review?(aaronleventhal) → review+
Assignee | ||
Comment 2•18 years ago
|
||
Comment on attachment 261141 [details] [diff] [review]
patch 1.1
checked in
Updated•18 years ago
|
Summary: get rid StateChange struct → get rid of StateChange struct
Assignee | ||
Comment 3•18 years ago
|
||
Attachment #261162 -
Flags: review?(aaronleventhal)
Assignee | ||
Comment 4•18 years ago
|
||
Comment on attachment 261162 [details] [diff] [review]
patch 2.1
Ginn, may I ask you to check this on linux?
Attachment #261162 -
Flags: review?(ginn.chen)
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Comment 5•18 years ago
|
||
Should the following code use NS_NOTREACHED?
if (!stateChangeEvent) {
// XXX: It means we processed another events in FireToolkitEvent()
// (see bug 377022).
return NS_OK;
}
I'd like to know what the bigger plan is.
- Will we eventually get rid of FireToolkitEvent()? Right now it seems strange to have both FireAccessibleEvent() (only for some events) and FireToolkitEvent(). It doesn't seem obvious why there are 2 separate systems. I don't like the idea of checking this in without fixing it very soon.
- How will you deal with FireDelayedToolkitEvent() for state change events, which we need for the attribute changes. We need that because the attribute is not actually changed yet. We want to make sure if they call back and get the state it's already set to what it should be.
- Will every event type need it's own interface derived from nsIAccessibleEvent? (I don't think so, just the few that use some kind of event data).
Assignee | ||
Comment 6•18 years ago
|
||
(In reply to comment #5)
> Should the following code use NS_NOTREACHED?
> if (!stateChangeEvent) {
> // XXX: It means we processed another events in FireToolkitEvent()
> // (see bug 377022).
> return NS_OK;
> }
Not sure, what is better. But in any way it's temporary state.
> I'd like to know what the bigger plan is.
> - Will we eventually get rid of FireToolkitEvent()? Right now it seems strange
> to have both FireAccessibleEvent() (only for some events) and
> FireToolkitEvent(). It doesn't seem obvious why there are 2 separate systems.
Late we should have FireAccessibleEvent() only.
> I
> don't like the idea of checking this in without fixing it very soon.
If you will approve then it's not a problem to fix it soon.
> - How will you deal with FireDelayedToolkitEvent() for state change events,
> which we need for the attribute changes. We need that because the attribute is
> not actually changed yet. We want to make sure if they call back and get the
> state it's already set to what it should be.
The problem of the bug 374711 approach is StateChange is deleted before event is processed. In this case it won't be because we use nsCOMPtr. Are there something else?
> - Will every event type need it's own interface derived from
> nsIAccessibleEvent? (I don't think so, just the few that use some kind of event
> data).
>
Yes, not for every type, but every event that has specific data.
Comment 7•18 years ago
|
||
> If you will approve then it's not a problem to fix it soon.
Okay, let's do it all now. It won't take too long for you, since you're fast.
Everything else makes sense.
Comment 8•18 years ago
|
||
Comment on attachment 261162 [details] [diff] [review]
patch 2.1
I approve the idea but can't look at the patch in detail right now. Ginn, can you review?
Attachment #261162 -
Flags: review?(aaronleventhal)
Assignee | ||
Comment 9•18 years ago
|
||
Attachment #261162 -
Attachment is obsolete: true
Attachment #261215 -
Flags: review?(ginn.chen)
Attachment #261162 -
Flags: review?(ginn.chen)
Comment 10•18 years ago
|
||
Comment on attachment 261215 [details] [diff] [review]
patch 2.2 (updated)
some work need to be done for accessible/src/atk/nsDocAccessibleWrap.cpp
stateChangeEvent and atkObj are not defined.
also NS_IMETHODIMP nsDocAccessibleWrap::FireAccessibleEvent(nsIAccessibleEvent *aEvent) is not declared.
Attachment #261215 -
Flags: review?(ginn.chen) → review-
Assignee | ||
Comment 11•18 years ago
|
||
with ginn comments
Attachment #261215 -
Attachment is obsolete: true
Attachment #261373 -
Flags: review?(ginn.chen)
Attachment #261373 -
Flags: review?(ginn.chen) → review+
Assignee | ||
Comment 12•18 years ago
|
||
Comment on attachment 261373 [details] [diff] [review]
patch 2.3
checked in
Comment 13•18 years ago
|
||
Comment on attachment 261373 [details] [diff] [review]
patch 2.3
>+nsAccStateChangeEvent::
>+ nsAccStateChangeEvent(nsIAccessible *aAccessible,
>+ PRUint32 aState, PRBool aIsExtraState,
>+ PRBool aIsEnabled):
>+ nsAccEvent(nsIAccessibleEvent::EVENT_STATE_CHANGE, aAccessible, nsnull),
>+ mState(aState), mIsExtraState(aIsExtraState), mIsEnabled(aIsEnabled)
>+{
>+}
Note that VC6 won't compile this because it can't resolve the nsIAccessibleEvent ambiguity, although ::nsIAccessibleEvent:: works.
Assignee | ||
Comment 14•18 years ago
|
||
Attachment #261642 -
Flags: review?(neil)
Comment 15•18 years ago
|
||
Comment on attachment 261642 [details] [diff] [review]
neil's comment patch
Assuming that's why you requested my review, VC6 doesn't like this either.
Attachment #261642 -
Flags: review?(neil) → review-
Assignee | ||
Comment 16•18 years ago
|
||
Attachment #261642 -
Attachment is obsolete: true
Attachment #261647 -
Flags: review?(neil)
Updated•18 years ago
|
Attachment #261647 -
Flags: review?(neil) → review+
Assignee | ||
Comment 17•18 years ago
|
||
(In reply to comment #16)
> Created an attachment (id=261647) [details]
> neil's comment patch2
>
checked in
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•