Bug 1394926 - Add APZ autoscroll information to about:support. r=kats

MozReview-Commit-ID: FlZNdHuoirG

--HG--
extra : rebase_source : 1cc352dc9a19c4a15d5bf7e75370a68c13024dda
This commit is contained in:
Botond Ballo 2017-08-29 16:27:19 -04:00
parent f3d6766f0e
commit 236b0fa4f4
4 changed files with 13 additions and 1 deletions

View File

@ -2737,6 +2737,10 @@ gfxPlatform::GetApzSupportInfo(mozilla::widget::InfoObject& aObj)
if (SupportsApzKeyboardInput() && !gfxPrefs::AccessibilityBrowseWithCaret()) {
aObj.DefineProperty("ApzKeyboardInput", 1);
}
if (SupportsApzAutoscrolling()) {
aObj.DefineProperty("ApzAutoscrollInput", 1);
}
}
void
@ -2912,6 +2916,12 @@ gfxPlatform::SupportsApzKeyboardInput() const
return gfxPrefs::APZKeyboardEnabled();
}
bool
gfxPlatform::SupportsApzAutoscrolling() const
{
return gfxPrefs::APZAutoscrollEnabled();
}
void
gfxPlatform::InitOpenGLConfig()
{

View File

@ -642,6 +642,7 @@ public:
bool SupportsApzTouchInput() const;
bool SupportsApzDragInput() const;
bool SupportsApzKeyboardInput() const;
bool SupportsApzAutoscrolling() const;
virtual void FlushContentDrawing() {}

View File

@ -258,7 +258,7 @@ var snapshotFormatters = {
let apzInfo = [];
let formatApzInfo = function(info) {
let out = [];
for (let type of ["Wheel", "Touch", "Drag", "Keyboard"]) {
for (let type of ["Wheel", "Touch", "Drag", "Keyboard", "Autoscroll"]) {
let key = "Apz" + type + "Input";
if (!(key in info))

View File

@ -144,6 +144,7 @@ wheelEnabled = wheel input enabled
touchEnabled = touch input enabled
dragEnabled = scrollbar drag enabled
keyboardEnabled = keyboard enabled
autoscrollEnabled = autoscroll enabled
# LOCALIZATION NOTE %1 will be replaced with the key of a preference.
wheelWarning = async wheel input disabled due to unsupported pref: %S