Skip to content

Commit

Permalink
Update interfaces/web-nfc.idl and test
Browse files Browse the repository at this point in the history
Closes #26589
  • Loading branch information
stephenmcgruer committed Nov 20, 2020
1 parent 16d2dd4 commit c5ebc32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 3 additions & 9 deletions interfaces/web-nfc.idl
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,16 @@ dictionary NDEFRecordInit {

typedef (DOMString or BufferSource or NDEFMessageInit) NDEFMessageSource;

[SecureContext, Exposed=Window]
interface NDEFWriter {
constructor();

Promise<undefined> write(NDEFMessageSource message,
optional NDEFWriteOptions options={});
};

[SecureContext, Exposed=Window]
interface NDEFReader : EventTarget {
constructor();

attribute EventHandler onerror;
attribute EventHandler onreading;
attribute EventHandler onreadingerror;

Promise<undefined> scan(optional NDEFScanOptions options={});
Promise<undefined> write(NDEFMessageSource message,
optional NDEFWriteOptions options={});
};

[SecureContext, Exposed=Window]
Expand Down
1 change: 0 additions & 1 deletion web-nfc/idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ idl_test(
['html', 'dom', 'WebIDL'],
idl_array => {
idl_array.add_objects({
NDEFWriter: ['new NDEFWriter();'],
NDEFReader: ['new NDEFReader();'],
NDEFRecord: [`new NDEFRecord(${JSON.stringify(record)});`],
NDEFMessage: [`new NDEFMessage(${JSON.stringify(message)});`],
Expand Down

0 comments on commit c5ebc32

Please sign in to comment.