Index: modules/nfc/MessageCallback.idl |
diff --git a/modules/background_sync/PeriodicSyncEventInit.idl b/modules/nfc/MessageCallback.idl |
similarity index 54% |
copy from modules/background_sync/PeriodicSyncEventInit.idl |
copy to modules/nfc/MessageCallback.idl |
index 60d2b728b8a9eea69f187c8524845b5210a8c763..edbffe5cb76aeab4711319fdc38acfd98477b80c 100644 |
--- a/modules/background_sync/PeriodicSyncEventInit.idl |
+++ b/modules/nfc/MessageCallback.idl |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-dictionary PeriodicSyncEventInit : ExtendableEventInit { |
- required PeriodicSyncRegistration registration; |
+// https://w3c.github.io/web-nfc/#idl-def-messagecallback |
+ |
+callback interface MessageCallback { |
+ void handleMessage(NFCMessage message); |
}; |