Chromium Code Reviews| Index: chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/IWebApkApi.aidl |
| diff --git a/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/IWebApkApi.aidl b/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/IWebApkApi.aidl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e63fd4df57614519b3ac757d8a447abe9a75bd4f |
| --- /dev/null |
| +++ b/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/IWebApkApi.aidl |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
|
Peter Beverloo
2016/05/19 15:59:00
nit: year++
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.webapk.lib.runtime_library; |
| + |
| +import android.app.Notification; |
| + |
| +/** |
| + * Interface for communicating between WebAPK service and Chrome. |
|
Peter Beverloo
2016/05/19 15:59:00
How frozen is this API? Does changing anything her
pkotwicz
2016/05/20 00:45:19
We store the implementation of this library in a s
|
| + */ |
| +interface IWebApkApi { |
| + // Gets the id of the icon to represent WebAPK notifications in status bar. |
| + int getSmallIconId(); |
| + |
| + // Display a notification. |
| + void displayNotification(String platformTag, int platformID, in Notification notification); |
|
Peter Beverloo
2016/05/19 15:59:00
suggestion: I'd keep these as identical as possibl
|
| + |
| + // Close a notification. |
| + void closeNotification(String platformTag, int platformID); |
| +} |