Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3515)

Unified Diff: chrome/browser/android/banners/app_banner_manager.h

Issue 871103004: Allow installing apps via the AppBannerInfoBar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pointers
Patch Set: Fix compile Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/banners/app_banner_manager.h
diff --git a/chrome/browser/android/banners/app_banner_manager.h b/chrome/browser/android/banners/app_banner_manager.h
index 736d9fa1f6ed64538a9de23216163f2696390916..ca616fa5590fbe69bb8145243b1a5f646bb54e3d 100644
--- a/chrome/browser/android/banners/app_banner_manager.h
+++ b/chrome/browser/android/banners/app_banner_manager.h
@@ -94,6 +94,17 @@ class AppBannerManager : public chrome::BitmapFetcherDelegate,
jstring japp_package,
jstring jicon_url);
+ // Called when the installation Intent has been handled and focus has been
+ // returned to Chrome.
+ void OnInstallIntentReturned(JNIEnv* env,
+ jobject obj,
+ jboolean jis_installing);
+
+ // Called when the InstallerDelegate task has finished.
+ void OnInstallFinished(JNIEnv* env,
+ jobject obj,
+ jboolean success);
+
// Fetches the icon at the given URL asynchronously.
// Returns |false| if this couldn't be kicked off.
bool FetchIcon(const GURL& image_url);
@@ -103,6 +114,9 @@ class AppBannerManager : public chrome::BitmapFetcherDelegate,
static void InstallManifestApp(const content::Manifest& manifest,
const SkBitmap& icon);
+ // Called when the AppBannerInfoBar's button needs to be updated.
+ void UpdateInstallState(JNIEnv* env, jobject obj);
+
// WebContentsObserver overrides.
void DidNavigateMainFrame(
const content::LoadCommittedDetails& details,
@@ -117,6 +131,7 @@ class AppBannerManager : public chrome::BitmapFetcherDelegate,
// AppBannerInfoBarDelegate::AppDelegate overrides.
void Block() const override;
bool OnButtonClicked() const override;
+ bool OnLinkClicked() const override;
void OnInfoBarDestroyed() override;
base::string16 GetTitle() const override;
gfx::Image GetIcon() const override;
« no previous file with comments | « chrome/browser/android/banners/app_banner_infobar_delegate.cc ('k') | chrome/browser/android/banners/app_banner_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698