pub trait ImplBrowserHost:
Clone
+ Sized
+ Rc {
Show 69 methods
// Required methods
fn browser(&self) -> Option<Browser>;
fn close_browser(&self, force_close: c_int);
fn try_close_browser(&self) -> c_int;
fn is_ready_to_be_closed(&self) -> c_int;
fn set_focus(&self, focus: c_int);
fn window_handle(&self) -> cef_window_handle_t;
fn opener_window_handle(&self) -> cef_window_handle_t;
fn opener_identifier(&self) -> c_int;
fn has_view(&self) -> c_int;
fn client(&self) -> Option<Client>;
fn request_context(&self) -> Option<RequestContext>;
fn can_zoom(&self, command: ZoomCommand) -> c_int;
fn zoom(&self, command: ZoomCommand);
fn default_zoom_level(&self) -> f64;
fn zoom_level(&self) -> f64;
fn set_zoom_level(&self, zoom_level: f64);
fn run_file_dialog(
&self,
mode: FileDialogMode,
title: Option<&CefString>,
default_file_path: Option<&CefString>,
accept_filters: Option<&mut CefStringList>,
callback: Option<&mut RunFileDialogCallback>,
);
fn start_download(&self, url: Option<&CefString>);
fn download_image(
&self,
image_url: Option<&CefString>,
is_favicon: c_int,
max_image_size: u32,
bypass_cache: c_int,
callback: Option<&mut DownloadImageCallback>,
);
fn print(&self);
fn print_to_pdf(
&self,
path: Option<&CefString>,
settings: Option<&PdfPrintSettings>,
callback: Option<&mut PdfPrintCallback>,
);
fn find(
&self,
search_text: Option<&CefString>,
forward: c_int,
match_case: c_int,
find_next: c_int,
);
fn stop_finding(&self, clear_selection: c_int);
fn show_dev_tools(
&self,
window_info: Option<&WindowInfo>,
client: Option<&mut Client>,
settings: Option<&BrowserSettings>,
inspect_element_at: Option<&Point>,
);
fn close_dev_tools(&self);
fn has_dev_tools(&self) -> c_int;
fn send_dev_tools_message(&self, message: Option<&[u8]>) -> c_int;
fn execute_dev_tools_method(
&self,
message_id: c_int,
method: Option<&CefString>,
params: Option<&mut DictionaryValue>,
) -> c_int;
fn add_dev_tools_message_observer(
&self,
observer: Option<&mut DevToolsMessageObserver>,
) -> Option<Registration>;
fn navigation_entries(
&self,
visitor: Option<&mut NavigationEntryVisitor>,
current_only: c_int,
);
fn replace_misspelling(&self, word: Option<&CefString>);
fn add_word_to_dictionary(&self, word: Option<&CefString>);
fn is_window_rendering_disabled(&self) -> c_int;
fn was_resized(&self);
fn was_hidden(&self, hidden: c_int);
fn notify_screen_info_changed(&self);
fn invalidate(&self, type_: PaintElementType);
fn send_external_begin_frame(&self);
fn send_key_event(&self, event: Option<&KeyEvent>);
fn send_mouse_click_event(
&self,
event: Option<&MouseEvent>,
type_: MouseButtonType,
mouse_up: c_int,
click_count: c_int,
);
fn send_mouse_move_event(
&self,
event: Option<&MouseEvent>,
mouse_leave: c_int,
);
fn send_mouse_wheel_event(
&self,
event: Option<&MouseEvent>,
delta_x: c_int,
delta_y: c_int,
);
fn send_touch_event(&self, event: Option<&TouchEvent>);
fn send_capture_lost_event(&self);
fn notify_move_or_resize_started(&self);
fn windowless_frame_rate(&self) -> c_int;
fn set_windowless_frame_rate(&self, frame_rate: c_int);
fn ime_set_composition(
&self,
text: Option<&CefString>,
underlines_count: usize,
underlines: Option<&CompositionUnderline>,
replacement_range: Option<&Range>,
selection_range: Option<&Range>,
);
fn ime_commit_text(
&self,
text: Option<&CefString>,
replacement_range: Option<&Range>,
relative_cursor_pos: c_int,
);
fn ime_finish_composing_text(&self, keep_selection: c_int);
fn ime_cancel_composition(&self);
fn drag_target_drag_enter(
&self,
drag_data: Option<&mut DragData>,
event: Option<&MouseEvent>,
allowed_ops: DragOperationsMask,
);
fn drag_target_drag_over(
&self,
event: Option<&MouseEvent>,
allowed_ops: DragOperationsMask,
);
fn drag_target_drag_leave(&self);
fn drag_target_drop(&self, event: Option<&MouseEvent>);
fn drag_source_ended_at(&self, x: c_int, y: c_int, op: DragOperationsMask);
fn drag_source_system_drag_ended(&self);
fn visible_navigation_entry(&self) -> Option<NavigationEntry>;
fn set_accessibility_state(&self, accessibility_state: State);
fn set_auto_resize_enabled(
&self,
enabled: c_int,
min_size: Option<&Size>,
max_size: Option<&Size>,
);
fn set_audio_muted(&self, mute: c_int);
fn is_audio_muted(&self) -> c_int;
fn is_fullscreen(&self) -> c_int;
fn exit_fullscreen(&self, will_cause_resize: c_int);
fn can_execute_chrome_command(&self, command_id: c_int) -> c_int;
fn execute_chrome_command(
&self,
command_id: c_int,
disposition: WindowOpenDisposition,
);
fn is_render_process_unresponsive(&self) -> c_int;
fn runtime_style(&self) -> RuntimeStyle;
fn get_raw(&self) -> *mut _cef_browser_host_t;
}Required Methods§
Sourcefn browser(&self) -> Option<Browser>
fn browser(&self) -> Option<Browser>
See _cef_browser_host_t::get_browser for more documentation.
Sourcefn close_browser(&self, force_close: c_int)
fn close_browser(&self, force_close: c_int)
See _cef_browser_host_t::close_browser for more documentation.
Sourcefn try_close_browser(&self) -> c_int
fn try_close_browser(&self) -> c_int
See _cef_browser_host_t::try_close_browser for more documentation.
Sourcefn is_ready_to_be_closed(&self) -> c_int
fn is_ready_to_be_closed(&self) -> c_int
See _cef_browser_host_t::is_ready_to_be_closed for more documentation.
Sourcefn set_focus(&self, focus: c_int)
fn set_focus(&self, focus: c_int)
See _cef_browser_host_t::set_focus for more documentation.
Sourcefn window_handle(&self) -> cef_window_handle_t
fn window_handle(&self) -> cef_window_handle_t
See _cef_browser_host_t::get_window_handle for more documentation.
Sourcefn opener_window_handle(&self) -> cef_window_handle_t
fn opener_window_handle(&self) -> cef_window_handle_t
See _cef_browser_host_t::get_opener_window_handle for more documentation.
Sourcefn opener_identifier(&self) -> c_int
fn opener_identifier(&self) -> c_int
See _cef_browser_host_t::get_opener_identifier for more documentation.
Sourcefn has_view(&self) -> c_int
fn has_view(&self) -> c_int
See _cef_browser_host_t::has_view for more documentation.
Sourcefn client(&self) -> Option<Client>
fn client(&self) -> Option<Client>
See _cef_browser_host_t::get_client for more documentation.
Sourcefn request_context(&self) -> Option<RequestContext>
fn request_context(&self) -> Option<RequestContext>
See _cef_browser_host_t::get_request_context for more documentation.
Sourcefn can_zoom(&self, command: ZoomCommand) -> c_int
fn can_zoom(&self, command: ZoomCommand) -> c_int
See _cef_browser_host_t::can_zoom for more documentation.
Sourcefn zoom(&self, command: ZoomCommand)
fn zoom(&self, command: ZoomCommand)
See _cef_browser_host_t::zoom for more documentation.
Sourcefn default_zoom_level(&self) -> f64
fn default_zoom_level(&self) -> f64
See _cef_browser_host_t::get_default_zoom_level for more documentation.
Sourcefn zoom_level(&self) -> f64
fn zoom_level(&self) -> f64
See _cef_browser_host_t::get_zoom_level for more documentation.
Sourcefn set_zoom_level(&self, zoom_level: f64)
fn set_zoom_level(&self, zoom_level: f64)
See _cef_browser_host_t::set_zoom_level for more documentation.
Sourcefn run_file_dialog(
&self,
mode: FileDialogMode,
title: Option<&CefString>,
default_file_path: Option<&CefString>,
accept_filters: Option<&mut CefStringList>,
callback: Option<&mut RunFileDialogCallback>,
)
fn run_file_dialog( &self, mode: FileDialogMode, title: Option<&CefString>, default_file_path: Option<&CefString>, accept_filters: Option<&mut CefStringList>, callback: Option<&mut RunFileDialogCallback>, )
See _cef_browser_host_t::run_file_dialog for more documentation.
Sourcefn start_download(&self, url: Option<&CefString>)
fn start_download(&self, url: Option<&CefString>)
See _cef_browser_host_t::start_download for more documentation.
Sourcefn download_image(
&self,
image_url: Option<&CefString>,
is_favicon: c_int,
max_image_size: u32,
bypass_cache: c_int,
callback: Option<&mut DownloadImageCallback>,
)
fn download_image( &self, image_url: Option<&CefString>, is_favicon: c_int, max_image_size: u32, bypass_cache: c_int, callback: Option<&mut DownloadImageCallback>, )
See _cef_browser_host_t::download_image for more documentation.
Sourcefn print(&self)
fn print(&self)
See _cef_browser_host_t::print for more documentation.
Sourcefn print_to_pdf(
&self,
path: Option<&CefString>,
settings: Option<&PdfPrintSettings>,
callback: Option<&mut PdfPrintCallback>,
)
fn print_to_pdf( &self, path: Option<&CefString>, settings: Option<&PdfPrintSettings>, callback: Option<&mut PdfPrintCallback>, )
See _cef_browser_host_t::print_to_pdf for more documentation.
Sourcefn find(
&self,
search_text: Option<&CefString>,
forward: c_int,
match_case: c_int,
find_next: c_int,
)
fn find( &self, search_text: Option<&CefString>, forward: c_int, match_case: c_int, find_next: c_int, )
See _cef_browser_host_t::find for more documentation.
Sourcefn stop_finding(&self, clear_selection: c_int)
fn stop_finding(&self, clear_selection: c_int)
See _cef_browser_host_t::stop_finding for more documentation.
Sourcefn show_dev_tools(
&self,
window_info: Option<&WindowInfo>,
client: Option<&mut Client>,
settings: Option<&BrowserSettings>,
inspect_element_at: Option<&Point>,
)
fn show_dev_tools( &self, window_info: Option<&WindowInfo>, client: Option<&mut Client>, settings: Option<&BrowserSettings>, inspect_element_at: Option<&Point>, )
See _cef_browser_host_t::show_dev_tools for more documentation.
Sourcefn close_dev_tools(&self)
fn close_dev_tools(&self)
See _cef_browser_host_t::close_dev_tools for more documentation.
Sourcefn has_dev_tools(&self) -> c_int
fn has_dev_tools(&self) -> c_int
See _cef_browser_host_t::has_dev_tools for more documentation.
Sourcefn send_dev_tools_message(&self, message: Option<&[u8]>) -> c_int
fn send_dev_tools_message(&self, message: Option<&[u8]>) -> c_int
See _cef_browser_host_t::send_dev_tools_message for more documentation.
Sourcefn execute_dev_tools_method(
&self,
message_id: c_int,
method: Option<&CefString>,
params: Option<&mut DictionaryValue>,
) -> c_int
fn execute_dev_tools_method( &self, message_id: c_int, method: Option<&CefString>, params: Option<&mut DictionaryValue>, ) -> c_int
See _cef_browser_host_t::execute_dev_tools_method for more documentation.
Sourcefn add_dev_tools_message_observer(
&self,
observer: Option<&mut DevToolsMessageObserver>,
) -> Option<Registration>
fn add_dev_tools_message_observer( &self, observer: Option<&mut DevToolsMessageObserver>, ) -> Option<Registration>
See _cef_browser_host_t::add_dev_tools_message_observer for more documentation.
See _cef_browser_host_t::get_navigation_entries for more documentation.
Sourcefn replace_misspelling(&self, word: Option<&CefString>)
fn replace_misspelling(&self, word: Option<&CefString>)
See _cef_browser_host_t::replace_misspelling for more documentation.
Sourcefn add_word_to_dictionary(&self, word: Option<&CefString>)
fn add_word_to_dictionary(&self, word: Option<&CefString>)
See _cef_browser_host_t::add_word_to_dictionary for more documentation.
Sourcefn is_window_rendering_disabled(&self) -> c_int
fn is_window_rendering_disabled(&self) -> c_int
See _cef_browser_host_t::is_window_rendering_disabled for more documentation.
Sourcefn was_resized(&self)
fn was_resized(&self)
See _cef_browser_host_t::was_resized for more documentation.
See _cef_browser_host_t::was_hidden for more documentation.
Sourcefn notify_screen_info_changed(&self)
fn notify_screen_info_changed(&self)
See _cef_browser_host_t::notify_screen_info_changed for more documentation.
Sourcefn invalidate(&self, type_: PaintElementType)
fn invalidate(&self, type_: PaintElementType)
See _cef_browser_host_t::invalidate for more documentation.
Sourcefn send_external_begin_frame(&self)
fn send_external_begin_frame(&self)
See _cef_browser_host_t::send_external_begin_frame for more documentation.
Sourcefn send_key_event(&self, event: Option<&KeyEvent>)
fn send_key_event(&self, event: Option<&KeyEvent>)
See _cef_browser_host_t::send_key_event for more documentation.
Sourcefn send_mouse_click_event(
&self,
event: Option<&MouseEvent>,
type_: MouseButtonType,
mouse_up: c_int,
click_count: c_int,
)
fn send_mouse_click_event( &self, event: Option<&MouseEvent>, type_: MouseButtonType, mouse_up: c_int, click_count: c_int, )
See _cef_browser_host_t::send_mouse_click_event for more documentation.
Sourcefn send_mouse_move_event(&self, event: Option<&MouseEvent>, mouse_leave: c_int)
fn send_mouse_move_event(&self, event: Option<&MouseEvent>, mouse_leave: c_int)
See _cef_browser_host_t::send_mouse_move_event for more documentation.
Sourcefn send_mouse_wheel_event(
&self,
event: Option<&MouseEvent>,
delta_x: c_int,
delta_y: c_int,
)
fn send_mouse_wheel_event( &self, event: Option<&MouseEvent>, delta_x: c_int, delta_y: c_int, )
See _cef_browser_host_t::send_mouse_wheel_event for more documentation.
Sourcefn send_touch_event(&self, event: Option<&TouchEvent>)
fn send_touch_event(&self, event: Option<&TouchEvent>)
See _cef_browser_host_t::send_touch_event for more documentation.
Sourcefn send_capture_lost_event(&self)
fn send_capture_lost_event(&self)
See _cef_browser_host_t::send_capture_lost_event for more documentation.
Sourcefn notify_move_or_resize_started(&self)
fn notify_move_or_resize_started(&self)
See _cef_browser_host_t::notify_move_or_resize_started for more documentation.
Sourcefn windowless_frame_rate(&self) -> c_int
fn windowless_frame_rate(&self) -> c_int
See _cef_browser_host_t::get_windowless_frame_rate for more documentation.
Sourcefn set_windowless_frame_rate(&self, frame_rate: c_int)
fn set_windowless_frame_rate(&self, frame_rate: c_int)
See _cef_browser_host_t::set_windowless_frame_rate for more documentation.
Sourcefn ime_set_composition(
&self,
text: Option<&CefString>,
underlines_count: usize,
underlines: Option<&CompositionUnderline>,
replacement_range: Option<&Range>,
selection_range: Option<&Range>,
)
fn ime_set_composition( &self, text: Option<&CefString>, underlines_count: usize, underlines: Option<&CompositionUnderline>, replacement_range: Option<&Range>, selection_range: Option<&Range>, )
See _cef_browser_host_t::ime_set_composition for more documentation.
Sourcefn ime_commit_text(
&self,
text: Option<&CefString>,
replacement_range: Option<&Range>,
relative_cursor_pos: c_int,
)
fn ime_commit_text( &self, text: Option<&CefString>, replacement_range: Option<&Range>, relative_cursor_pos: c_int, )
See _cef_browser_host_t::ime_commit_text for more documentation.
Sourcefn ime_finish_composing_text(&self, keep_selection: c_int)
fn ime_finish_composing_text(&self, keep_selection: c_int)
See _cef_browser_host_t::ime_finish_composing_text for more documentation.
Sourcefn ime_cancel_composition(&self)
fn ime_cancel_composition(&self)
See _cef_browser_host_t::ime_cancel_composition for more documentation.
Sourcefn drag_target_drag_enter(
&self,
drag_data: Option<&mut DragData>,
event: Option<&MouseEvent>,
allowed_ops: DragOperationsMask,
)
fn drag_target_drag_enter( &self, drag_data: Option<&mut DragData>, event: Option<&MouseEvent>, allowed_ops: DragOperationsMask, )
See _cef_browser_host_t::drag_target_drag_enter for more documentation.
Sourcefn drag_target_drag_over(
&self,
event: Option<&MouseEvent>,
allowed_ops: DragOperationsMask,
)
fn drag_target_drag_over( &self, event: Option<&MouseEvent>, allowed_ops: DragOperationsMask, )
See _cef_browser_host_t::drag_target_drag_over for more documentation.
Sourcefn drag_target_drag_leave(&self)
fn drag_target_drag_leave(&self)
See _cef_browser_host_t::drag_target_drag_leave for more documentation.
Sourcefn drag_target_drop(&self, event: Option<&MouseEvent>)
fn drag_target_drop(&self, event: Option<&MouseEvent>)
See _cef_browser_host_t::drag_target_drop for more documentation.
Sourcefn drag_source_ended_at(&self, x: c_int, y: c_int, op: DragOperationsMask)
fn drag_source_ended_at(&self, x: c_int, y: c_int, op: DragOperationsMask)
See _cef_browser_host_t::drag_source_ended_at for more documentation.
Sourcefn drag_source_system_drag_ended(&self)
fn drag_source_system_drag_ended(&self)
See _cef_browser_host_t::drag_source_system_drag_ended for more documentation.
See _cef_browser_host_t::get_visible_navigation_entry for more documentation.
Sourcefn set_accessibility_state(&self, accessibility_state: State)
fn set_accessibility_state(&self, accessibility_state: State)
See _cef_browser_host_t::set_accessibility_state for more documentation.
Sourcefn set_auto_resize_enabled(
&self,
enabled: c_int,
min_size: Option<&Size>,
max_size: Option<&Size>,
)
fn set_auto_resize_enabled( &self, enabled: c_int, min_size: Option<&Size>, max_size: Option<&Size>, )
See _cef_browser_host_t::set_auto_resize_enabled for more documentation.
Sourcefn set_audio_muted(&self, mute: c_int)
fn set_audio_muted(&self, mute: c_int)
See _cef_browser_host_t::set_audio_muted for more documentation.
Sourcefn is_audio_muted(&self) -> c_int
fn is_audio_muted(&self) -> c_int
See _cef_browser_host_t::is_audio_muted for more documentation.
Sourcefn is_fullscreen(&self) -> c_int
fn is_fullscreen(&self) -> c_int
See _cef_browser_host_t::is_fullscreen for more documentation.
Sourcefn exit_fullscreen(&self, will_cause_resize: c_int)
fn exit_fullscreen(&self, will_cause_resize: c_int)
See _cef_browser_host_t::exit_fullscreen for more documentation.
Sourcefn can_execute_chrome_command(&self, command_id: c_int) -> c_int
fn can_execute_chrome_command(&self, command_id: c_int) -> c_int
See _cef_browser_host_t::can_execute_chrome_command for more documentation.
Sourcefn execute_chrome_command(
&self,
command_id: c_int,
disposition: WindowOpenDisposition,
)
fn execute_chrome_command( &self, command_id: c_int, disposition: WindowOpenDisposition, )
See _cef_browser_host_t::execute_chrome_command for more documentation.
Sourcefn is_render_process_unresponsive(&self) -> c_int
fn is_render_process_unresponsive(&self) -> c_int
See _cef_browser_host_t::is_render_process_unresponsive for more documentation.
Sourcefn runtime_style(&self) -> RuntimeStyle
fn runtime_style(&self) -> RuntimeStyle
See _cef_browser_host_t::get_runtime_style for more documentation.
fn get_raw(&self) -> *mut _cef_browser_host_t
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.