OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.chrome.browser.webapps; | 5 package org.chromium.chrome.browser.webapps; |
6 | 6 |
7 import android.support.annotation.IntDef; | 7 import android.support.annotation.IntDef; |
8 | 8 |
9 import org.chromium.base.Callback; | 9 import org.chromium.base.Callback; |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... | |
37 * @param version The version of WebAPK to install. | 37 * @param version The version of WebAPK to install. |
38 * @param title The title of the WebAPK to display during installation. | 38 * @param title The title of the WebAPK to display during installation. |
39 * @param token The token from WebAPK Minter Server. | 39 * @param token The token from WebAPK Minter Server. |
40 * @param url The start URL of the WebAPK to install. | 40 * @param url The start URL of the WebAPK to install. |
41 * @param callback The callback to invoke when the install completes, times out or fails. | 41 * @param callback The callback to invoke when the install completes, times out or fails. |
42 */ | 42 */ |
43 void installAsync(String packageName, int version, String title, String toke n, String url, | 43 void installAsync(String packageName, int version, String title, String toke n, String url, |
44 Callback<Integer> callback); | 44 Callback<Integer> callback); |
45 | 45 |
46 /** | 46 /** |
47 * Uses Google Play to update WebAPK asynchronously. | |
48 * @param packageName The package name of WebAPK to update. | |
49 * @param version The version of WebAPK to update. | |
50 * @param title The title of the WebAPK to display during update. | |
51 * @param token The token from WebAPK Minter Server. | |
52 * @param url The start URL of the WebAPK to update. | |
53 * @param callback The callback to invoke when the update completes, times o ut or fails. | |
54 */ | |
55 void updateAsync(String packageName, int version, String title, String token , String url, | |
56 Callback<Integer> callback); | |
pkotwicz
2017/03/21 16:59:39
This is already in ToT :)
Xi Han
2017/03/21 18:43:45
Oh, yes, I didn't rebase it in time. It won't be i
| |
57 /** | |
47 * Calls the callback once the installation either succeeded or failed. | 58 * Calls the callback once the installation either succeeded or failed. |
48 * @param packageName The package name of WebAPK for the installation. | 59 * @param packageName The package name of WebAPK for the installation. |
49 * @param event The result of the install. | 60 * @param event The result of the install. |
50 */ | 61 */ |
51 void onGotInstallEvent(String packageName, @InstallerPackageEvent int event) ; | 62 void onGotInstallEvent(String packageName, @InstallerPackageEvent int event) ; |
52 } | 63 } |
OLD | NEW |