mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 15:13:07 +00:00
Ladybird/Android: Add EditText for URL bar and attach to native WebView
This commit is contained in:
parent
a93507231c
commit
4fd915b005
Notes:
sideshowbarker
2024-07-17 18:06:52 +09:00
Author: https://github.com/ADKaster
Commit: 4fd915b005
Pull-request: https://github.com/SerenityOS/serenity/pull/21214
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/bugaevc
15 changed files with 82 additions and 12 deletions
|
@ -34,6 +34,13 @@ WebViewImplementationNative::WebViewImplementationNative(jobject thiz)
|
|||
JavaEnvironment env(global_vm);
|
||||
env.get()->CallVoidMethod(m_java_instance, invalidate_layout_method);
|
||||
};
|
||||
|
||||
on_load_start = [this](AK::URL const& url, bool is_redirect) {
|
||||
JavaEnvironment env(global_vm);
|
||||
auto url_string = env.jstring_from_ak_string(MUST(url.to_string()));
|
||||
env.get()->CallVoidMethod(m_java_instance, on_load_start_method, url_string, is_redirect);
|
||||
env.get()->DeleteLocalRef(url_string);
|
||||
};
|
||||
}
|
||||
|
||||
void WebViewImplementationNative::create_client(WebView::EnableCallgrindProfiling)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue