OLD | NEW |
| (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 package org.chromium.webapk.lib.runtime_library; | |
6 | |
7 import android.app.Notification; | |
8 import android.app.PendingIntent; | |
9 import android.content.Intent; | |
10 import android.os.Bundle; | |
11 | |
12 /** | |
13 * Interface for communicating between the minted helper service and Chrome. | |
14 */ | |
15 interface IWebApkApi { | |
16 // Given an Intent, creates a PendingIntent which is broadcasted by the WebA
PK. | |
17 PendingIntent getBroadcastPendingIntent(int requestCode, in Intent intent, i
nt flags); | |
18 | |
19 // Get the small icon id for displaying a notification. | |
20 int getSmallIconId(); | |
21 | |
22 // Display a notification. | |
23 void displayNotification(String platformTag, int platformID, in Notification
notification); | |
24 | |
25 // Close a notification. | |
26 void closeNotification(String platformTag, int platformID); | |
27 } | |
OLD | NEW |