Commit Graph

175 Commits

Author SHA1 Message Date
Mike Hommey
f1cf3b4238 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Brian O'Keefe
4f68eb9b02 Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Ms2ger
ced3dd8b1c Bug 883284 - Part c: Move LIBXUL_LIBRARY into moz.build (d-e); r=mshal 2013-08-22 08:56:00 +02:00
Ms2ger
4d968c40e1 Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps 2013-08-22 08:55:59 +02:00
Brian O'Keefe
3a92f0ae7c Bug 896177 - Remove useless config.mk includes; r=gps 2013-07-17 16:06:53 -04:00
Ehsan Akhgari
5ee21d6d3f 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
8278efd42a 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
8c89deb65b Backed out changeset ae8d72538dee (bug 897484) for b2g bustage 2013-07-26 12:34:25 +02:00
Jon Coppeard
fc9b509d4f 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
fb6790e6d8 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
0450dbca57 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
a2b1403eb0 Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps 2013-07-04 08:28:43 -04:00
Mike Hommey
ffd522d5c2 Bug 892904 - Remove useless includes of config.mk. r=gps 2013-07-15 18:48:40 +09:00
Trevor Saunders
82e5558b37 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
6c46d0633d 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
75c400493b 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
994cfe0b6b 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
f67d3552ce 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
9ea52325ff 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
9fca67736e 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
063d6e4172 Bug 859020 - Remove the MSVC exemption for FAIL_ON_WARNINGS in dom. r=bz 2013-04-21 05:36:43 +09:00
Mike Shal
77cdb6567d Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
Justin Lebar
e78770c96b 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
5aa83c3e11 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693 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
a59d40f143 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
653dcd8b8b Bug 853454 - Fix non-normal audio channel visibility state error. r=baku 2013-03-27 12:04:32 +08:00
Mike Shal
9680b82df6 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Ms2ger
c4380f4933 Bug 845374 - Part r: Stop including nsTArray.h in nsReadableUtils.h; r=khuey 2013-03-17 08:55:16 +01:00
Mike Shal
e9f8bc0fbd Bug 818246 - Part 7: Move XPIDL_MODULE to moz.build; rs=gps 2013-03-11 22:00:00 -07:00
Gregory Szorc
7bb3ee056b 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
dea097af0c Bug 845871 - Strong ASSERT for removing elements in AudioChannelService. a=jlebar 2013-02-28 14:22:59 -05:00
Gregory Szorc
f0b7e3972c 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
faf262c4ee 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
e2966f651c Bug 784841 - Part 18k: Convert /dom; f=Ms2ger rs=khuey 2013-02-25 12:47:20 -08:00
Marco Chen
39952e6c0f Bug 836655 - Modify unit test for adapting change in this bug. r=baku 2013-02-25 16:55:24 +08:00
Marco Chen
5ee039184b 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
582d760397 Backed out changesets b093ba2c7ff9 and 0acbd06d48a9 (Bug 836655) for failing unit test. 2013-02-18 01:15:24 -08:00
L. David Baron
acdcd2ef36 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
6b35baef9c 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
8212b675ca Bug 843417 - LMK will never kill the Musicplayer app. r=mchen, f=jlebar 2013-02-26 12:02:32 -05:00
Justin Lebar
5c2d14d8ce 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
0d47239796 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
46d7aa3b76 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
bee453d9cc 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
87c9b97bcb Backed out changeset a0c4559f5d2e for cpp unitest orange 2013-01-25 13:36:17 +00:00
Andrea Marchesini
7f21c21350 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
5827e2831c Bug 830611 - [Audio] Add dom_audioagent.xpt into package-manifest.in. r=roc 2013-01-17 16:18:22 +08:00
Andrea Marchesini
2420684ea6 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
981a227f1d Bug 829561 - AudioChannelService needs some unit test, r=mchen 2013-01-16 14:34:07 +01:00
Andrea Marchesini
040265f811 Bug 828200 - Any audio channel should play when visible. r=mchen 2013-01-16 14:29:57 +01:00
Andrea Marchesini
38f303f499 Bug 830648 - AudioChannelAgent::StartPlaying() should check if already registered to AudioChannelService., r=mchen 2013-01-15 15:31:19 +01:00
Andrea Marchesini
0259327257 Bug 829309 - Assertion re-entering a hashtable in nsAudioChannelService, r=mrbkap 2013-01-10 23:56:20 +01:00
Andrea Marchesini
0f8cb838b4 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
2b223b56af Bug 825674 - Installed apps do not get affected by the hardware volume control, r=sicking 2013-01-09 08:18:16 +01:00
Kan-Ru Chen (陳侃如)
41defd0d01 Bug 793105 - Add a "backgroundPerceivable" class for audio-channel-content. r=jlebar,roc 2013-01-05 13:03:51 +08:00
Randy Lin
b3de1da085 Bug 825635 - Volume control stops working in FM when headset is unplugged and plugged. r=baku 2013-01-03 13:41:14 +08:00
Andrea Marchesini
39ed07af60 Bug 818708 - Content audio channels should be muted if in background when another content audio channel is playing. r=sicking 2013-01-03 17:18:43 -05:00
Masatoshi Kimura
b5e27745c8 Bug 824247 - Part 3: Disable FAIL_ON_WARNINGS on not-yet-warning-free directories on MSVC. r=ted 2013-01-03 00:56:38 +09:00
Andrea Marchesini
165dd0b752 Bug 820704 - AudioChannelService must handle children quitting unexpectedly. r=jlebar 2012-12-28 12:57:35 -05:00
Andrea Marchesini
3cf9cf8018 Bug 823784 - B2G crash: nsHTMLMediaElement::UpdateAudioChannelPlayingState r=smaug
Don't delete a smart pointer; it can result in a double-free.
2012-12-21 00:53:00 -08:00
Marco Chen
6b784f8ae1 Bug 819858 - Add AudioChannelAgent to AudioManager for telephony joining AudioChannelService. r=baku, a=blocking-basecamp 2012-12-13 09:45:10 +08:00
Marco Chen
51cd2c8a1a Bug 819275 - [Audio] The Usage of nsRefPtr for AudioChannelService is Wrong. r=roc, a=blocking-basecamp 2012-12-07 19:31:57 +08:00
Marco Chen
4de5d23b78 Bug 818824 - Fire an event when no audio channel is playing now. r=baku, a=blocking-basecamp 2012-12-07 19:46:18 +08:00
Marco Chen
3d0ed5758d Bug 815069 - Part 3: Adapt audio channel agent to nsHTMLMediaElement and AudioChannelService. r=roc, a=blocking-basecamp
[Audio] A mechanism for Gecko components without media element to join audio competing policy
2012-12-06 23:25:18 +08:00
Marco Chen
854e09e84b Bug 815069 - Part 2: AudioChannelAgent Implementation. r=roc, a=blocking-basecamp
[Audio ] mechanism for Gecko components without media element to join audio competing policy.
2012-12-06 22:29:20 +08:00
Marco Chen
f10a57bec0 Bug 815069 - Part 1: nsIAudioChannelAgent.idl r=roc, a=blocking-basecamp
[Audio ] mechanism for Gecko components without media element to join audio competing policy.
2012-12-06 15:57:00 +08:00
Marco Chen
fa2305ecd5 Bug 815322 - Phone rings on incoming call will pause audio. r=kinetik, a=blocking-basecamp
1. Add a new audio channel type called ringer.
  2. Add logic into AudioChannelService for ringer.
