Add 9 patch scrollbar assets to native theme
commite3d512a71352fe9060e168c52c3b4583a4558852
authorweiliangc@chromium.org <weiliangc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 18 Mar 2014 20:50:47 +0000 (18 20:50 +0000)
committerweiliangc@chromium.org <weiliangc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 18 Mar 2014 20:50:47 +0000 (18 20:50 +0000)
treea298c359f67c83c5b2e3874691e98e5361a5458e
parent3e99f1afa25a9af7efb3d2a838fed79d520f1dbb
Add 9 patch scrollbar assets to native theme

9-patch scrollbar is a prettified version of overlay scrollbar that is
going to be used on aura. Add these assets with their ID to native theme
 aura. Add logic to use 9 patch scroll bar assets when overlay scrollbar
 is enabled. Also overlay scrollbar should only be painting thumbs, thus
 when overlay scrollbar is turned on native theme shouldn't need to
paint track and scrollbar corner.

This set of assets for 9 patch scrollbar intent to control stroke and
fill separately, while stroke does not provide asset for center of
9 patch. Different state is achieved by adjusting alpha of stroke and
fill separately.

BUG=307578

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256930

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257744 0039d316-1c4b-4281-b951-d872f2087c98
18 files changed:
chrome/browser/about_flags.cc
content/browser/android/content_startup_flags.cc
content/browser/renderer_host/render_process_host_impl.cc
content/browser/renderer_host/render_view_host_impl.cc
content/child/runtime_features.cc
content/common/content_switches_internal.cc
content/common/content_switches_internal.h
content/public/common/content_switches.cc
content/public/common/content_switches.h
content/renderer/gpu/render_widget_compositor.cc
ui/base/nine_image_painter_factory.h
ui/gfx/nine_image_painter.cc
ui/gfx/nine_image_painter.h
ui/native_theme/native_theme.gyp
ui/native_theme/native_theme_aura.cc
ui/native_theme/native_theme_aura.h
ui/native_theme/native_theme_switches.cc [new file with mode: 0644]
ui/native_theme/native_theme_switches.h [new file with mode: 0644]