2022-10-02 23:06:56 +02:00
|
|
|
package android.webkit;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
2024-08-05 17:17:53 +02:00
|
|
|
import android.util.AttributeSet;
|
2023-06-18 11:03:43 +02:00
|
|
|
import android.view.View;
|
2022-10-02 23:06:56 +02:00
|
|
|
|
2023-06-18 11:03:43 +02:00
|
|
|
public class WebView extends View {
|
2023-06-22 11:45:46 +02:00
|
|
|
public WebView(Context context) {
|
2024-09-13 20:29:56 +02:00
|
|
|
this(context, null);
|
2022-10-02 23:06:56 +02:00
|
|
|
}
|
|
|
|
|
|
2024-08-05 17:17:53 +02:00
|
|
|
public WebView(Context context, AttributeSet attrs) {
|
2024-09-13 20:29:56 +02:00
|
|
|
this(context, attrs, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WebView(Context context, AttributeSet attrs, int defStyleAttr) {
|
|
|
|
|
super(context, attrs, defStyleAttr);
|
2024-08-05 17:17:53 +02:00
|
|
|
}
|
|
|
|
|
|
2022-10-02 23:06:56 +02:00
|
|
|
public WebSettings getSettings() {
|
|
|
|
|
return new WebSettings();
|
|
|
|
|
}
|
2023-06-18 11:03:43 +02:00
|
|
|
|
2024-04-26 14:49:37 +02:00
|
|
|
public void setDownloadListener(DownloadListener downloadListener) {}
|
2023-06-18 11:03:43 +02:00
|
|
|
|
2024-04-26 14:49:37 +02:00
|
|
|
public void setScrollBarStyle(int scrollBarStyle) {}
|
2023-06-18 11:03:43 +02:00
|
|
|
|
2024-04-26 14:49:37 +02:00
|
|
|
public void setWebViewClient(WebViewClient webViewClient) {}
|
|
|
|
|
|
|
|
|
|
public void setVerticalScrollBarEnabled(boolean enabled) {}
|
|
|
|
|
|
|
|
|
|
public void addJavascriptInterface(Object dummy, String dummy2) {}
|
|
|
|
|
|
|
|
|
|
public void setWebChromeClient(WebChromeClient dummy) {}
|
|
|
|
|
|
|
|
|
|
public void removeAllViews() {}
|
|
|
|
|
|
|
|
|
|
public void destroy() {}
|
|
|
|
|
|
2024-09-13 20:29:56 +02:00
|
|
|
public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) {
|
|
|
|
|
native_loadDataWithBaseURL(widget, baseUrl, data, mimeType, encoding);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void loadUrl(String url) {
|
|
|
|
|
native_loadUrl(widget, url);
|
|
|
|
|
}
|
2024-04-26 14:49:37 +02:00
|
|
|
|
|
|
|
|
public void stopLoading() {}
|
2024-08-05 17:17:53 +02:00
|
|
|
|
2024-09-13 20:29:56 +02:00
|
|
|
@Override
|
|
|
|
|
protected native long native_constructor(Context context, AttributeSet attrs);
|
|
|
|
|
private native void native_loadDataWithBaseURL(long widget, String baseUrl, String data, String mimeType, String encoding);
|
|
|
|
|
private native void native_loadUrl(long widget, String url);
|
2022-10-02 23:06:56 +02:00
|
|
|
}
|