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

Side by Side Diff: services/android/intent.mojom

Issue 1061313003: Introduce intent manager. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 5 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 [JavaPackage="org.chromium.mojo.intent"]
6 module intent;
7
8 // Service to interract with the android's intents.
ppi 2015/04/08 10:42:49 s/the android's intents/android intents/
ppi 2015/04/08 10:42:49 s/interract/interact/
qsr 2015/04/08 11:03:23 Done.
qsr 2015/04/08 11:03:23 Done.
9 interface IntentManager {
ppi 2015/04/08 10:42:49 wdyt about calling this IntentReceiverManager and
qsr 2015/04/08 11:03:23 Done.
10 // This methods takes an |IntentReceiver| and return a serialized intent.
ppi 2015/04/08 10:42:49 s/return/returns/
ppi 2015/04/08 10:42:49 s/methods/method/
qsr 2015/04/08 11:03:23 Done.
qsr 2015/04/08 11:03:23 Done.
11 // The serialized intent can be deserialized using an android parcel. The
12 // caller can then transform this intent into a PendingIntent using
13 // |PendingIntent#getService| and send it to another android application.
14 // Whenever the pending intent is executed, the receiver will be called with
15 // the content of the received intent. To be noted: this will fail if the
16 // received intent is active (contains either a Binder, or a file
ppi 2015/04/08 10:42:49 drop the comma after Binder
qsr 2015/04/08 11:03:23 Done.
17 // descriptor).
18 RegisterReceiver(IntentReceiver receiver) => (array<uint8> intent);
19 };
20
21 // Receiver interface, to be used with |IntentManager.RegisterReceiver|.
22 interface IntentReceiver {
23 OnIntent(array<uint8> intent);
24 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698