diff options
author | yusufo <yusufo@chromium.org> | 2015-10-27 11:19:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-27 18:20:15 +0000 |
commit | 8356eb404a31149079621a7fe95e79bea4c9fb3e (patch) | |
tree | 39346a02e4015a3684b42b4443edaa64ff48ea1d | |
parent | bc808d5d314a6dca042f94c018ca6b520fc8e787 (diff) | |
download | chromium_src-8356eb404a31149079621a7fe95e79bea4c9fb3e.zip chromium_src-8356eb404a31149079621a7fe95e79bea4c9fb3e.tar.gz chromium_src-8356eb404a31149079621a7fe95e79bea4c9fb3e.tar.bz2 |
Roll android_tools deps
Sets the build-tools version.
Renames two resources due to resource name clashes with mediarouter
resources
Adds recyclerview as a dependency to design in gn.
BUG=537270
Review URL: https://codereview.chromium.org/1419533002
Cr-Commit-Position: refs/heads/master@{#356346}
-rw-r--r-- | DEPS | 2 | ||||
-rw-r--r-- | build/android/pylib/constants/__init__.py | 2 | ||||
-rw-r--r-- | build/common.gypi | 2 | ||||
-rw-r--r-- | build/config/android/config.gni | 2 | ||||
-rw-r--r-- | build/secondary/third_party/android_tools/BUILD.gn | 1 | ||||
-rw-r--r-- | chrome/android/java/res/drawable-hdpi/ic_collapsed.png (renamed from chrome/android/java/res/drawable-hdpi/ic_collapse.png) | bin | 218 -> 218 bytes | |||
-rw-r--r-- | chrome/android/java/res/drawable-hdpi/ic_expanded.png (renamed from chrome/android/java/res/drawable-hdpi/ic_expand.png) | bin | 219 -> 219 bytes | |||
-rw-r--r-- | chrome/android/java/res/drawable-mdpi/ic_collapsed.png (renamed from chrome/android/java/res/drawable-mdpi/ic_collapse.png) | bin | 130 -> 130 bytes | |||
-rw-r--r-- | chrome/android/java/res/drawable-mdpi/ic_expanded.png (renamed from chrome/android/java/res/drawable-mdpi/ic_expand.png) | bin | 128 -> 128 bytes | |||
-rw-r--r-- | chrome/android/java/res/drawable-xhdpi/ic_collapsed.png (renamed from chrome/android/java/res/drawable-xhdpi/ic_collapse.png) | bin | 176 -> 176 bytes | |||
-rw-r--r-- | chrome/android/java/res/drawable-xhdpi/ic_expanded.png (renamed from chrome/android/java/res/drawable-xhdpi/ic_expand.png) | bin | 179 -> 179 bytes | |||
-rw-r--r-- | chrome/android/java/res/drawable-xxhdpi/ic_collapsed.png (renamed from chrome/android/java/res/drawable-xxhdpi/ic_collapse.png) | bin | 204 -> 204 bytes | |||
-rw-r--r-- | chrome/android/java/res/drawable-xxhdpi/ic_expanded.png (renamed from chrome/android/java/res/drawable-xxhdpi/ic_expand.png) | bin | 206 -> 206 bytes | |||
-rw-r--r-- | chrome/android/java/res/drawable-xxxhdpi/ic_collapsed.png (renamed from chrome/android/java/res/drawable-xxxhdpi/ic_collapse.png) | bin | 263 -> 263 bytes | |||
-rw-r--r-- | chrome/android/java/res/drawable-xxxhdpi/ic_expanded.png (renamed from chrome/android/java/res/drawable-xxxhdpi/ic_expand.png) | bin | 255 -> 255 bytes | |||
-rw-r--r-- | chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsGroupView.java | 4 | ||||
-rw-r--r-- | chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java | 11 | ||||
-rw-r--r-- | chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java | 4 | ||||
-rw-r--r-- | chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java | 9 |
19 files changed, 23 insertions, 14 deletions
@@ -424,7 +424,7 @@ deps_os = { Var('chromium_git') + '/external/android_protobuf.git' + '@' + '999188d0dc72e97f7fe08bb756958a2cf090f4e7', 'src/third_party/android_tools': - Var('chromium_git') + '/android_tools.git' + '@' + '4238a28593b7e6178c95431f91ca8c24e45fa7eb', + Var('chromium_git') + '/android_tools.git' + '@' + '54492f99c84cab0826a8e656efeb33a1b1bf5a04', 'src/third_party/apache-mime4j': Var('chromium_git') + '/chromium/deps/apache-mime4j.git' + '@' + '28cb1108bff4b6cf0a2e86ff58b3d025934ebe3a', diff --git a/build/android/pylib/constants/__init__.py b/build/android/pylib/constants/__init__.py index 6be2efb..0b61403 100644 --- a/build/android/pylib/constants/__init__.py +++ b/build/android/pylib/constants/__init__.py @@ -156,7 +156,7 @@ DEVICE_PERF_OUTPUT_DIR = ( SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots') ANDROID_SDK_VERSION = version_codes.MARSHMALLOW -ANDROID_SDK_BUILD_TOOLS_VERSION = '23.0.0' +ANDROID_SDK_BUILD_TOOLS_VERSION = '23.0.1' ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 'third_party', 'android_tools', 'sdk') ANDROID_SDK_TOOLS = os.path.join(ANDROID_SDK_ROOT, diff --git a/build/common.gypi b/build/common.gypi index 5b05435..eaba251 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -1718,7 +1718,7 @@ 'android_host_arch%': '<!(uname -m)', # Android API-level of the SDK used for compilation. 'android_sdk_version%': '23', - 'android_sdk_build_tools_version%': '23.0.0', + 'android_sdk_build_tools_version%': '23.0.1', 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", 'conditions': [ diff --git a/build/config/android/config.gni b/build/config/android/config.gni index 7ca1b70..19ed535 100644 --- a/build/config/android/config.gni +++ b/build/config/android/config.gni @@ -17,7 +17,7 @@ if (is_android) { if (!defined(default_android_sdk_root)) { default_android_sdk_root = "//third_party/android_tools/sdk" default_android_sdk_version = "23" - default_android_sdk_build_tools_version = "23.0.0" + default_android_sdk_build_tools_version = "23.0.1" } if (!defined(default_android_keystore_path)) { diff --git a/build/secondary/third_party/android_tools/BUILD.gn b/build/secondary/third_party/android_tools/BUILD.gn index 4e38b93..c777fbd 100644 --- a/build/secondary/third_party/android_tools/BUILD.gn +++ b/build/secondary/third_party/android_tools/BUILD.gn @@ -33,6 +33,7 @@ android_resources("android_support_design_resources") { resource_dirs = [ "$android_sdk_root/extras/android/support/design/res" ] deps = [ ":android_support_v7_appcompat_resources", + ":android_support_v7_recyclerview_resources", ] custom_package = "android.support.design" } diff --git a/chrome/android/java/res/drawable-hdpi/ic_collapse.png b/chrome/android/java/res/drawable-hdpi/ic_collapsed.png Binary files differindex 6a08d2a..6a08d2a 100644 --- a/chrome/android/java/res/drawable-hdpi/ic_collapse.png +++ b/chrome/android/java/res/drawable-hdpi/ic_collapsed.png diff --git a/chrome/android/java/res/drawable-hdpi/ic_expand.png b/chrome/android/java/res/drawable-hdpi/ic_expanded.png Binary files differindex d9a7dc4..d9a7dc4 100644 --- a/chrome/android/java/res/drawable-hdpi/ic_expand.png +++ b/chrome/android/java/res/drawable-hdpi/ic_expanded.png diff --git a/chrome/android/java/res/drawable-mdpi/ic_collapse.png b/chrome/android/java/res/drawable-mdpi/ic_collapsed.png Binary files differindex 94c6b77..94c6b77 100644 --- a/chrome/android/java/res/drawable-mdpi/ic_collapse.png +++ b/chrome/android/java/res/drawable-mdpi/ic_collapsed.png diff --git a/chrome/android/java/res/drawable-mdpi/ic_expand.png b/chrome/android/java/res/drawable-mdpi/ic_expanded.png Binary files differindex 386af07..386af07 100644 --- a/chrome/android/java/res/drawable-mdpi/ic_expand.png +++ b/chrome/android/java/res/drawable-mdpi/ic_expanded.png diff --git a/chrome/android/java/res/drawable-xhdpi/ic_collapse.png b/chrome/android/java/res/drawable-xhdpi/ic_collapsed.png Binary files differindex 6e35277..6e35277 100644 --- a/chrome/android/java/res/drawable-xhdpi/ic_collapse.png +++ b/chrome/android/java/res/drawable-xhdpi/ic_collapsed.png diff --git a/chrome/android/java/res/drawable-xhdpi/ic_expand.png b/chrome/android/java/res/drawable-xhdpi/ic_expanded.png Binary files differindex 95c3a27..95c3a27 100644 --- a/chrome/android/java/res/drawable-xhdpi/ic_expand.png +++ b/chrome/android/java/res/drawable-xhdpi/ic_expanded.png diff --git a/chrome/android/java/res/drawable-xxhdpi/ic_collapse.png b/chrome/android/java/res/drawable-xxhdpi/ic_collapsed.png Binary files differindex 78e8ca1..78e8ca1 100644 --- a/chrome/android/java/res/drawable-xxhdpi/ic_collapse.png +++ b/chrome/android/java/res/drawable-xxhdpi/ic_collapsed.png diff --git a/chrome/android/java/res/drawable-xxhdpi/ic_expand.png b/chrome/android/java/res/drawable-xxhdpi/ic_expanded.png Binary files differindex 5844525..5844525 100644 --- a/chrome/android/java/res/drawable-xxhdpi/ic_expand.png +++ b/chrome/android/java/res/drawable-xxhdpi/ic_expanded.png diff --git a/chrome/android/java/res/drawable-xxxhdpi/ic_collapse.png b/chrome/android/java/res/drawable-xxxhdpi/ic_collapsed.png Binary files differindex fb78a61..fb78a61 100644 --- a/chrome/android/java/res/drawable-xxxhdpi/ic_collapse.png +++ b/chrome/android/java/res/drawable-xxxhdpi/ic_collapsed.png diff --git a/chrome/android/java/res/drawable-xxxhdpi/ic_expand.png b/chrome/android/java/res/drawable-xxxhdpi/ic_expanded.png Binary files differindex 483f541..483f541 100644 --- a/chrome/android/java/res/drawable-xxxhdpi/ic_expand.png +++ b/chrome/android/java/res/drawable-xxxhdpi/ic_expanded.png diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsGroupView.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsGroupView.java index 9eb2496..9f1f26f 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsGroupView.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsGroupView.java @@ -71,9 +71,9 @@ public class RecentTabsGroupView extends RelativeLayout { // Create drawable for expand/collapse arrow. LevelListDrawable collapseIcon = new LevelListDrawable(); collapseIcon.addLevel(DRAWABLE_LEVEL_COLLAPSED, DRAWABLE_LEVEL_COLLAPSED, - TintedDrawable.constructTintedDrawable(getResources(), R.drawable.ic_expand)); + TintedDrawable.constructTintedDrawable(getResources(), R.drawable.ic_expanded)); TintedDrawable collapse = - TintedDrawable.constructTintedDrawable(getResources(), R.drawable.ic_collapse); + TintedDrawable.constructTintedDrawable(getResources(), R.drawable.ic_collapsed); collapse.setTint( ApiCompatibilityUtils.getColorStateList(getResources(), R.color.blue_mode_tint)); collapseIcon.addLevel(DRAWABLE_LEVEL_EXPANDED, DRAWABLE_LEVEL_EXPANDED, collapse); diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java index 79d7d9d..ade5d12 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java @@ -1211,10 +1211,13 @@ public class LocationBarLayout extends FrameLayout implements OnClickListener, setUrlToPageUrl(); } } - + int id = getSecurityIconResource(securityLevel, !shouldEmphasizeHttpsScheme()); // ImageView#setImageResource is no-op if given resource is the current one. - mSecurityButton.setImageResource( - getSecurityIconResource(securityLevel, !shouldEmphasizeHttpsScheme())); + if (id == 0) { + mSecurityButton.setImageDrawable(null); + } else { + mSecurityButton.setImageResource(id); + } if (mSecurityIconType == securityLevel) return; mSecurityIconType = securityLevel; @@ -1284,7 +1287,7 @@ public class LocationBarLayout extends FrameLayout implements OnClickListener, mNavigationButton.setImageResource(R.drawable.ic_omnibox_magnifier); break; case EMPTY: - mNavigationButton.setImageResource(0); + mNavigationButton.setImageDrawable(null); break; default: assert false; diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java index 32cd4e9..3942175 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java @@ -250,7 +250,7 @@ public class SingleCategoryPreferences extends PreferenceFragment // Set the title and arrow icons for the header. allowedGroup.setGroupTitle(resourceId, numAllowed); TintedDrawable icon = TintedDrawable.constructTintedDrawable(getResources(), - mAllowListExpanded ? R.drawable.ic_expand : R.drawable.ic_collapse); + mAllowListExpanded ? R.drawable.ic_expanded : R.drawable.ic_collapsed); allowedGroup.setExpanded(mAllowListExpanded); allowedGroup.setIcon(icon); } @@ -267,7 +267,7 @@ public class SingleCategoryPreferences extends PreferenceFragment // Set the title and arrow icons for the header. blockedGroup.setGroupTitle(R.string.website_settings_blocked_group_heading, numBlocked); TintedDrawable icon = TintedDrawable.constructTintedDrawable(getResources(), - mBlockListExpanded ? R.drawable.ic_expand : R.drawable.ic_collapse); + mBlockListExpanded ? R.drawable.ic_expanded : R.drawable.ic_collapsed); blockedGroup.setExpanded(mBlockListExpanded); blockedGroup.setIcon(icon); } diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java index df87a09..49b02da 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java @@ -367,9 +367,14 @@ public class CustomTabToolbar extends ToolbarLayout implements LocationBar, if (securityLevel == ConnectionSecurityLevel.NONE) { mAnimDelegate.hideSecurityButton(); } else { + int id = LocationBarLayout.getSecurityIconResource( + securityLevel, !shouldEmphasizeHttpsScheme()); // ImageView#setImageResource is no-op if given resource is the current one. - mSecurityButton.setImageResource(LocationBarLayout.getSecurityIconResource( - securityLevel, !shouldEmphasizeHttpsScheme())); + if (id == 0) { + mSecurityButton.setImageDrawable(null); + } else { + mSecurityButton.setImageResource(id); + } mAnimDelegate.showSecurityButton(); } mUrlBar.emphasizeUrl(); |