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

Commit 63775894 authored by John Reck's avatar John Reck
Browse files

Add a hidden generic property interface

Change-Id: Iff890d7802af00a80b0148c7cc3233c6fc4d5dad
parent 1ea4cc64
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1782,6 +1782,20 @@ public class WebSettings {
        }
    }

    /**
     * @hide
     */
    public void setProperty(String key, String value) {
        mWebView.nativeSetProperty(key, value);
    }

    /**
     * @hide
     */
    public String getProperty(String key) {
        return mWebView.nativeGetProperty(key);
    }

    /**
     * Transfer messages from the queue to the new WebCoreThread. Called from
     * WebCore thread.
+2 −0
Original line number Diff line number Diff line
@@ -9234,4 +9234,6 @@ public class WebView extends AbsoluteLayout
     */
    private native boolean  nativeScrollLayer(int layer, int newX, int newY);
    private native int      nativeGetBackgroundColor();
    native void     nativeSetProperty(String key, String value);
    native String   nativeGetProperty(String key);
}