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

Issue 1237623013: Allow client app choose whether custom action button is tinted (Closed)

Created:
5 years, 5 months ago by Ian Wen
Modified:
5 years, 5 months ago
CC:
chromium-reviews, ianwen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/c771e9f647bf497c466499d74259583c8be80776 Cr-Commit-Position: refs/heads/master@{#339310}

Patch Set 1 #

Total comments: 1

Patch Set 2 : respond to aurimas's comment #

Total comments: 2

Patch Set 3 : pass drawable instead of bitmap #

Total comments: 2

Patch Set 4 : rename extra #

Total comments: 5

Patch Set 5 : rename extra #2 #

Patch Set 6 : #

Patch Set 7 : rebase #

Messages

Total messages: 28 (9 generated)
Ian Wen
aurimas@ please take a look at my change to TintedImageButton.
5 years, 5 months ago (2015-07-15 21:38:53 UTC) #2
aurimas (slooooooooow)
Could we use TintedDrawable vs regular Drawable instead? That seems like a simpler solution.
5 years, 5 months ago (2015-07-16 18:39:16 UTC) #3
Yusuf
https://chromiumcodereview.appspot.com/1237623013/diff/1/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java File chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java (right): https://chromiumcodereview.appspot.com/1237623013/diff/1/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java#newcode606 chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java:606: public void setCustomActionButtonShouldTint(boolean shouldTint) { addCustomActionButton can be used ...
5 years, 5 months ago (2015-07-16 21:01:14 UTC) #4
Ian Wen
Yusuf and Aurimas: Thanks for the great suggestions. All done.
5 years, 5 months ago (2015-07-16 22:29:37 UTC) #5
aurimas (slooooooooow)
https://chromiumcodereview.appspot.com/1237623013/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java (right): https://chromiumcodereview.appspot.com/1237623013/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java#newcode140 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java:140: getToolbarManager().addCustomActionButton(mIntentDataProvider.getActionButtonIcon(), Can we create Drawable for this button right ...
5 years, 5 months ago (2015-07-17 00:08:08 UTC) #6
Ian Wen
https://chromiumcodereview.appspot.com/1237623013/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java (right): https://chromiumcodereview.appspot.com/1237623013/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java#newcode140 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java:140: getToolbarManager().addCustomActionButton(mIntentDataProvider.getActionButtonIcon(), On 2015/07/17 00:08:08, aurimas wrote: > Can we ...
5 years, 5 months ago (2015-07-17 16:26:44 UTC) #7
Yusuf
lgtm for me after the nit, if Aurimas is happy. https://chromiumcodereview.appspot.com/1237623013/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java (right): https://chromiumcodereview.appspot.com/1237623013/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java#newcode83 ...
5 years, 5 months ago (2015-07-17 16:32:18 UTC) #8
Ian Wen
newt@chromium.org: Could you please take a look at the widget folder? XD https://chromiumcodereview.appspot.com/1237623013/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java ...
5 years, 5 months ago (2015-07-17 16:35:23 UTC) #10
aurimas (slooooooooow)
Lgtm after you update the CL description to match what actually happened in this CL.
5 years, 5 months ago (2015-07-17 16:37:17 UTC) #12
newt (away)
lgtm after comment https://chromiumcodereview.appspot.com/1237623013/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java (right): https://chromiumcodereview.appspot.com/1237623013/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java#newcode79 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java:79: * Extra boolean that specifies whether ...
5 years, 5 months ago (2015-07-17 16:46:05 UTC) #14
Ian Wen
https://chromiumcodereview.appspot.com/1237623013/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java (right): https://chromiumcodereview.appspot.com/1237623013/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java#newcode79 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java:79: * Extra boolean that specifies whether the custom action ...
5 years, 5 months ago (2015-07-17 16:55:48 UTC) #15
newt (away)
https://chromiumcodereview.appspot.com/1237623013/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java (right): https://chromiumcodereview.appspot.com/1237623013/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java#newcode79 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java:79: * Extra boolean that specifies whether the custom action ...
5 years, 5 months ago (2015-07-17 17:02:35 UTC) #16
Yusuf
https://chromiumcodereview.appspot.com/1237623013/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java (right): https://chromiumcodereview.appspot.com/1237623013/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java#newcode79 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java:79: * Extra boolean that specifies whether the custom action ...
5 years, 5 months ago (2015-07-17 17:08:52 UTC) #17
Ian Wen
https://chromiumcodereview.appspot.com/1237623013/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java (right): https://chromiumcodereview.appspot.com/1237623013/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java#newcode79 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java:79: * Extra boolean that specifies whether the custom action ...
5 years, 5 months ago (2015-07-17 17:09:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237623013/100001
5 years, 5 months ago (2015-07-17 17:11:11 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/75143)
5 years, 5 months ago (2015-07-17 17:15:02 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237623013/120001
5 years, 5 months ago (2015-07-17 18:55:16 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 5 months ago (2015-07-17 20:08:16 UTC) #27
commit-bot: I haz the power
5 years, 5 months ago (2015-07-17 20:09:12 UTC) #28
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c771e9f647bf497c466499d74259583c8be80776
Cr-Commit-Position: refs/heads/master@{#339310}

Powered by Google App Engine
This is Rietveld 408576698