Add a hidden generic property interface

Change-Id: Iff890d7802af00a80b0148c7cc3233c6fc4d5dad
This commit is contained in:
John Reck
2011-07-15 11:14:43 -07:00
parent 1ea4cc6464
commit 637758940f
2 changed files with 16 additions and 0 deletions

View File

@@ -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.

View File

@@ -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);
}