Upstream accessibility font size preferences.
commit96f1b5deb40b82674786ea87c68188157ae8b44e
authorsunangel@chromium.org <sunangel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 13 Aug 2014 03:32:34 +0000 (13 03:32 +0000)
committersunangel@chromium.org <sunangel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 13 Aug 2014 03:33:59 +0000 (13 03:33 +0000)
tree3bee49571815018f35b039215a8372a017cd9e72
parent2e91375a959fbde0fe5f91805e22ea7872dc11a0
Upstream accessibility font size preferences.

Moves ForceEnableZoom, UserSetForceEnableZoom, and
FontScaleFactor preferences upstream and adds support for
observing all those preferences in Java.

UserSetForceEnableZoom is currently stored using Android
SharedPreferences, which are application global, so this
class is currently not keyed off the profile. Preferably
this should be migrated to be per profile, at which point
the FontSizePrefs could be keyed off the profile instead of
being an application global singleton.

BUG=383630

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

Cr-Commit-Position: refs/heads/master@{#289185}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289185 0039d316-1c4b-4281-b951-d872f2087c98
chrome/android/java/src/org/chromium/chrome/browser/accessibility/FontSizePrefs.java [new file with mode: 0644]
chrome/android/javatests/src/org/chromium/chrome/browser/accessibility/FontSizePrefsTest.java [new file with mode: 0644]
chrome/browser/android/accessibility/font_size_prefs_android.cc [new file with mode: 0644]
chrome/browser/android/accessibility/font_size_prefs_android.h [new file with mode: 0644]
chrome/browser/android/chrome_jni_registrar.cc
chrome/chrome_browser.gypi