Andreas Pehrson
6a50a61fa7
Bug 1212783 - Add a MediaStreamTrack to DOMCameraControl. r=aosmond
...
Without this, HTMLMediaElement cannot see that the camera stream contains
video so it won't hold the screen wake lock.
2015-10-22 12:36:23 +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
Andreas Pehrson
9fb5ec93b1
Bug 1170958 - Refactor DOMMediaStream to contain a 3-stage track chain. r=roc
...
This lets us separate tracks by ownership like so:
* Input - Owned by the producer of the DOMMediaStream (gUM etc.)
* Owned - Contains Input tracks (per above) or tracks cloned tracks
if this DOMMediaStream is a clone.
* Playback - Contains Owned tracks plus tracks addTrack()ed to this
DOMMediaStream minus tracks removeTrack()ed from this
DOMMediaStream.
2015-09-30 09:31:54 +08:00
Wes Kocher
84e72a2137
Backed out 9 changesets (bug 1170958) for frequent test_getUserMedia_addTrackRemoveTrack.html failures
...
Backed out changeset 277c1f8098d1 (bug 1170958)
Backed out changeset aa86bb9eea95 (bug 1170958)
Backed out changeset 8af8b85a4b26 (bug 1170958)
Backed out changeset ec1bf225e9cb (bug 1170958)
Backed out changeset 4a04ddca2b6b (bug 1170958)
Backed out changeset e85c9977a311 (bug 1170958)
Backed out changeset 16b40ff04e8f (bug 1170958)
Backed out changeset ad206925c84a (bug 1170958)
Backed out changeset 2106eccec79b (bug 1170958)
2015-09-25 13:08:55 -07:00
Andreas Pehrson
dbb83ae994
Bug 1170958 - Refactor DOMMediaStream to contain a 3-stage track chain. r=roc
...
This lets us separate tracks by ownership like so:
* Input - Owned by the producer of the DOMMediaStream (gUM etc.)
* Owned - Contains Input tracks (per above) or tracks cloned tracks
if this DOMMediaStream is a clone.
* Playback - Contains Owned tracks plus tracks addTrack()ed to this
DOMMediaStream minus tracks removeTrack()ed from this
DOMMediaStream.
2015-09-25 23:23:18 +08:00
Andrew Osmond
4f172256bf
Bug 1191731 - Update poster API to allow application control over when poster is saved. r=bz, r=dhylands
2015-09-15 12:40:32 -04:00
Andrew Osmond
b0bb78b2ec
Bug 1187364 - Part 1. Add ability for camera to pause/resume recording. r=dhylands,bz
2015-08-17 15:20:28 -04:00
Birunthan Mohanathas
47ed3a3675
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Andrew Osmond
42582d10da
Bug 1175656 - Implement generation of recording posters in Gecko. r=dhylands,bz
2015-06-16 20:35:00 -04:00
Andrew Osmond
89be084642
Bug 1152500 - Fix how stop recording may be handled out-of-order. r=dhylands
2015-06-12 18:51:38 -04:00
Andrea Marchesini
94545cbb2e
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00: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
Boris Zbarsky
988b8e01be
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04: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
Andrew Osmond
412f34f726
Bug 1104913 - Update selection algorithms for preview, picture and video sizes to have sane defaults. r=mikeh, r=bz
2014-12-12 19:51:29 -08:00
Mike Habicher
276265fd33
Bug 1052821 - expose exposure metering modes to JS, r=aosmond,bz
2014-12-12 21:42:13 -05:00
Mike Habicher
a28fa8fe23
Bug 1104055 - fix CameraControl memory leak, r=aosmond
2014-12-12 21:18:03 -05:00
Mike Habicher
ab71c4b172
Bug 1107683 - remove method callbacks from CameraControl, r=aosmond,bz
2014-12-11 11:02:51 -05:00
Mike Habicher
174e4f30a0
Bug 1099390 - add reason to onClosed event, r=aosmond,bz
2014-11-25 14:45:00 -05:00
Fabrice Desre
1266bcc3bd
Bug 1090501 - pre-emptively open the camera hardware for certified apps with 'camera' permission, r=fabrice
2014-10-31 13:54:02 -04:00
Ryan VanderMeulen
e5680c040b
Backed out changesets 4cb1154b0190 and 506d33f3931e (bug 1090501) because it depends on another patch that was backed out.
2014-10-31 19:15:42 -04:00
Fabrice Desre
97c08f1824
Bug 1090501 - pre-emptively open the camera hardware for certified apps with 'camera' permission, r=fabrice
2014-10-31 13:54:02 -04:00
Andrew Osmond
3d9077beb7
Bug 994912 - Add support for promises and event-based notifications to camera. r=mikeh, r=bz
2014-10-03 04:19:00 -04:00
Andrew Osmond
aaccbfaba8
Bug 1068559 - Add asynchronous auto focus completed callback. r=bz r=dhylands
2014-09-22 05:25:00 +02:00
Carsten "Tomcat" Book
c141ee3a16
Backed out changeset 8e754efd35cd (bug 994912)
2014-09-25 12:44:16 +02:00
Andrew Osmond
942c9765a8
Bug 994912 - Add support for promises and event-based notifications to camera. r=mikeh r=bz
2014-09-24 12:51:00 +02:00
Ehsan Akhgari
6f236e1960
Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
...
--HG--
extra : rebase_source : c80c5f9d7ae28286513cdb52ad76b46c240bdd5d
2014-09-01 18:26:43 -04:00
Mike Habicher
af0ab63dbd
Bug 981318 - expose compressed image quality setting, r=dhylands,khuey
2014-08-25 15:12:49 -04:00
Andrew Osmond
e19fb1ef53
Bug 1030007 - Throttle updating the preview window when CPU low and/or encoder falls behind. r=mikeh, r=cpearce
2014-07-02 19:55:00 -04:00
Birunthan Mohanathas
617866f602
Bug 1026535 - Fix mismatched class/struct tags. r=ehsan
2014-06-18 17:57:51 -07:00
Mike Habicher
1d97b39aa7
Bug 1020497 - collapse exposureCompensation to single attribute, r=bz
2014-06-06 15:37:15 -04:00
Mike Habicher
1ac21cb7cc
Bug 1004588 - remove deprecated and unused ICameraControl::Size attributes, r=bz
2014-06-05 11:21:02 -04:00
Andrew Osmond
b5a75694bb
Bug 987954 - Change camera control size/region attributes to methods to remove direct JS_*() calls, r=bz,mikeh
2014-04-30 17:15:01 -04:00
Mike Habicher
d3f5ccb4f1
Bug 985496 - rationalize camera error reporting, r=dhylands
2014-04-25 16:28:15 -04:00
Mike Habicher
558352928c
Bug 986024 - expose resumeContinuousFocus() method to DOM/JS, r=bz,dhylands
2014-04-15 15:46:40 -04:00
Mike Habicher
2c6cfaaa7c
Bug 983180 - hide camera objects behind Navigator::HasCameraSupport(), r=bz
2014-04-09 11:53:34 -04:00
Mike Habicher
11e7af1bc8
Bug 965420 - camera face-tracking, r=bz,dhylands
2014-04-09 11:52:10 -04:00
Youngwoo Jo
62f92c3e64
Bug 965421 - camera continuous autofocus status callback, r=jst,mikeh
2014-04-09 11:12:25 -04:00
Boris Zbarsky
fdbb455d4f
Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
...
This patch was mostly generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""
and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Daniel Holbert
9d95b47d75
Bug 984786 part 4: Give NS_INLINE_DECL_*REFCOUNTING classes private/protected destructor & MOZ_FINAL annotation where appropriate, in /dom. r=smaug
2014-04-02 09:21:03 -07:00
Neil Rashbrook
921625ab05
Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
...
--HG--
extra : rebase_source : f8fb50de9292320eb7589dd28dc566d0f5044da6
2014-03-18 00:23:03 +00:00
Wes Kocher
2939a367ba
Backed out 2 changesets (bug 514280) for OSX build bustage on a CLOSED TREE
...
Backed out changeset 2a015b45d808 (bug 514280)
Backed out changeset a01f97c1ed02 (bug 514280)
2014-03-17 15:19:53 -07:00
Neil Rashbrook
f83724018d
Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
...
--HG--
extra : rebase_source : eaca8b2925eaffb49e29a617cd72c0d6686e6d9e
2014-03-17 19:07:09 +00:00
Mike Habicher
6411be5b8b
Bug 965425 - expose ISO setting, r=dhylands,jst
2014-03-07 01:00:43 -05:00
Andrew McCreight
e52658031e
Bug 977260, part 1 - Don't implement wrappercache CC stuff for nsDOMCameraControl. r=smaug
2014-02-28 09:56:23 -08:00
Mike Habicher
bf695152c7
Bug 976032 - check for null callbacks, r=dhylands
2014-02-25 17:01:29 -05:00
Mike Habicher
cb7b7f75e6
Bug 909542 - refactor CameraControl API, r=dhylands,jst,jesup,onecyrenus
2014-02-14 17:41:07 -05:00
Ryan VanderMeulen
ee17cd233e
Backed out changeset 6e588c56764b (bug 909542) for Gaia unit test perma-fail.
2014-02-14 08:27:44 -05:00
Mike Habicher
b8dfc21206
Bug 909542 - refactor CameraControl API, r=dhylands,jst,jesup,onecyrenus
2014-02-14 00:28:57 -05:00
Phil Ringnalda
608d5cbbe0
Back out f03664765359 (bug 909542) for unexpected assertions and lack of expected assertions
2014-02-10 19:09:23 -08:00