Commit Graph

96 Commits

Author SHA1 Message Date
Alexander Surkov
1b66a81b51 Bug 1449530 - fix bustage of a11cb2c5d1f9c CLOSED TREE 2018-04-03 11:00:48 -04:00
Alexander Surkov
4c64dee806 Bug 1449530 - clean up ATK states mapping, r=eeejay 2018-04-03 10:26:57 -04:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Joanmarie Diggs
1115881728 Bug 1375460 - "haspopup" AtkObject attribute missing if multiprocess enabled. r=surkov
Move the object attribute exposure of states::HASPOPUP from the ATK wrapper
code to the shared accessibility code. Call UniversalStatesFor() rather than
State() for performance.

--HG--
extra : rebase_source : e31c2d00da302538a7f6962d8f4dfd148a7d877e
2017-06-22 07:25:00 -04:00
Joanmarie Diggs
c306e05c88 Bug 1343537 - Implement ARIA DPUB extension. r=surkov
--HG--
extra : rebase_source : 38af7ac790cb60d952b1dc2885f50fc9c15cdea6
2017-06-13 15:06:08 -04:00
David Major
ed0b8f8653 Bug 1344615: Remove nsXPCOMStrings.{h,cpp} r=bsmedberg
These are now dead code.

MozReview-Commit-ID: AClU0Qx3kmN

--HG--
extra : rebase_source : df83cf89292da1519bb26027c11e14923d5c54a0
2017-03-06 17:52:54 +13:00
Colomban Wendling
d8bb7d0fa3 Bug 1308908 - Compare the whole accessible name when checking equality. r=tbsaunde
Use strcmp() instead of strncmp() when comparing the AtkObject name
before changing it.  9133117f410c06ad7fa25323a168bc97200043b9 changed
from Equals() to strncmp() to prevent issues related to embedded NUL
bytes, but the change lead to only checking if the AtkObject name has
the new value as prefix.  Instead, use strcmp() to check the whole
C strings, but still stopping at the first NUL byte in the new name.

strcmp() has to be safe here, as NS_ConvertUTF16toUTF8::get() has to
return a NUL-terminated string or the code would crash a few lines
below when calling strdup() on it.
2017-01-27 09:36:00 -05:00
Trevor Saunders
d1713296dd bug 1338755 - make RemoteChildDoc() return a DocAccessibleParent* r=yzen 2017-02-17 09:06:26 -05:00
Trevor Saunders
ae0d5b0f94 bug 1315985 - actually expose the atk table cell interface when appropriate r=davidb 2016-11-08 14:58:20 -05:00
Trevor Saunders
cb5a7921ed bug 1305402 - implement the AtkTablecell interface r=davidb
This is a pretty straight forward wrapper around the internal table cell
 interface.  However we need to be careful to only expose this interface if we
 are dealing with a version of ATK new enough to understand it.
2016-10-18 13:37:26 -04:00
Sebastian Hengst
2c548da812 Backed out changeset 3152577aab9b (bug 1305402) 2016-10-13 23:15:09 +02:00
Trevor Saunders
1e63efcedc bug 1305402 - implement the AtkTablecell interface r=davidb
This is a pretty straight forward wrapper around the internal table cell
 interface.  However we need to be careful to only expose this interface if we
 are dealing with a version of ATK new enough to understand it.
2016-10-13 16:18:27 -04:00
Igor
175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor
a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Igor
4efade90d4 Bug 1197331 - remove PR_snprintf calls in miscellaneous directories. r=nfroyd
--HG--
extra : rebase_source : a19f77db06e68bd3d69faf56b8bbdc1825f13249
2016-08-04 16:41:00 +02:00
Trevor Saunders
e346d8b93e bug 1279984 - allow destroying proxies without a wrapper r=davidb
We can sometimes call ProxyDestroyed() on a proxy that never had a wrapper set
up so we should just bail out of ProxyDestroyed() in that case because there is
nothing to do.
2016-06-22 09:17:16 -04:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Trevor Saunders
471e46a43a bug 1266518 - add a new event message for AccSelChangeEvents r=davidb
For these events atk needs to know about the widget not the event target, and
the easiest way to support that is by adding a new event message that sends the
widget id.
2016-04-25 13:38:06 -04:00
Trevor Saunders
ef5ed9eb74 bug 1266496 - fire some selection events for proxied accessibles r=davidb
we map both EVENT_SELECTION_CHANGED and EVENT_TEXT_SELECTION_CHANGED to
"selection_changed" similar to the non proxy case.
2016-04-25 13:38:06 -04:00
Trevor Saunders
f2bc8b52ca bug 1262563 - fire show / hide events for proxied accessibles r=davidb 2016-04-21 13:41:09 -04:00
Trevor Saunders
eaf7af766b bug 1262563 - make FireShowHideEvent() a method of MaiAtkObject r=davidb 2016-04-21 13:41:09 -04:00
Trevor Saunders
ce3d231aa4 bug 1262563 - make FireShowHideEvent() return void r=davidb 2016-04-21 13:41:09 -04:00
Trevor Saunders
5509e10d38 bug 1262563 - fix how FireShowHideEvent gets the parent of a hide event target r=davidb
Especially for hide events its better to use the parent stored in the event
than the parent of the object when the event is fired.  However xul trees fire
show / hide events where the event's type is AccEvent not a subtype of
AccMutationEvent, and in that case we need to fall back to the objects parent.
2016-04-21 13:41:09 -04:00
Trevor Saunders
78ec591787 bug 1262563 - stop passing an event to FireShowHideEvent() r=davidb
Later we will call this for proxies where we don't have an event, and anyway
  all we need the event for is if it came from user input.
