Commit Graph
37 Commits
Author SHA1 Message Date
Mike Hommey c65e4ee047 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 73b2bb921e 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 ee8e57078b Bug 1187139 (part 3) - Replace nsBaseHashtable::Enumerate() calls in accessible/ with iterators. r=tbsaunde. 2015-11-29 14:02:07 -08:00
Chris Manchester 78c5666b6a 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 4e6d8f6705 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 e8145d3c2a Bug 1213382 - proxy more accessible selection methods, r=tbsaunde 2015-10-13 22:08:00 +03:00
Nicholas Nethercote 621898d6f0 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 12fec02dfb 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 e5760853c7 Bug 991983 - Use objdir-relative SOURCES instead of GENERATED_SOURCES. r=gps 2015-05-28 07:34:16 +09:00
Denis Volk 1872a62df8 Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
David Major 11e138b789 Bug 1146229: Remove calling convention modifier from local variable. r=surkov 2015-03-24 13:30:11 +13:00
Ehsan Akhgari d77cf3e2bf 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 ea41d8de48 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 46d0281897 Bug 1137906 - Shutdown cached children when shutdown the document. r=surkov 2015-03-10 11:24:26 +08:00
Trevor Saunders b252d846cb bug 1122242 - use MOZ_OVERRIDE more in accessible/ r=surkov 2015-01-19 17:41:12 -05:00
Ehsan Akhgari a7f747ec15 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 30d743a505 Bug 1112746 - some internal object checks are missed in xpcom wrapper, r=yzen 2014-12-22 13:54:28 -05:00
Chris Peterson 83d6c6a99b 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 4c7e59b925 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.
2014-12-06 15:47:06 -08:00
Gregory Szorc 8dfb21a175 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.
2014-12-06 15:39:53 -08:00
Gregory Szorc e415770112 Bug 1108294 - Switch to argparse; r=froydnj 2014-12-06 15:36:39 -08:00
Gregory Szorc 055d1915bc Bug 1108294 - Removed unused cachedir option; r=froydnj
The argument isn't used. Let's remove dead code.
2014-12-06 15:31:34 -08:00
Gregory Szorc e661812602 Bug 1108294 - Modernize AccEventGen.py; r=froydnj
I/O handling in AccEventGen.py is old school. Let's use context
managers. Let's also fix some minor style foo.
2014-12-06 15:26:37 -08:00
Wes Kocher 3c0de68457 Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
Denis Volk cbf9ae78f0 Bug 1095098: move do_QueryObject templates into their own header r=froydnj 2014-11-20 12:20:10 +01:00
Alexander Surkov 6c115d2460 Bug 1096930 - Crash while trying to enter the password for my Firefox account, r=marcoz 2014-11-11 10:56:40 -05:00
Ehsan Akhgari ea3f762cc0 Bug 1087306 - Fix some more bad implicit constructors in accessible; r=tbsaunde 2014-10-10 17:28:35 -04:00
Alexander Surkov be19c27102 Bug 1076816 - segregate XPCOM tree, r=davidb 2014-10-21 20:49:28 -04:00
Alexander Surkov ca9ea2cb75 Bug 1068734 - dexpcomify remaining accessible classes, r=tbsaunde 2014-09-23 08:23:02 -04:00
Alexander Surkov 2eb0e9beb8 Bug 1064877 - dexpcomify Accessible class, r=tbsaunde 2014-09-16 13:30:23 -04:00
Ehsan Akhgari 591536d9bf Address the review comments from bug 1061009 2014-09-02 18:37:58 -04:00
Ehsan Akhgari 02703fac75 Bug 1061009 - Fix more bad implicit constructors in a11y; r=tbsaunde 2014-09-02 12:19:58 -04:00
Yura Zenevich 4e6e596479 Bug 1056803 - added nsiAccessibleObjectAttributeChangedEvent interface. Tests included. r=tbsaunde
---
 accessible/base/AccEvent.cpp                       |  8 +++++
 accessible/base/AccEvent.h                         | 29 ++++++++++++++++-
 accessible/generic/DocAccessible.cpp               |  8 +++--
 accessible/interfaces/moz.build                    |  1 +
 .../nsIAccessibleObjectAttributeChangedEvent.idl   | 21 ++++++++++++
 accessible/tests/mochitest/common.js               |  2 ++
 accessible/tests/mochitest/events.js               | 37 ++++++++++++++++++++++
 .../tests/mochitest/events/test_aria_objattr.html  |  7 ++--
 accessible/xpcom/AccEvents.conf                    |  1 +
 9 files changed, 106 insertions(+), 8 deletions(-)
 create mode 100644 accessible/interfaces/nsIAccessibleObjectAttributeChangedEvent.idl
2014-08-28 08:42:06 -04:00
Robert O'Callahan 6fb18233c7 Bug 1048752. Part 16: Move nsFrameSelection::HINT to CaretAssociationHint.h. r=tn
This patch started an attempt to remove nsFrameSelection.h from nsCaret.h
and metastasized into a rather large refactoring patch that removed it
from some other header files as well, and changed nsFrameSelection::HINT
into a global-scope enum with better names. I also converted bools
into CaretAssociationHint in a few places where that was appropriate,
but there are still some more places (GetChildFrameContainingOffset)
where bools need to be converted. I figured this patch was big enough already.
2014-08-06 17:19:27 +12:00
Andrew McCreight 72ddbed1f0 Bug 1034923 - Make AccEventGen.py code generator generate classes with private destructors. r=tbsaunde 2014-07-28 10:15:58 -07:00
Benoit Jacob db89202abc Bug 1028588 - Update AccEventGen.py to whitelist the dangerous public destructors that it generates - r=tbsaunde 2014-07-07 14:27:30 -04:00
Birunthan Mohanathas e551bc9312 Bug 1028563 - Part 1: Flatten accessible/src/ directory. rs=surkov 2014-06-22 10:15:19 -07:00