Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5840cd29 authored by Michael Kolb's avatar Michael Kolb
Browse files

Add public API for on screen zoom controls

    http://b/issue?id=3378224
    This is a simple unhide.
    Allow the use of WebView pinch-to-zoom gestures
    without the on screen zoom controls.
    Currently, enabling pinch to zoom with the public API also shows the
    on screen zoom buttons.
    If the zoom buttons are not wanted, a custom implementation of pinch to
    zoom is required, which can't be done correctly at this point.

Change-Id: I3f94080471c3a4b498b11c91603fff9994dc3c2c
parent d8b9d7cd
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -234861,6 +234861,17 @@
 visibility="public"
>
</method>
<method name="getDisplayZoomControls"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getDomStorageEnabled"
 return="boolean"
 abstract="false"
@@ -235355,6 +235366,19 @@
<parameter name="zoom" type="android.webkit.WebSettings.ZoomDensity">
</parameter>
</method>
<method name="setDisplayZoomControls"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="enabled" type="boolean">
</parameter>
</method>
<method name="setDomStorageEnabled"
 return="void"
 abstract="false"
+0 −2
Original line number Diff line number Diff line
@@ -571,7 +571,6 @@ public class WebSettings {
     * A combination of built in zoom controls enabled
     * and on screen zoom controls disabled allows for pinch to zoom
     * to work without the on screen controls
     * @hide
     */
    public void setDisplayZoomControls(boolean enabled) {
        mDisplayZoomControls = enabled;
@@ -580,7 +579,6 @@ public class WebSettings {

    /**
     * Returns true if the on screen zoom buttons are being used.
     * @hide
     */
    public boolean getDisplayZoomControls() {
        return mDisplayZoomControls;