Ehsan Akhgari
2824b29025
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Jon Coppeard
20fb51afdd
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Carsten "Tomcat" Book
ce93df92db
Backed out changeset ae8d72538dee (bug 897484) for b2g bustage
2013-07-26 12:34:25 +02:00
Jon Coppeard
9709d43d76
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Ms2ger
10d5739f7a
Bug 888643 - Part b: Move CPP_UNIT_TESTS definitions into moz.build files; r=gps
2013-07-24 09:23:06 +02:00
Marco Chen
cb96a38404
Bug 876334 - Gecko should use AudioChannelType to control volume not stream types. r=mwu, r=baku
2013-07-18 13:22:36 +08:00
Brian O'Keefe
f4815f2203
Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps
2013-07-04 08:28:43 -04:00
Mike Hommey
b97d1767fc
Bug 892904 - Remove useless includes of config.mk. r=gps
2013-07-15 18:48:40 +09:00
Trevor Saunders
f33ade0d68
bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal
2013-07-11 11:06:34 -04:00
Justin Lebar
3e059c7221
Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Justin Lebar
051c5b560a
Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
This is a mechanical change made with sed. Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Mike Shal
5169c0a913
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Marco Chen
088e5b7a15
Bug 847255 - [Bluetooth/AudioChannel] A2DP failed to start session due to music resume too fast during SCO is disconnecting. r=baku
2013-04-29 10:47:15 +08:00
Justin Lebar
b9b9b91ceb
Bug 844323 - Part 2 (The Main Event): Move ProcesPriorityManager to the main process. r=bent,khuey
2013-04-25 20:53:26 -04:00
Andrea Marchesini
b439583079
Bug 864518 - HTMLMediaElement::mAudioChannelAgent not declared to CC, r=bz
...
Bug 864518 - HTMLMediaElement::mAudioChannelAgent not declared to CC, r=bz
2013-04-23 08:28:00 -07:00
Masatoshi Kimura
60f0e6df40
Bug 859020 - Remove the MSVC exemption for FAIL_ON_WARNINGS in dom. r=bz
2013-04-21 05:36:43 +09:00
Mike Shal
df7deac25b
Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey
2013-04-16 15:24:43 -04:00
Justin Lebar
f9628f44fd
Bug 857653 - Fix leak in AudioChannelAgent by making it hold a weak ref to nsHTMLMediaElement. r=bz
2013-04-03 16:35:05 -04:00
Kyle Machulis
72a717a860
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
43628a7867
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
334c0800cf
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Alive Kuo
5b8d2542d2
Bug 853454 - Fix non-normal audio channel visibility state error. r=baku
2013-03-27 12:04:32 +08:00
Mike Shal
7ecea60097
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Ms2ger
669cc4360c
Bug 845374 - Part r: Stop including nsTArray.h in nsReadableUtils.h; r=khuey
2013-03-17 08:55:16 +01:00
Mike Shal
cd4191e248
Bug 818246 - Part 7: Move XPIDL_MODULE to moz.build; rs=gps
2013-03-11 22:00:00 -07:00
Gregory Szorc
c865547d94
Bug 818246 - Part 4: Move XPIDLSRCS into moz.build (auto); rs=glandium
...
This is the result of running
|mach mozbuild-migrate --list XPIDLSRCS SDK_XPIDLSRCS XPIDL_SOURCES| and
reverting xpcom/sample/*.
2013-03-12 10:17:46 -07:00
Andrea Marchesini
9d38e94c53
Bug 845871 - Strong ASSERT for removing elements in AudioChannelService. a=jlebar
2013-02-28 14:22:59 -05:00
Gregory Szorc
0c8ee65118
Merge mozilla-central into build-system
...
There were merges in configure.in and some Makefile.in. None had any
conflicts. I spot verified the Makefile.in changes and confirmed that
the changes did not touch any DIRS* variables.
2013-02-27 10:03:52 -08:00
Gregory Szorc
45faa95b04
Merge mozilla-central into build-system
...
Only conflict was configure.in amd was due to context, not
changed lines themselves.
2013-02-25 22:09:18 -08:00
Gregory Szorc
a0e24e2250
Bug 784841 - Part 18k: Convert /dom; f=Ms2ger rs=khuey
2013-02-25 12:47:20 -08:00
Marco Chen
9f4e046846
Bug 836655 - Modify unit test for adapting change in this bug. r=baku
2013-02-25 16:55:24 +08:00
Marco Chen
955b99f7b6
Bug 836655 - [Audio] To remove ChildID if there is no content channel playing in foreground. And only send audio-channel-changed with normal when ChildID in the background has content channel in playing state. r=baku
2013-02-25 16:54:07 +08:00
L. David Baron
4026271a28
Backed out changesets b093ba2c7ff9 and 0acbd06d48a9 (Bug 836655) for failing unit test.
2013-02-18 01:15:24 -08:00
L. David Baron
d920040e7b
Bug 836655: Fix bustage ("comparison between signed and unsigned integer expressions", warnings-as-errors) by using Contains rather than IndexOf.
2013-02-18 00:54:39 -08:00
Marco Chen
0683611803
Bug 836655 - [Audio] Remove ChildID if there is no content channel playing in foreground and only send audio-channel-changed with normal when ChildID in the background has content channel in playing state. r=baku
...
--HG--
extra : rebase_source : 7c047f8643ca32920128fac51f92eb50dd1f4e30
2013-02-18 14:30:32 +08:00
Andrea Marchesini
83198ad3c6
Bug 843417 - LMK will never kill the Musicplayer app. r=mchen, f=jlebar
2013-02-26 12:02:32 -05:00
Justin Lebar
e714d6c4cf
Bug 836654 - Part 0: Add constants CONTENT_PROCESS_{UNKNOWN_ID,MAIN_ID} to HalTypes.h and remove the equivalent constants from ContentParent.h. r=cjones
2013-02-14 15:41:29 -05:00
Marco Chen
df70168a14
Bug 835454 - [Audio] AudioChannelService didn't notify agents to call getMuted() when a content channel's visibility is changed. r=baku, a=tef+
2013-01-30 10:54:07 +08:00
Andrea Marchesini
3f200030f7
Bug 828283 - Apps playing sound should not be muted when the screen is put to sleep., r=sicking
2013-01-28 12:47:18 +01:00
Andrea Marchesini
a12b19957f
Bug 832665 - Switching back and forth between the music app and FM radio (using home key) causes some unexpected behavior., r=mchen
2013-01-25 16:12:17 +01:00
Ed Morley
ec419c6c8a
Backed out changeset a0c4559f5d2e for cpp unitest orange
2013-01-25 13:36:17 +00:00
Andrea Marchesini
d5dbd9640b
Bug 832665 - Switching back and forth between the music app and FM radio (using home key) causes some unexpected behavior., r=mchen, a=tef+
2013-01-25 13:24:08 +01:00
Marco Chen
a8b6e7b1cd
Bug 830611 - [Audio] Add dom_audioagent.xpt into package-manifest.in. r=roc
2013-01-17 16:18:22 +08:00
Andrea Marchesini
c881379fed
Bug 830672 - audio-channel-changed is properly when an audio channel is visible, r=mchen
2013-01-16 14:38:51 +01:00
Andrea Marchesini
84609c4505
Bug 829561 - AudioChannelService needs some unit test, r=mchen
2013-01-16 14:34:07 +01:00
Andrea Marchesini
9c07d6fda8
Bug 828200 - Any audio channel should play when visible. r=mchen
2013-01-16 14:29:57 +01:00
Andrea Marchesini
95d3343452
Bug 830648 - AudioChannelAgent::StartPlaying() should check if already registered to AudioChannelService., r=mchen
2013-01-15 15:31:19 +01:00
Andrea Marchesini
852f5abcdc
Bug 829309 - Assertion re-entering a hashtable in nsAudioChannelService, r=mrbkap
2013-01-10 23:56:20 +01:00
Andrea Marchesini
1a0051392c
Bug 827773 - audio-channel-changed should contain 'none' instead 'default' when nothing is playing, r=sicking
2013-01-09 08:20:34 +01:00
Andrea Marchesini
f78b7dc440
Bug 825674 - Installed apps do not get affected by the hardware volume control, r=sicking
2013-01-09 08:18:16 +01:00