OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module device.nfc; | 5 // TODO(rockot): This should probably be moved to nfc.mojom. |
| 6 module device.nfc.mojom; |
6 | 7 |
7 enum NFCErrorType { | 8 enum NFCErrorType { |
8 SECURITY, | 9 SECURITY, |
9 NOT_SUPPORTED, | 10 NOT_SUPPORTED, |
10 DEVICE_DISABLED, | 11 DEVICE_DISABLED, |
11 NOT_FOUND, | 12 NOT_FOUND, |
12 INVALID_MESSAGE, | 13 INVALID_MESSAGE, |
13 OPERATION_CANCELLED, | 14 OPERATION_CANCELLED, |
14 TIMER_EXPIRED, | 15 TIMER_EXPIRED, |
15 CANNOT_CANCEL, | 16 CANNOT_CANCEL, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // Suspends all pending NFC operations. Could be used when web page | 125 // Suspends all pending NFC operations. Could be used when web page |
125 // visibility or focus is lost. | 126 // visibility or focus is lost. |
126 SuspendNFCOperations(); | 127 SuspendNFCOperations(); |
127 | 128 |
128 // Resumes all suspended NFC operations. | 129 // Resumes all suspended NFC operations. |
129 ResumeNFCOperations(); | 130 ResumeNFCOperations(); |
130 }; | 131 }; |
131 | 132 |
132 interface NFCClient { | 133 interface NFCClient { |
133 OnWatch(array<uint32> watch_ids, NFCMessage message); | 134 OnWatch(array<uint32> watch_ids, NFCMessage message); |
134 }; | 135 }; |
OLD | NEW |