Bug 970251 - Part 1: WebIDL changes. r=dimi, sr=smaug
author"allstars.chh" <allstars.chh@gmail.com>
Tue, 15 Apr 2014 11:52:27 +0800
changeset 196996 1fd7913a1b3fb06c7ccba749884184aeb34718d0
parent 196995 fee7dd3fe3e5ee928d28c6438820bec8ba0ca123
child 196997 640f5ac75700aed36d5dcdf280df0878b7a58c27
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdimi, smaug
bugs970251
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 970251 - Part 1: WebIDL changes. r=dimi, sr=smaug From 6707ba78dd2208e1ae75047dd9a986615f3c5c27 Mon Sep 17 00:00:00 2001 --- dom/webidl/MozNfc.webidl | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
dom/webidl/MozNfc.webidl
--- a/dom/webidl/MozNfc.webidl
+++ b/dom/webidl/MozNfc.webidl
@@ -20,16 +20,31 @@ interface MozNfcManager {
     * Notify that user has accepted to share nfc message on P2P UI
     */
    void notifyUserAcceptedP2P(DOMString manifestUrl);
 
    /**
     * Notify the status of sendFile operation
     */
    void notifySendFileStatus(octet status, DOMString requestId);
+
+   /**
+    * Power on the NFC hardware and start polling for NFC tags or devices.
+    */
+   DOMRequest startPoll();
+
+   /**
+    * Stop polling for NFC tags or devices. i.e. enter low power mode.
+    */
+   DOMRequest stopPoll();
+
+   /**
+    * Power off the NFC hardware.
+    */
+   DOMRequest powerOff();
 };
 
 [JSImplementation="@mozilla.org/navigatorNfc;1",
  NavigatorProperty="mozNfc",
  Func="Navigator::HasNfcSupport"]
 interface MozNfc : EventTarget {
    MozNFCTag getNFCTag(DOMString sessionId);
    MozNFCPeer getNFCPeer(DOMString sessionId);