Commit Graph

523 Commits

Author SHA1 Message Date
Szu-Yu Chen [:aknow]
7c0dd8c2fa Bug 743150 - Part 2: Add remoteheld/remoteresumed event (dom). r=bent, r=gyeh 2013-08-05 16:28:14 -04:00
Ben Tian
19957048d4 Bug 900887 - Handle state change: CALL_STATE_DIALING -> CALL_STATE_CONNECTED, r=echou 2013-08-05 11:00:04 +08:00
Ed Morley
05a37c3a43 Merge mozilla-central and b2g-inbound 2013-08-02 13:51:22 +01:00
Ed Morley
0dd52ba0e1 Merge latest green b2g-inbound changeset and mozilla-central 2013-08-02 13:30:22 +01:00
Thomas Zimmermann
04d9ff53ef Bug 892933: Replace AddServiceRecordsInternal by non-blocking implementation, r=echou,gyeh
AddServiceRecordsInternal blocks the Bluetooth command thread while
waiting for a DBus reply. This patch replaces the function by a DBus
reply handler that runs asynchrounously on the DBus thread.
2013-08-02 09:30:55 +02:00
Mike Hommey
ca80cd82ad Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8 2013-08-02 10:29:05 +09:00
Gina Yeh
93e89304fd Bug 853221 - Patch 2: Distribute events from BluetoothAdapter, r=smaug, sr=mrbkap 2013-08-02 18:33:15 +08:00
Gina Yeh
6cc84fd8fb Bug 853221 - Patch 1: Distribute connection/pair status to BluetoothAdapter, r=echou 2013-08-02 18:32:57 +08:00
Eric Chou
6761fdbc75 Bug 892392 - Execute BluetoothService::StartInternal() at startup, r=gyeh 2013-08-02 11:58:01 +08:00
Eric Chou
6fa92a1082 Bug 899711 - Notify file change after receiving an one-packet-size file, r=gyeh 2013-08-01 12:32:18 +08:00
Kyle Machulis
cc370cb03b Bug 899734: Fix bluetooth compile errors on desktop b2g; r=echou 2013-07-31 18:10:16 -07:00
Gina Yeh
00e2541d05 Bug 899949 - Failed to disconnect A2DP when turning off Bluetooth, r=echou 2013-07-31 19:06:50 +08:00
Ehsan Akhgari
085494b95d 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
Gina Yeh
d9bace10b7 Bug 842934 - Patch 1: Add topic for hfp status changed and notify observers with device address, r=echou 2013-07-30 17:34:56 +08:00
Ms2ger
b54682c23a Bug 897484 - followup: root newly added code to fix bustage on a CLOSED TREE. 2013-07-29 18:27:04 +02:00
Ed Morley
d3b3b0d686 Merge mozilla-central and inbound 2013-07-29 15:42:41 +01:00
Gina Yeh
d0281d4eed Bug 842948 - Patch 6: Implement dictionaries, r=echou 2013-07-29 17:32:35 +08:00
Gina Yeh
cf8759bbd7 Bug 842948 - Patch 5: Implement UpdateNotification, r=echou 2013-07-29 17:32:34 +08:00
Gina Yeh
d06efcb8d9 Bug 842948 - Patch 4: Handle signal "GetPlayStatus", r=echou 2013-07-29 17:32:34 +08:00
Gina Yeh
de14e1f9fe Bug 842948 - Patch 3: Cache AVRCP data in BluetoothA2dpManager, r=echou 2013-07-29 17:32:34 +08:00
Gina Yeh
e9527b054f Bug 842948 - Patch 2: Handle control signal "PropertyChanged" and add IsConnected() in BluetoothProfileManagerBase, r=echou 2013-07-29 17:32:34 +08:00
Gina Yeh
d368c340e4 Bug 842948 - Patch 1: Implement API for AVRCP 1.3, r=echou, sr=mrbkap 2013-07-29 17:32:34 +08:00
Jon Coppeard
fd4d274d46 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
ac22f0d0ad Backed out changeset ae8d72538dee (bug 897484) for b2g bustage 2013-07-26 12:34:25 +02:00
Jon Coppeard
fed22eac4c Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug 2013-07-26 10:00:38 +01:00
Jon Coppeard
4258a261db Bug 896949 - JS_SetProperty APIs should take an immutable parameter r=waldo r=bz 2013-07-26 10:00:38 +01:00
Ryan VanderMeulen
20fabd9691 Merge m-c to inbound. 2013-07-25 21:59:02 -04:00
Alive Kuo
bac4a808ba Bug 887650 - Append extra information about activity caller in system message. r=gene 2013-07-25 13:18:24 -04:00
Jon Coppeard
bd28d643f7 Bug 896540 - GC: Convert JS_SetProperty* to take MutableHandleValue - browser changes r=bz 2013-07-25 13:57:00 +01:00
Thomas Zimmermann
fbd84b6694 Bug 891866: Implement RegisterAgent with asyncronous functions, r=echou,gyeh
RegisterAgent currently blocks the Bluetooth command thread while
waiting for DBus. This patch moves the result-handling code into a
DBusReplyHandler, and executes an asyncronous DBus call.

