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

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

Issue 896243004: Start piping Android app promos through AppBannerInfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nits 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_infobar_delegate.h
diff --git a/chrome/browser/android/banners/app_banner_infobar_delegate.h b/chrome/browser/android/banners/app_banner_infobar_delegate.h
index 5bc2e0a8ec9ccc43bb8a0ebbc69e9d39a58d8158..d08c211b12666197cf3247778bab9acb8eb79096 100644
--- a/chrome/browser/android/banners/app_banner_infobar_delegate.h
+++ b/chrome/browser/android/banners/app_banner_infobar_delegate.h
@@ -43,6 +43,13 @@ class AppBannerInfoBarDelegate : public ConfirmInfoBarDelegate {
virtual gfx::Image GetIcon() const = 0;
};
+ // Creates a banner for the current page that promotes a native app.
+ // May return nullptr if the the infobar couldn't be created.
+ static AppBannerInfoBar* CreateForNativeApp(
+ infobars::InfoBarManager* infobar_manager,
+ AppDelegate* delegate,
+ const base::android::ScopedJavaGlobalRef<jobject>& japp_data);
+
// Creates a banner for the current page that promotes a web app.
// May return nullptr if the the infobar couldn't be created.
static AppBannerInfoBar* CreateForWebApp(
« no previous file with comments | « chrome/android/java/strings/android_chrome_strings.grd ('k') | chrome/browser/android/banners/app_banner_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698