зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f3d6766f0e
Коммит
236b0fa4f4
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -642,6 +642,7 @@ public:
|
|||
bool SupportsApzTouchInput() const;
|
||||
bool SupportsApzDragInput() const;
|
||||
bool SupportsApzKeyboardInput() const;
|
||||
bool SupportsApzAutoscrolling() const;
|
||||
|
||||
virtual void FlushContentDrawing() {}
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче