Commit Graph

66 Commits

Author SHA1 Message Date
Trevor Saunders
b04ac26aa2 bug 1250882 - implement xpcAccessible::GetBounds() for proxied accessibles r=davidb 2016-02-24 19:19:58 -05:00
Trevor Saunders
21162b4de3 bug 1250882 - make xpcAccessible::GetAttributes() work with proxied accessibles r=davidb 2016-02-24 19:19:58 -05:00
Trevor Saunders
1475d804ac bug 1250882 - implement xpcAccessible::GetValue() for proxied accessibles r=davidb 2016-02-24 19:19:58 -05:00
Trevor Saunders
24f50edca7 bug 1250882 - implement xpcAccessible::GetLanguage() for proxied accessibles r=davidb 2016-02-24 19:19:57 -05:00
Trevor Saunders
24d25ea3d2 bug 1250882 - implement xpcAccessible::GetDescription() for proxied accessibles r=davidb 2016-02-24 19:19:57 -05:00
Trevor Saunders
39b0307bf1 bug 1250882 - implement xpcAccessible::Name() for proxied accessibles r=davidb 2016-02-24 19:19:57 -05:00
Trevor Saunders
75a8c74522 bug 1250882 - implement xpcAccessible::GetState() for proxied accessibles r=davidb 2016-02-24 19:19:57 -05:00
Bogdan Postelnicu
c8e4165734 Bug 1245464 - initialize with 0 mSupportedIfaces in xpcAccessibleGeneric in order to avoid corrupted result after bit-wise operation. r=surkov 2016-02-03 13:53:11 +02:00
Birunthan Mohanathas
9bed3781f9 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda
863943dfb7 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
f94b4ff6a2 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey
94f653c385 Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Trevor Saunders
890e475bad bug 1243077 - make xpcAccessible::GetLastChild() work with proxied accessibles r=davidb 2016-01-27 18:42:48 -05:00
Trevor Saunders
25f4e5b4dd bug 1243077 - make xpcAccessible::GetFirstChild() work with proxies r=davidb 2016-01-27 18:42:47 -05:00
Trevor Saunders
82d0a0cb57 bug 1243077 - make xpcAccessible::GetChildren() work with proxied accessibles r=davidb 2016-01-27 18:42:46 -05:00
Trevor Saunders
09e76d6161 bug 1243077 - remove an unnecessary AddRef() from xpcAccessible::GetChildren()
r=davidb
2016-01-27 18:42:46 -05:00
Trevor Saunders
7ed70c4747 bug 1243077 - make xpcAccessible::GetChildAt() work with proxied accessibles r=davidb 2016-01-27 18:42:46 -05:00
Trevor Saunders
316224a8fa bug 1243077 - support proxied accessibles in xpcAccessible::GetRole() r=davidb 2016-01-27 18:42:45 -05:00
Trevor Saunders
3533020369 bug 1243077 - add ToXPC{,Document} overloads for proxied accessibles r=davidb 2016-01-27 18:42:44 -05:00
Trevor Saunders
d45bd1dd7a bug 1243077 - implement xpcAccessible::GetChildCount() for proxied accessibles
r=davidb
2016-01-27 18:42:43 -05:00
Trevor Saunders
0f1a4e92f4 bug 1243077 - add AccessibleOrProxy xpcAccessible::IntlGeneric() r=davidb
It will be useful to get mIntl without casting it to either Accessible* or
  ProxyAccessible*.  sadly C++ won't let us overload the name Intl() this way
  so for now this method is named IntlGeneric().
2016-01-27 18:42:43 -05:00
Trevor Saunders
f74ed4bb3b bug 1241453 - allow caching proxies in xpcAccessibleDocuments r=davidb 2016-01-26 07:49:25 -05:00
Trevor Saunders
5aa2104440 bug 1241453 - assert accessibles are only added to non remote xpcAccessibleDocuments r=davidb 2016-01-26 07:49:25 -05:00
Trevor Saunders
66dfc5d929 bug 1241453 - fixup xpcAccessible Intl() methods to not assume mIntl is always an Accessible r=davidb 2016-01-26 07:49:25 -05:00
Trevor Saunders
e5c491e88c bug 1241453 - allow xpcAccessibleDocument::mCache to use proxies as keys r=davidb 2016-01-26 07:49:25 -05:00
Trevor Saunders
e9a6911336 bug 1241453 - allow constructing xpcAccessibles with proxies r=davidb 2016-01-26 07:49:25 -05:00
Trevor Saunders
68c4c04937 bug 1241453 - allow storing proxies in xpcAccessibleGeneric::mIntl r=davidb 2016-01-26 07:49:25 -05:00
Sylvestre Ledru
14ec5bc735 Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan 2016-01-22 16:58:49 +01:00
Alexander Surkov
28d32c5bd2 Bug 1233118 - implement IAccessible2_3::selectionRanges, r=yzen 2016-01-20 12:53:03 -05:00
Mike Hommey
36c12bd405 Bug 1231148 - Avoid requiring IDL files installed in $DIST/idl to run AccEventGen.py. r=ted
While working on growing the fastermake backend to do compilation, I ran into
the problem that there's an implicit dependency from AccEventGen.py on the fact
that IDL files are installed in $DIST/idl. While we may need some way to
express such things in general, it turns out that for this specific use case,
we don't actually /need/ IDLs in $DIST/idl, and a couple paths are enough to
get things to work.
2015-12-09 19:23:53 +09:00
Ted Mielczarek
56d30d0b18 bug 1160185 - support GENERATED_FILES in EXPORTS. r=glandium
This change allows specifying objdir-relative paths in EXPORTS to enable
exporting entries from GENERATED_FILES. Objdir paths in EXPORTS that are
not in GENERATED_FILES will raise an exception.

