Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: mojo/services/nfc/public/interfaces/nfc.mojom

Issue 1394303004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 3). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_2-x-no_public_1
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/nfc/public/interfaces/BUILD.gn ('k') | mojo/services/notifications/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/nfc/public/interfaces/nfc.mojom
diff --git a/mojo/services/nfc/public/interfaces/nfc.mojom b/mojo/services/nfc/public/interfaces/nfc.mojom
deleted file mode 100644
index c91c15bbb197c22d2419305f6aa8a62bbcc7a4c6..0000000000000000000000000000000000000000
--- a/mojo/services/nfc/public/interfaces/nfc.mojom
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-[DartPackage="mojo_services"]
-module nfc;
-
-struct NfcData {
- array<uint8>? data;
-};
-
-// Represents an in-progress nfc transmission.
-interface NfcTransmission {
- // Cancels the nfc transmission.
- Cancel();
-};
-
-// NfcReceivers can be registered with Nfc to receive nfc messages.
-interface NfcReceiver {
- OnReceivedNfcData(NfcData nfc_data);
-};
-
-// Nfc allows data to be sent to and received from other MojoShells on Android.
-// Received data is passed to all registered NfcReceivers.
-interface Nfc {
- // Puts the MojoShell in a state where it will transmit |nfc_data| to the next
- // Android device to connect to this one via NFC. This transmission state
- // will remain active until cancelled via |transmission| or a |success|
- // response is received indicating whether the transmission was successful
- // (true) or not (false). If the Android device transmitted to does not have
- // MojoShell installed it will be directed to the Play Store to download
- // MojoShell.
- TransmitOnNextConnection(NfcData nfc_data, NfcTransmission&? transmission)
- => (bool success);
-
- // Registers an app to receive nfc messages. Upon receiving an nfc message
- // the app will be connected to. If the app exposes a NfcReceiver interface
- // it will be called with the message received.
- Register();
-
- // Unregisters an app previously registered via |Register()|.
- Unregister();
-};
« no previous file with comments | « mojo/services/nfc/public/interfaces/BUILD.gn ('k') | mojo/services/notifications/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698