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

Unified Diff: chrome/browser/android/banners/app_banner_infobar_delegate.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_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 d08c211b12666197cf3247778bab9acb8eb79096..252290c8c6029b09dc67e8ed04a1bbf6443f94a1 100644
--- a/chrome/browser/android/banners/app_banner_infobar_delegate.h
+++ b/chrome/browser/android/banners/app_banner_infobar_delegate.h
@@ -33,6 +33,10 @@ class AppBannerInfoBarDelegate : public ConfirmInfoBarDelegate {
// Returns true if the infobar should be dismissed.
virtual bool OnButtonClicked() const = 0;
+ // User has clicked the link.
+ // Returns true if the infobar should be dismissed.
+ virtual bool OnLinkClicked() const = 0;
+
// Called when the infobar has been destroyed.
virtual void OnInfoBarDestroyed() = 0;
@@ -67,6 +71,7 @@ class AppBannerInfoBarDelegate : public ConfirmInfoBarDelegate {
base::string16 GetMessageText() const override;
int GetButtons() const override;
bool Accept() override;
+ bool LinkClicked(WindowOpenDisposition disposition) override;
private:
explicit AppBannerInfoBarDelegate(AppDelegate* delegate);

Powered by Google App Engine
This is Rietveld 408576698