mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-15 13:06:10 +00:00
Ladybird/Android: Add EditText for URL bar and attach to native WebView
This commit is contained in:
committed by
Andrew Kaster
parent
a93507231c
commit
4fd915b005
@@ -12,6 +12,7 @@ using namespace Ladybird;
|
||||
jclass WebViewImplementationNative::global_class_reference;
|
||||
jmethodID WebViewImplementationNative::bind_webcontent_method;
|
||||
jmethodID WebViewImplementationNative::invalidate_layout_method;
|
||||
jmethodID WebViewImplementationNative::on_load_start_method;
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
Java_org_serenityos_ladybird_WebViewImplementation_00024Companion_nativeClassInit(JNIEnv* env, jobject /* thiz */)
|
||||
@@ -31,6 +32,11 @@ Java_org_serenityos_ladybird_WebViewImplementation_00024Companion_nativeClassIni
|
||||
if (!method)
|
||||
TODO();
|
||||
WebViewImplementationNative::invalidate_layout_method = method;
|
||||
|
||||
method = env->GetMethodID(WebViewImplementationNative::global_class_reference, "onLoadStart", "(Ljava/lang/String;Z)V");
|
||||
if (!method)
|
||||
TODO();
|
||||
WebViewImplementationNative::on_load_start_method = method;
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT jlong JNICALL
|
||||
|
||||
Reference in New Issue
Block a user