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; | |
9 import android.content.Intent; | |
10 import android.os.Bundle; | |
11 | 8 |
12 /** | 9 /** |
13 * Interface for communicating between the minted helper service and Chrome. | 10 * Interface for communicating between the minted helper service and Chrome. |
14 */ | 11 */ |
15 interface IWebApkApi { | 12 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. | 13 // Get the small icon id for displaying a notification. |
20 int getSmallIconId(); | 14 int getSmallIconId(); |
21 | 15 |
22 // Display a notification. | 16 // Display a notification. |
23 void displayNotification(String platformTag, int platformID, in Notification
notification); | 17 void displayNotification(String platformTag, int platformID, in Notification
notification); |
24 | 18 |
25 // Close a notification. | 19 // Close a notification. |
26 void closeNotification(String platformTag, int platformID); | 20 void closeNotification(String platformTag, int platformID); |
27 } | 21 } |
OLD | NEW |