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