Bumping gaia.json for 1 gaia revision(s) a=gaia-bump
[gecko.git] / dom / bluetooth2 / BluetoothDiscoveryHandle.h
blobe29b12b6910bcb1e23bb5c1ec9a96d14293152c8
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_bluetooth_bluetoothdiscoveryhandle_h
8 #define mozilla_dom_bluetooth_bluetoothdiscoveryhandle_h
10 #include "BluetoothCommon.h"
11 #include "mozilla/Attributes.h"
12 #include "mozilla/dom/bluetooth/BluetoothTypes.h"
13 #include "mozilla/DOMEventTargetHelper.h"
14 #include "nsISupportsImpl.h"
16 BEGIN_BLUETOOTH_NAMESPACE
18 class BluetoothDevice;
19 class BluetoothValue;
21 class BluetoothDiscoveryHandle MOZ_FINAL : public DOMEventTargetHelper
23 public:
24 NS_DECL_ISUPPORTS_INHERITED
26 static already_AddRefed<BluetoothDiscoveryHandle>
27 Create(nsPIDOMWindow* aWindow);
29 void DispatchDeviceEvent(BluetoothDevice* aDevice);
31 IMPL_EVENT_HANDLER(devicefound);
33 virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE;
35 private:
36 BluetoothDiscoveryHandle(nsPIDOMWindow* aWindow);
37 ~BluetoothDiscoveryHandle();
40 END_BLUETOOTH_NAMESPACE
42 #endif // mozilla_dom_bluetooth_bluetoothdiscoveryhandle_h