mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
update all cef interfaces to use borrows for string_list params
it was somewhat impossible to make this work with allocated string_lists due to constant leakage from box allocations going out of scope, so this should simplify it ane be more manageable in the future
This commit is contained in:
parent
e8e300a6fd
commit
612cefa02d
13 changed files with 48 additions and 39 deletions
|
@ -95,7 +95,8 @@ pub struct _cef_browser_process_handler_t {
|
|||
this: *mut cef_browser_process_handler_t) -> *mut interfaces::cef_print_handler_t>,
|
||||
|
||||
//
|
||||
// Called when the application should call cef_do_message_loop_work()
|
||||
// Called when the application should call cef_do_message_loop_work(). May be
|
||||
// called from a thread.
|
||||
//
|
||||
pub on_work_available: Option<extern "C" fn(
|
||||
this: *mut cef_browser_process_handler_t) -> ()>,
|
||||
|
@ -261,7 +262,8 @@ impl CefBrowserProcessHandler {
|
|||
}
|
||||
|
||||
//
|
||||
// Called when the application should call cef_do_message_loop_work()
|
||||
// Called when the application should call cef_do_message_loop_work(). May be
|
||||
// called from a thread.
|
||||
//
|
||||
pub fn on_work_available(&self) -> () {
|
||||
if self.c_object.is_null() ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue