mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Add mostly-correct (albeit leaky) string marshaling
This commit is contained in:
parent
14ef53cf57
commit
1ac5bfe830
34 changed files with 175 additions and 147 deletions
|
@ -328,8 +328,8 @@ impl CefDialogHandler {
|
|||
// return false (0).
|
||||
//
|
||||
pub fn on_file_dialog(&self, browser: interfaces::CefBrowser,
|
||||
mode: types::cef_file_dialog_mode_t, title: &str,
|
||||
default_file_name: &str, accept_types: Vec<String>,
|
||||
mode: types::cef_file_dialog_mode_t, title: &[u16],
|
||||
default_file_name: &[u16], accept_types: Vec<String>,
|
||||
callback: interfaces::CefFileDialogCallback) -> libc::c_int {
|
||||
if self.c_object.is_null() {
|
||||
panic!("called a CEF method on a null object")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue