Bug 1234127: Change |BluetoothAdapter.pairingReqs| as a nullable object; r=btian, r=mrbkap
authorBruce Sun <brsun@mozilla.com>
Mon, 21 Dec 2015 16:48:47 +0800
changeset 317704 e61c31bf49237a13b7ccf0b7f59e06112009bb38
parent 317703 d366e708162d156afe5d6933f042dd4cdf468ec2
child 317705 3c5e7567281ff6d6fe43726bd65923165458abc4
push id8746
push userananuti@gmail.com
push dateSun, 27 Dec 2015 23:03:33 +0000
reviewersbtian, mrbkap
bugs1234127
milestone46.0a1
Bug 1234127: Change |BluetoothAdapter.pairingReqs| as a nullable object; r=btian, r=mrbkap
dom/bluetooth/common/webapi/BluetoothAdapter.h
dom/webidl/BluetoothAdapter.webidl
--- a/dom/bluetooth/common/webapi/BluetoothAdapter.h
+++ b/dom/bluetooth/common/webapi/BluetoothAdapter.h
@@ -70,17 +70,17 @@ public:
   }
 
   bool
   Discoverable() const
   {
     return mDiscoverable;
   }
 
-  BluetoothPairingListener* PairingReqs() const
+  BluetoothPairingListener* GetPairingReqs() const
   {
     return mPairingReqs;
   }
 
   BluetoothGattServer* GetGattServer();
 
   /****************************************************************************
    * Event Handlers
--- a/dom/webidl/BluetoothAdapter.webidl
+++ b/dom/webidl/BluetoothAdapter.webidl
@@ -38,17 +38,17 @@ interface BluetoothAdapter : EventTarget
   [AvailableIn=CertifiedApps]
   readonly attribute DOMString              address;
   readonly attribute DOMString              name;
   readonly attribute boolean                discoverable;
   readonly attribute boolean                discovering;
   readonly attribute BluetoothGattServer?   gattServer;
 
   [AvailableIn=CertifiedApps]
-  readonly attribute BluetoothPairingListener pairingReqs;
+  readonly attribute BluetoothPairingListener? pairingReqs;
 
   // Fired when attribute(s) of BluetoothAdapter changed
            attribute EventHandler   onattributechanged;
 
   // Fired when a remote device gets paired with the adapter
            attribute EventHandler   ondevicepaired;
 
   // Fired when a remote device gets unpaired from the adapter