Commit Graph

98 Commits

Author SHA1 Message Date
Sylvestre Ledru
e5a134f73a Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Eitan Isaacson
0dcac1f015 Bug 1479036 - Android classes role additions. r=surkov 2018-08-09 14:43:00 +03:00
Alexander Surkov
b5aac69f8c Bug 1449530 - fix bustage of a11cb2c5d1f9c CLOSED TREE 2018-04-03 11:00:48 -04:00
Alexander Surkov
bb87020837 Bug 1449530 - clean up ATK states mapping, r=eeejay 2018-04-03 10:26:57 -04:00
Sylvestre Ledru
9d4a84d778 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Joanmarie Diggs
a31096518e 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.
2017-06-22 07:25:00 -04:00
Joanmarie Diggs
bb811f6e83 Bug 1343537 - Implement ARIA DPUB extension. r=surkov 2017-06-13 15:06:08 -04:00
David Major
b1e362f6f7 Bug 1344615: Remove nsXPCOMStrings.{h,cpp} r=bsmedberg
These are now dead code.

MozReview-Commit-ID: AClU0Qx3kmN
2017-03-06 17:52:54 +13:00
Colomban Wendling
f16034535e 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
073c95ebe0 bug 1338755 - make RemoteChildDoc() return a DocAccessibleParent* r=yzen 2017-02-17 09:06:26 -05:00
Trevor Saunders
4ca74b48c2 bug 1315985 - actually expose the atk table cell interface when appropriate r=davidb 2016-11-08 14:58:20 -05:00
Trevor Saunders
ebebd3c7c4 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
786fdf8fc8 Backed out changeset 3152577aab9b (bug 1305402) 2016-10-13 23:15:09 +02:00
Trevor Saunders
6f09048fd4 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
9c81c3c1ee Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor
972b8460e2 Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Igor
27c926c49e Bug 1197331 - remove PR_snprintf calls in miscellaneous directories. r=nfroyd 2016-08-04 16:41:00 +02:00
Trevor Saunders
53f46f0583 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
9c5b8de022 Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Trevor Saunders
527b920e8e 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
a36d107dbc 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
50f30b2269 bug 1262563 - fire show / hide events for proxied accessibles r=davidb 2016-04-21 13:41:09 -04:00
Trevor Saunders
739b7e3ffb bug 1262563 - make FireShowHideEvent() a method of MaiAtkObject r=davidb 2016-04-21 13:41:09 -04:00
Trevor Saunders
259044902e bug 1262563 - make FireShowHideEvent() return void r=davidb 2016-04-21 13:41:09 -04:00
Trevor Saunders
4893453690 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
b72bc654e1 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
97dab7f07c bug 1259023 - make nsIAccessible.parent work with proxies r=yzen 2016-04-13 04:00:56 -04:00
Alexander Surkov
586f7a0b1b Bug 1261439 - replace nsAccUtils::IsEmbeddedObject on a bit flag check, r=marcoz 2016-04-08 08:35:11 -04:00
Birunthan Mohanathas
bfee0fb40c Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda
d871b9515f 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
245cd6a02f Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Trevor Saunders
beef0cfdb7 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
7ff2b48fa1 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
731ab0d8a3 bug 1243077 - add AccessibleOrProxy::IsNull() r=davidb 2016-01-27 18:42:42 -05:00
Trevor Saunders
d95bc3a974 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
68681d2f7d bug 1241453 - switch MaiHyperLink to use AccessibleOrProxy r=davidb 2016-01-26 07:49:25 -05:00
Trevor Saunders
2494e41ece bug 1241453 - switch MaiAtkObject to use AccessibleOrProxy r=davidb 2016-01-26 07:49:25 -05:00
Sylvestre Ledru
1f07806bda Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan 2016-01-22 16:58:49 +01:00
Trevor Saunders
9d907576ee 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
7af211f981 bug 1213402 - Fire numeric value change events for proxies r=davidb 2015-11-10 15:55:09 -05:00
Trevor Saunders
6ead49b5ab 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
41098ddc6c 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
17fa6fe100 Back out changeset 12ac8139ecd9 (bug 1213516) for Linux build bustage
CLOSED TREE
2015-10-15 22:52:58 -07:00
Trevor Saunders
68d7bf22b5 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
e46df967b2 bug 1210884 - expose the action interface on proxied accessibles r=davidb 2015-10-07 18:26:56 -04:00
Trevor Saunders
f9c6b19a5e bug 1209615 - make remote primary docs RELATION_EMBEDS targets for atk r=davidb 2015-10-07 18:26:56 -04:00
Olli Pettay
70d1e1d427 Bug 1210407 - teach nsMaiInterfaceTable to use proxies, r=tbsaunde 2015-10-06 22:36:29 +03:00
Olli Pettay
777675465f Bug 1210408 - make nsMaiInterfaceAction work with proxies, r=tbsaunde 2015-10-06 22:14:18 +03:00
Trevor Saunders
52d037e283 bug 1210803 - expose the selection interface on proxied accessibles r=davidb 2015-10-02 06:38:21 -04:00
Alexander Surkov
0597f7f346 Bug 1210108 - Emit object:state-changed:showing event for doorhangers, r=tbsaunde 2015-10-01 11:27:33 -04:00