--HG--
extra : rebase_source : 42a5dcc5425555040c7e10b7e68f44da3e39bfc5
2013-07-22 13:30:47 +02:00
Thomas Zimmermann
a0003d5854 Bug 891866: Support nsRefPtr<RawDBusConnection>, r=qdot
Instances of RawDBusConnection can now be contained in nsRefPtr. This
allows to share the DBus connection among multiple threads.

--HG--
extra : rebase_source : fb24472b3b55e77abc7354f17ef679661f62b7fb
2013-07-22 13:30:22 +02:00
Thomas Zimmermann
25402e86aa Bug 891866: Cleanup RegisterLocalAgent, r=echou,gyeh
RegisterLocalAgent builds is own DBus message. This patch cleans up
the function to use the utility function from DBusUtils.

--HG--
extra : rebase_source : d8615285f75f8bb444accc9aa371df43a3371a4a
2013-07-22 13:29:25 +02:00
Ben Tian
2db6013653 Bug 895325 - [Bluetooth][Cleanup] Revise BluetoothOppManager constructor and BluetoothOppManager::Get(), r=echou 2013-07-19 10:27:07 +08:00
Ryan VanderMeulen
ba97a4cddb Merge m-c to inbound on a CLOSED TREE. 2013-07-18 14:53:05 -04:00
Eric Chou
fbe1841d7a Bug 893546 - Fix memory leakage in BluetoothHfpManager.cpp, r=mrbkap 2013-07-18 10:52:20 +08:00
Ben Tian
cacf9b5e18 Bug 891210 - [Bluetooth][OPP cleanup] Move file-transfer related static variables into class BluetoothOppManager, r=echou 2013-07-15 12:10:32 +08:00
Boris Zbarsky
6be6fb3ca2 Bug 893004 part 2. Remove various no-longer-used XPCOM bits from Navigator, except the ones from nsIDOMNavigator. r=smaug
--HG--
rename : dom/network/interfaces/nsIDOMNavigatorNetwork.idl => dom/network/interfaces/nsIMozNavigatorNetwork.idl
2013-07-17 23:23:52 -04:00
Brian O'Keefe
f98dd45a72 Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps 2013-07-04 08:28:43 -04:00
Boris Zbarsky
735f5c683b Bug 838146 part 6. Implement gamepad, bluetooth, time, audiochannel WebIDL APIs on Navigator. r=smaug, sr=sicking 2013-07-12 10:36:32 -04:00
Szu-Yu Chen [:aknow]
7513aaacb2 Bug 881142 - Part 3: Remove call state busy (bluetooth dom). r=gyeh 2013-07-15 08:54:07 -04:00
Ben Tian
0f16be041e Bug 891202 - [Bluetooth][OPP cleanup] Unify obex data sending function, r=echou 2013-07-10 11:20:13 +08:00
Ryan VanderMeulen
47891859c5 Merge m-c to birch. 2013-07-12 13:31:17 -04:00
Trevor Saunders
238525e2d8 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
Edgar Chen
89ad48cad4 Bug 875721 - Part 4: Bluetooth changes for iccInfo. r=echou 2013-05-30 18:56:11 +08:00
Thomas Zimmermann
10fd8b347c Bug 891276: Cleanup *ServiceRecords functions, r=echou
AddServiceRecords and RemoveServiceRecords are unused. This patch
removes any related code.
2013-07-11 09:58:26 +02:00
Thomas Zimmermann
531f010a48 Bug 884840: Reimplement GetServiceChannel without Bluetooth command thread, r=echou
The method BluetoothDBusService::GetServiceChannel currently blocks the
Bluetooth command thread while waiting for a DBus message, before it
dispatches a runnable to the main thread.

With this patch, the DBus message is processed asyncronously, and the
runnable gets dispatched from the DBus reply handler.

--HG--
extra : rebase_source : 24519b7dd8d59fcbbf78436092610c8db195f6a2
2013-07-09 09:56:14 +02:00
David Zbarsky
7c1e9e4d0f Bug 885804: Renaming in content/dom r=jlebar 2013-07-08 11:48:39 -04:00
Phil Ringnalda
8420eeef3d Merge birch and inbound to central 2013-07-04 18:11:28 -07:00
Eric Chou
6225eb2d20 Bug 884253 - Define new error messages for Bluetooth profiles, r=gyeh 2013-07-04 17:45:06 +08:00
Mike Shal
2f5d43999f Bug 868536 - Move ipdl.mk files to moz.build; r=gps
Author: Mike Shal <mshal@mozilla.com>
2013-07-01 09:56:28 -04:00