pub trait ImplCommandHandler:
Clone
+ Sized
+ Rc {
// Required method
fn get_raw(&self) -> *mut _cef_command_handler_t;
// Provided methods
fn on_chrome_command(
&self,
browser: Option<&mut Browser>,
command_id: c_int,
disposition: WindowOpenDisposition,
) -> c_int { ... }
fn is_chrome_app_menu_item_visible(
&self,
browser: Option<&mut Browser>,
command_id: c_int,
) -> c_int { ... }
fn is_chrome_app_menu_item_enabled(
&self,
browser: Option<&mut Browser>,
command_id: c_int,
) -> c_int { ... }
fn is_chrome_page_action_icon_visible(
&self,
icon_type: ChromePageActionIconType,
) -> c_int { ... }
fn is_chrome_toolbar_button_visible(
&self,
button_type: ChromeToolbarButtonType,
) -> c_int { ... }
fn init_methods(object: &mut _cef_command_handler_t) { ... }
}Required Methods§
fn get_raw(&self) -> *mut _cef_command_handler_t
Provided Methods§
Sourcefn on_chrome_command(
&self,
browser: Option<&mut Browser>,
command_id: c_int,
disposition: WindowOpenDisposition,
) -> c_int
fn on_chrome_command( &self, browser: Option<&mut Browser>, command_id: c_int, disposition: WindowOpenDisposition, ) -> c_int
See _cef_command_handler_t::on_chrome_command for more documentation.
See _cef_command_handler_t::is_chrome_app_menu_item_visible for more documentation.
See _cef_command_handler_t::is_chrome_app_menu_item_enabled for more documentation.
Sourcefn is_chrome_page_action_icon_visible(
&self,
icon_type: ChromePageActionIconType,
) -> c_int
fn is_chrome_page_action_icon_visible( &self, icon_type: ChromePageActionIconType, ) -> c_int
See _cef_command_handler_t::is_chrome_page_action_icon_visible for more documentation.
See _cef_command_handler_t::is_chrome_toolbar_button_visible for more documentation.
fn init_methods(object: &mut _cef_command_handler_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.