Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tommy Webb
Tor Browser
Commits
5d166c9d
Commit
5d166c9d
authored
17 years ago
by
aaronleventhal@moonset.net
Browse files
Options
Downloads
Patches
Plain Diff
Bug 391592. IA2 states exposed incorrectly. r=surkov, a=dsicore
parent
c56a600f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
accessible/src/msaa/nsAccessibleWrap.cpp
+18
-15
18 additions, 15 deletions
accessible/src/msaa/nsAccessibleWrap.cpp
with
18 additions
and
15 deletions
accessible/src/msaa/nsAccessibleWrap.cpp
+
18
−
15
View file @
5d166c9d
...
...
@@ -1241,40 +1241,40 @@ nsAccessibleWrap::get_states(AccessibleStates *aStates)
if
(
states
&
nsIAccessibleStates
::
STATE_INVALID
)
*
aStates
|=
IA2_STATE_INVALID_ENTRY
;
else
if
(
states
&
nsIAccessibleStates
::
STATE_REQUIRED
)
if
(
states
&
nsIAccessibleStates
::
STATE_REQUIRED
)
*
aStates
|=
IA2_STATE_REQUIRED
;
// The following IA2 states are not supported by Gecko
// IA2_STATE_ARMED
// IA2_STATE_MANAGES_DESCENDAN
// IA2_STATE_MANAGES_DESCENDAN
TS
// IA2_STATE_ICONIFIED
// IA2_STATE_INVALID
// IA2_STATE_INVALID
// This is not a state, it is the absence of a state
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_ACTIVE
)
*
aStates
|=
IA2_STATE_ACTIVE
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_DEFUNCT
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_DEFUNCT
)
*
aStates
|=
IA2_STATE_DEFUNCT
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_EDITABLE
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_EDITABLE
)
*
aStates
|=
IA2_STATE_EDITABLE
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_HORIZONTAL
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_HORIZONTAL
)
*
aStates
|=
IA2_STATE_HORIZONTAL
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_MODAL
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_MODAL
)
*
aStates
|=
IA2_STATE_MODAL
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_MULTI_LINE
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_MULTI_LINE
)
*
aStates
|=
IA2_STATE_MULTI_LINE
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_OPAQUE
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_OPAQUE
)
*
aStates
|=
IA2_STATE_OPAQUE
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_SELECTABLE_TEXT
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_SELECTABLE_TEXT
)
*
aStates
|=
IA2_STATE_SELECTABLE_TEXT
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_SINGLE_LINE
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_SINGLE_LINE
)
*
aStates
|=
IA2_STATE_SINGLE_LINE
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_STALE
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_STALE
)
*
aStates
|=
IA2_STATE_STALE
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_SUPPORTS_AUTOCOMPLETION
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_SUPPORTS_AUTOCOMPLETION
)
*
aStates
|=
IA2_STATE_SUPPORTS_AUTOCOMPLETION
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_TRANSIENT
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_TRANSIENT
)
*
aStates
|=
IA2_STATE_TRANSIENT
;
else
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_VERTICAL
)
if
(
extraStates
&
nsIAccessibleStates
::
EXT_STATE_VERTICAL
)
*
aStates
|=
IA2_STATE_VERTICAL
;
return
S_OK
;
...
...
@@ -1295,6 +1295,7 @@ nsAccessibleWrap::get_localizedExtendedRole(BSTR *localizedExtendedRole)
STDMETHODIMP
nsAccessibleWrap
::
get_nExtendedStates
(
long
*
nExtendedStates
)
{
*
nExtendedStates
=
0
;
return
E_NOTIMPL
;
}
...
...
@@ -1303,6 +1304,7 @@ nsAccessibleWrap::get_extendedStates(long maxExtendedStates,
BSTR
**
extendedStates
,
long
*
nExtendedStates
)
{
*
nExtendedStates
=
0
;
return
E_NOTIMPL
;
}
...
...
@@ -1311,6 +1313,7 @@ nsAccessibleWrap::get_localizedExtendedStates(long maxLocalizedExtendedStates,
BSTR
**
localizedExtendedStates
,
long
*
nLocalizedExtendedStates
)
{
*
nLocalizedExtendedStates
=
0
;
return
E_NOTIMPL
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment