Allow client app choose whether custom action button is tinted
commitc771e9f647bf497c466499d74259583c8be80776
authorianwen <ianwen@chromium.org>
Fri, 17 Jul 2015 20:08:09 +0000 (17 13:08 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 17 Jul 2015 20:08:41 +0000 (17 20:08 +0000)
treee04e1cdc0af76150288fa2cd98407fbca24727cb
parent28d32d89e5081223fab2982dc97252fd5150e721
Allow client app choose whether custom action button is tinted

addCustomActionButton()'s signature is modified to pass a
drawable instead of a bitmap, and the intent data provider
will construct a tinted drawable, if the client app chooses
to tint the button.

BUG=508946

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

Cr-Commit-Position: refs/heads/master@{#339310}
chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarLayout.java
chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
chrome/android/java/src/org/chromium/chrome/browser/widget/TintedDrawable.java