| 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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module nfc; | 6 module nfc; |
| 7 | 7 |
| 8 struct NfcData { | 8 struct NfcData { |
| 9 array<uint8>? data; | 9 array<uint8>? data; |
| 10 }; | 10 }; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 => (bool success); | 34 => (bool success); |
| 35 | 35 |
| 36 // Registers an app to receive nfc messages. Upon receiving an nfc message | 36 // Registers an app to receive nfc messages. Upon receiving an nfc message |
| 37 // the app will be connected to. If the app exposes a NfcReceiver interface | 37 // the app will be connected to. If the app exposes a NfcReceiver interface |
| 38 // it will be called with the message received. | 38 // it will be called with the message received. |
| 39 Register(); | 39 Register(); |
| 40 | 40 |
| 41 // Unregisters an app previously registered via |Register()|. | 41 // Unregisters an app previously registered via |Register()|. |
| 42 Unregister(); | 42 Unregister(); |
| 43 }; | 43 }; |
| OLD | NEW |