Allow installing apps via the AppBannerInfoBar
commit3791e101d07edca21342c643f3b28342cb54e524
authordfalcantara <dfalcantara@chromium.org>
Sat, 7 Feb 2015 04:05:10 +0000 (6 20:05 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 7 Feb 2015 04:05:31 +0000 (7 04:05 +0000)
tree333194e53018f638ab191da6d70ecc1bf24cc40e
parent451a78023845ed384550fd81df2e8ef8f22d4391
Allow installing apps via the AppBannerInfoBar

* Button cycles between "Install", "Installing", and "Open",
  depending on the installation status of the app being promoted.

* Clicking on the icon or the title of the AppBannerInfoBar should
  send the user to see details about the app that is being promoted.

* Open up access to LinkClicked() from ConfirmInfoBar.
  Piggyback on LinkClicked() to determine that the user wants to
  see the link related to the app.

* Add an ID to the icon of the infobar so it can be retrieved and
  have an OnClickListener attached to it.

* Update the status of the button when the user hops in and out
  of the Chrome application.

BUG=453170

Review URL: https://codereview.chromium.org/871103004

Cr-Commit-Position: refs/heads/master@{#315182}
chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java
chrome/android/java/src/org/chromium/chrome/browser/infobar/AppBannerInfoBar.java
chrome/browser/android/banners/app_banner_infobar_delegate.cc
chrome/browser/android/banners/app_banner_infobar_delegate.h
chrome/browser/android/banners/app_banner_manager.cc
chrome/browser/android/banners/app_banner_manager.h
chrome/browser/ui/android/infobars/app_banner_infobar.cc
chrome/browser/ui/android/infobars/app_banner_infobar.h
chrome/browser/ui/android/infobars/confirm_infobar.h