2012-12-06 17:11:19 +08:00
rlin@mozilla.com
07ef80f1ed Bug 815445 - Hook up telephony audio to audio channels backend r=baku 2012-12-06 18:11:06 +08:00
Chris Jones
024ba86f68 Bustage fix for bug 805333. a=bustage 2012-12-05 19:34:17 -08:00
Andrea Marchesini
1f563be898 Bug 805333, Patch 5 - mozAudioChannel for MediaElement - IPC. r=cjones a=blocking-basecamp 2012-12-05 19:01:58 -08:00
Andrea Marchesini
833ff3660a Bug 811222 - Enable system app to get currently used audio channel. r=sicking a=blocking-basecamp 2012-12-05 17:20:59 -08:00
Andrea Marchesini
5504ab46d8 Bug 805333 part 2 - MediaElement connected to AudioChannelService, r=kinetik, a=blocking-basecamp 2012-12-04 11:46:07 -08:00
Andrea Marchesini
8fc7f2c452 Bug 805333 part 1 - AudioChannelService, r=kinetik, a=blocking-basecamp 2012-12-04 11:46:07 -08:00
Marco Chen
88788c1c05 Bug 795237 - Web API for setting audio stream type. Part 2. r=kinetik, a=blocking-basecamp
Implementation on path of audio and video element
2012-11-16 11:25:26 +08:00