mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +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
|
@ -149,7 +149,7 @@ pub struct _cef_drag_data_t {
|
|||
// window.
|
||||
//
|
||||
pub get_file_names: Option<extern "C" fn(this: *mut cef_drag_data_t,
|
||||
names: types::cef_string_list_t) -> libc::c_int>,
|
||||
names: &types::cef_string_list_t) -> libc::c_int>,
|
||||
|
||||
//
|
||||
// Set the link URL that is being dragged.
|
||||
|
@ -499,7 +499,7 @@ impl CefDragData {
|
|||
// Retrieve the list of file names that are being dragged into the browser
|
||||
// window.
|
||||
//
|
||||
pub fn get_file_names(&self, names: Vec<String>) -> libc::c_int {
|
||||
pub fn get_file_names(&self, names: &Vec<String>) -> libc::c_int {
|
||||
if self.c_object.is_null() ||
|
||||
self.c_object as usize == mem::POST_DROP_USIZE {
|
||||
panic!("called a CEF method on a null object")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue