|
Clean up tinted ImageView subclasses
* Introduce an ImageViewTinter that can be used by the TintedImageView
and the TintedImageButton classes. They're basically the same thing
already, but because Java doesn't support extending multiple classes
we're stuck in this hole.
* Introduce basic tests for the ImageViewTinter users.
* Make the AppMenuItemIcon a TintedImageButton so that it can be tinted
if needed. Also make it implement Checkable because that's basically
what it's already doing.
* The share icon was implemented in a different way than RDS. Make RDS
follow what the share icon does because it's probably easier to maintain
in the end, meaning that it now uses a AppMenuItemIcon.
* Make the RDS checkbox be tinted appropriately gray or blue to match the
top icon row. This is necessary because Android themeing is inconsistent
across KK and MM: the unchecked checkbox is straight black on KK but gray
on MM, while the checked checkbox is straight black on KK and blue on MM.
BUG= 571445
Review-Url: https://codereview.chromium.org/2951133003
Cr-Commit-Position: refs/heads/master@{#482063}
Committed: https://chromium.googlesource.com/chromium/src/+/65bc4a46d509009cc15dc2ae8e316a1e215fc50b
Total comments: 10
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+446 lines, -133 lines) |
Patch |
|
A |
chrome/android/java/res/color/checkbox_tint.xml
|
View
|
1
2
3
4
5
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/res/layout/menu_item.xml
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/android/java/res/layout/title_button_menu_item.xml
|
View
|
1
|
2 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/res/layout/update_menu_item.xml
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/android/java/res/menu/custom_tabs_menu.xml
|
View
|
|
1 chunk |
+11 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/res/menu/main_menu.xml
|
View
|
|
1 chunk |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java
|
View
|
1
2
3
4
|
4 chunks |
+39 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuItemIcon.java
|
View
|
|
3 chunks |
+17 lines, -14 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java
|
View
|
1
|
2 chunks |
+18 lines, -12 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomButtonParams.java
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java
|
View
|
|
1 chunk |
+2 lines, -6 lines |
0 comments
|
Download
|
|
A |
chrome/android/java/src/org/chromium/chrome/browser/widget/ImageViewTinter.java
|
View
|
1
|
1 chunk |
+91 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/widget/TintedDrawable.java
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/widget/TintedImageButton.java
|
View
|
|
1 chunk |
+17 lines, -35 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/widget/TintedImageView.java
|
View
|
|
1 chunk |
+17 lines, -38 lines |
0 comments
|
Download
|
|
M |
chrome/android/java_sources.gni
|
View
|
1
2
3
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
chrome/android/javatests/src/org/chromium/chrome/browser/widget/ImageViewTinterTest.java
|
View
|
1
2
3
4
|
1 chunk |
+180 lines, -0 lines |
0 comments
|
Download
|
Total messages: 32 (22 generated)
|