Fixes for getting themes to work well with Windows High DPI.
commitace416d9f581541ce6741ae05998b379990142f3
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 22 May 2014 11:25:22 +0000 (22 11:25 +0000)
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 22 May 2014 11:25:22 +0000 (22 11:25 +0000)
treecba36fc88a090ada1a29dd0564e3142f07fba958
parent11ef9c0dab6d91ade6eb3f6877896255e9c35b71
Fixes for getting themes to work well with Windows High DPI.

Relanding this as the previous attempt was reverted due to compile failures due to the IsScaleFactorSupported
function being moved to resource_bundle.h/.cc. Fixed the ctor for BrowserThemePack to workaround it.

The changes are to use the GetScaleForScaleFactor function to get the scale instead
of GetImageScale. The latter function returns the current display scale on Windows which
causes themes to break. The other change is in the ctor of the BrowserThemePack class
where we add SCALE_FACTOR_100P to the list of supported scales as it is needed for default
theme packs to work correctly.

BUG=362979
R=oshima
TBR=pkotwicz

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272161 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/themes/browser_theme_pack.cc