Plumb the anonymize rect color to toolbar_layer from Tab#getThemeColor
commitfb46d0a352393374bf80feb5ef67fb3572481f53
authoryusufo <yusufo@chromium.org>
Wed, 26 Aug 2015 23:10:48 +0000 (26 16:10 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 26 Aug 2015 23:11:25 +0000 (26 23:11 +0000)
tree3c116426bcbfcc9086fd40e6b5523cc6f5549be8
parent82d10f697a4268dd9ae0fffd8f3dfb1fb42901e5
Plumb the anonymize rect color to toolbar_layer from Tab#getThemeColor

Makes LayoutTab aware of the textbox background color so that it can
be used for anonymizeRect background. Changes the boolean used to
set the color for anonymizeRect to be an int and signal the actual
color. Adds tinting to toolbarPhone animation drawables so that
fullscreen works properly.

No visual changes. Yet.

BUG=507340

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

Cr-Commit-Position: refs/heads/master@{#345714}
16 files changed:
chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java
chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/components/LayoutTab.java
chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/TabListSceneLayer.java
chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
chrome/android/java/src/org/chromium/chrome/browser/toolbar/TabSwitcherDrawable.java
chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModelImpl.java
chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java
chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java
chrome/browser/android/compositor/compositor_view.cc
chrome/browser/android/compositor/layer/tab_layer.cc
chrome/browser/android/compositor/layer/tab_layer.h
chrome/browser/android/compositor/layer/toolbar_layer.cc
chrome/browser/android/compositor/layer/toolbar_layer.h
chrome/browser/android/compositor/scene_layer/tab_list_scene_layer.cc
chrome/browser/android/compositor/scene_layer/tab_list_scene_layer.h