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

Unified Diff: chrome/browser/ui/android/infobars/app_banner_infobar.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/ui/android/infobars/app_banner_infobar.h
diff --git a/chrome/browser/ui/android/infobars/app_banner_infobar.h b/chrome/browser/ui/android/infobars/app_banner_infobar.h
index 51c76a825165f5dbb1dd43d5e57be4a930d6f744..6845a3c9f0b42aabece8002a131ac0d73735800d 100644
--- a/chrome/browser/ui/android/infobars/app_banner_infobar.h
+++ b/chrome/browser/ui/android/infobars/app_banner_infobar.h
@@ -29,6 +29,11 @@ class AppBannerInfoBar : public ConfirmInfoBar {
~AppBannerInfoBar() override;
+ // Called when the installation state of the app may have changed.
+ // Updates the InfoBar visuals to match the new state and re-enables controls
+ // that may have been disabled.
+ void OnInstallStateChanged(int new_state);
+
private:
// InfoBarAndroid overrides.
base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
« no previous file with comments | « chrome/browser/android/banners/app_banner_manager.cc ('k') | chrome/browser/ui/android/infobars/app_banner_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698