2016-04-21 13:41:09 -04:00
Trevor Saunders
8a74954930 bug 1259023 - make nsIAccessible.parent work with proxies r=yzen 2016-04-13 04:00:56 -04:00
Alexander Surkov
f34bc138b9 Bug 1261439 - replace nsAccUtils::IsEmbeddedObject on a bit flag check, r=marcoz 2016-04-08 08:35:11 -04:00
Birunthan Mohanathas
d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Trevor Saunders
ba8141b22e bug 1243077 - simplify GetRoleCB some r=davidb
We can replace the code  dealing with Accessibles and proxies differently with
a call to AccessibleOrProxy::Role()
2016-01-27 18:42:45 -05:00
Trevor Saunders
2cc43f17c8 bug 1243077 - make it possible to get MaiAtkObject::mAccWrap from an AtkObject* without casting to Accessible* or ProxyAccessible* r=davidb 2016-01-27 18:42:44 -05:00
Trevor Saunders
9ac1c316df bug 1243077 - add AccessibleOrProxy::IsNull() r=davidb 2016-01-27 18:42:42 -05:00
Trevor Saunders
65d4636a8e bug 1241453 - clean up GetAccessibleWrap() r=davidb
We can simplify it some to make better use of AccessibleOrProxy.
2016-01-26 07:49:25 -05:00
Trevor Saunders
d90ff6e507 bug 1241453 - switch MaiHyperLink to use AccessibleOrProxy r=davidb 2016-01-26 07:49:25 -05:00
Trevor Saunders
4404ef7da3 bug 1241453 - switch MaiAtkObject to use AccessibleOrProxy r=davidb 2016-01-26 07:49:25 -05:00
Sylvestre Ledru
ab4e3a0d42 Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan
--HG--
extra : rebase_source : 7d2cc56b6553cd7a8d848d3c660f30735bd82eec
2016-01-22 16:58:49 +01:00
Trevor Saunders
7b1bfa7b97 bug 1203861 - use strncmp() instead of nsCString.equals() to compare names r=davidb
AtkObject stores the name as a C string, but nsCString can store strings with
'\0' in the middle.  That means that if we compute a name containing '\0'
nsCString.equals() will nevr consider that string to be equal to
AtkObject::name, however we only want to compare up to the first '\0' because
that is the only part Atk will ever see.  So we should use strncmp() instead of
nsCString.equals().
2016-01-08 14:23:08 -05:00
Trevor Saunders
974cb05c7a bug 1213402 - Fire numeric value change events for proxies r=davidb 2015-11-10 15:55:09 -05:00
Trevor Saunders
3dd3759899 bug 1213402 - separate value change events into text value changes and numeric value changes r=davidb
Arguably these are different things, and it will be easier to proxy events for
atk this way because atk only wants the numeric value changes.
2015-11-10 15:55:08 -05:00
Trevor Saunders
34e02634ff bug 1213516 - fire showing state change event for atk in place of an alert event r=davidb 2015-10-16 14:59:08 -04:00
Phil Ringnalda
908ee17508 Back out changeset 12ac8139ecd9 (bug 1213516) for Linux build bustage
CLOSED TREE
2015-10-15 22:52:58 -07:00
Trevor Saunders
8d46decb2f bug 1213516 - fire showing state change event for atk in place of an alert event r=davidb 2015-10-16 01:24:26 -04:00
Trevor Saunders
d12bfed3c9 bug 1210884 - expose the action interface on proxied accessibles r=davidb 2015-10-07 18:26:56 -04:00
Trevor Saunders
2233b14cfd bug 1209615 - make remote primary docs RELATION_EMBEDS targets for atk r=davidb 2015-10-07 18:26:56 -04:00
Olli Pettay
daf442d9cb Bug 1210407 - teach nsMaiInterfaceTable to use proxies, r=tbsaunde
--HG--
extra : rebase_source : bc80721e4fb1ff2362f556661def0ede45690220
2015-10-06 22:36:29 +03:00
Olli Pettay
010075bd3f Bug 1210408 - make nsMaiInterfaceAction work with proxies, r=tbsaunde
--HG--
extra : rebase_source : a24bf6bcded4eed0d7d7a5bf8e3a008cd299f6ae
2015-10-06 22:14:18 +03:00
Trevor Saunders
c64438d7d8 bug 1210803 - expose the selection interface on proxied accessibles r=davidb 2015-10-02 06:38:21 -04:00
Alexander Surkov
defaa2f69d Bug 1210108 - Emit object:state-changed:showing event for doorhangers, r=tbsaunde 2015-10-01 11:27:33 -04:00
Olli Pettay
c14791c067 Bug 1207253 - make getChildCountCB correctly deal with outerdoc accessibles with proxy children, r=tbsaunde
--HG--
extra : rebase_source : 8d40383e824bbfdf35cc99c1a0a55f50a8e31dbb
2015-09-23 01:43:51 +03:00
Olli Pettay
e0121eceb5 Bug 1199785 - Make atk methods in nsMaiInterfaceComponent.cpp to work with ipc proxies, r=tbsaunde 2015-09-02 00:57:57 +03:00