Add a hidden generic property interface
Change-Id: Iff890d7802af00a80b0148c7cc3233c6fc4d5dad
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user