Example:
```
EXPORTS += ['!g.h', 'f.h']
GENERATED_FILES += ['g.h']
```

Given the implementation, this should also work for FINAL_TARGET_FILES,
FINAL_TARGET_PP_FILES, and TESTING_FILES, but those are not well-tested.

This patch also renames the install manifest for '_tests' to match the
directory name for convenience in some code I refactored.
2015-12-01 09:53:16 -05:00
Nicholas Nethercote
47f7804bad Bug 1187139 (part 3) - Replace nsBaseHashtable::Enumerate() calls in accessible/ with iterators. r=tbsaunde. 2015-11-29 14:02:07 -08:00
Chris Manchester
cace689ddb Bug 1217015 - Convert AccEventGen.py to GENERATED_FILES and get rid of most of accessible/xpcom/Makefile.in r=glandium,tbsaunde 2015-11-16 16:51:51 -08:00
Nathan Froyd
e4e2da55c9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Olli Pettay
7244b6d588 Bug 1213382 - proxy more accessible selection methods, r=tbsaunde 2015-10-13 22:08:00 +03:00
Nicholas Nethercote
0c8dfbfdaf Bug 1204277 - Disallow warnings in six more directories. r=glandium.
These are all conditional uses of ALLOW_COMPILER_WARNINGS=True that are no
longer necessary.
2015-09-14 21:16:37 -07:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Mike Hommey
e3f13a0ddb Bug 991983 - Use objdir-relative SOURCES instead of GENERATED_SOURCES. r=gps 2015-05-28 07:34:16 +09:00
Denis Volk
cd6346cce0 Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
David Major
5c46210c18 Bug 1146229: Remove calling convention modifier from local variable. r=surkov 2015-03-24 13:30:11 +13:00
Ehsan Akhgari
e21f41d809 Bug 1145631 - Part 5: Replace MOZ_FINAL with final in the AccEventGen codegen; r=froydnj 2015-03-21 12:28:46 -04:00
Ehsan Akhgari
5cccea6f0f Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ting-Yu Chou
ebca8598ef Bug 1137906 - Shutdown cached children when shutdown the document. r=surkov 2015-03-10 11:24:26 +08:00
Trevor Saunders
2553262d13 bug 1122242 - use MOZ_OVERRIDE more in accessible/ r=surkov 2015-01-19 17:41:12 -05:00
Ehsan Akhgari
bd52bd3f4e Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Alexander Surkov
aff0bd2bcb Bug 1112746 - some internal object checks are missed in xpcom wrapper, r=yzen 2014-12-22 13:54:28 -05:00
Chris Peterson
77809be56b Bug 1110031 - Part 2: Mark some directories as FAIL_ON_WARNINGS for some compilers. r=gps 2014-12-10 22:46:01 -08:00
Gregory Szorc
e558a48af6 Bug 1108294 - Use mozbuild.makeutil for dependency file writing; r=froydnj
AccEventGen.py was using an old, one-off Python module for writing make
dependency files. We have a more appropriate API now. So we use it.

While we were here, we modified file writing to use FileAvoidWrite to
avoid always writing the output files and bumping mtimes.

--HG--
extra : rebase_source : 34ef9badacceb4791f27816c756ad9c95bf4069c
2014-12-06 15:47:06 -08:00
Gregory Szorc
267b96e1dd Bug 1108294 - Use positional arguments; r=froydnj
There is only 1 caller to AccEventGen.py in the tree. We don't need
optional arguments. Convert them to positional.

Since the arguments are no longer optional, branches related to their
presence have been removed.

--HG--
extra : rebase_source : 35d51852dee031011ad9f079f3aba56b67948d7e
2014-12-06 15:39:53 -08:00
Gregory Szorc
cb60395481 Bug 1108294 - Switch to argparse; r=froydnj
--HG--
extra : rebase_source : cc0b81afafbc2fa20f7327dda8f9c6e64c895386
2014-12-06 15:36:39 -08:00