Commit Graph

20 Commits

Author SHA1 Message Date
Nathan Froyd
92a8124fef Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Dave Hylands
4c58175e5f Bug 1167090 - Fix MTP date and time queried through getObjectInfo. r=alchen 2015-06-25 23:55:32 -07:00
Nathan Froyd
43cddcfc0d Bug 1160485 - remove implicit conversion from RefPtr<T> to TemporaryRef<T>; r=ehsan
Having this implicit conversion means that we can silently do extra
refcounting when it's completely unnecessary.  It's also an obstacle to
making RefPtr more nsRefPtr-like, so let's get rid of it.
2015-05-01 09:14:16 -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
Alphan Chen
d025947b6e Bug 1107146 - [MTP] Add an UpdateEntryAndNotify for modified event. r=dhylands 2015-01-28 14:35:28 +08:00
Dave Hylands
b884060207 Bug 1085743 - MTP doesn't work on Nexus 4/5. r=alchen 2014-11-13 17:42:38 -08:00
Alphan Chen
4ed23d9f21 Bug 1084180 - Refine RemoveEntry - Don't remove only the entry but also its children if they exist. r=dhylands 2014-10-22 02:43:00 -04:00
Alphan Chen
19418caae9 Bug 1074593 - Add AddEntryAndNotify and RemoveEntryAndNotify for file/folder change when MTP in use. r=dhylands 2014-10-14 19:34:00 +02:00
Alphan Chen
f2a5e49f71 Bug 1076715 - Add B2G supported playback formats for device info. r=dhylands 2014-10-08 03:16:00 +02:00
eden-chuang
7c3ade3ca7 Bug 1074604 - handle file "modified" event in MozMtpDatabase and MozMtpServer. r=dhylands 2014-10-08 00:12:00 +02:00
Alphan Chen
481b7c13bc Bug 1061117 - [MTP] Correct the offset and component in "MozMtpDatabase::CreateEntryForFile", r=dhylands 2014-09-09 10:35:06 +08:00
Dave Hylands
eb2d5d2056 Bug 1049243 - Integrate MTP and Device Storage. r=echou 2014-08-28 13:13:06 -07:00
Dave Hylands
7c2696bb01 Bug 1049240 - Integrate MTP with the AutoMounter. r=echou 2014-08-19 13:41:35 -07:00
Nigel Babu
f41a68fe2b Backed out changeset 19e59c14b0aa (bug 1049240) for xpshell bustage 2014-08-20 12:19:36 +05:30
Dave Hylands
f013445d71 Bug 1049240 - Integrate MTP with the AutoMounter. r=echou 2014-08-19 13:41:35 -07:00
Alphan Chen
796c1da1d0 Bug 1039939 - [MTP] Enable functionality on Windows 7. r=dhylands 2014-07-30 13:49:02 +08:00
Eric Chou
045fd600ad Bug 1036862 - [MTP] Support 'Delete files/folders', r=dhylands
With this patch, users can delete files and folders on Firefox OS
devices while using MTP. My host is Ubuntu 13.04.
2014-07-22 11:12:22 +08:00
Eric Chou
478cc174cc Bug 1036863 - [MTP] Rename file/folder via MTP, r=dhylands
This patch fixed 'unable to rename file/folder via MTP' by
responding to MTP operation 'setObjectPropertyValue' correctly
2014-07-21 09:57:04 +08:00
Eric Chou
5bd67da62e Bug 1036861 - [MTP] Write file size into the response of getObjectInfo, r=dhylands
In the response of operation GetObjectInfo, there is a field
"ObjectCompressedSize". Currently it's assigned with 0. We need
to put correct file size into it. I also corrected the type of
property value in function getObjectPropertyDesc().
2014-07-21 09:56:58 +08:00
Dave Hylands
e3133bb56b Bug 1029533 - Initial standup of MTP server. r=echou
Note: This will be off by default. Currently, you need to do:

adb shell setprop sys.usb.config mtp,adb

in order to activate the MTP server.
2014-07-11 14:42:15 -07:00