fidl_fuchsia_webTrait FrameProxyInterface
Source pub trait FrameProxyInterface: Send + Sync {
type ExecuteJavaScriptResponseFut: Future<Output = Result<FrameExecuteJavaScriptResult, Error>> + Send;
type ExecuteJavaScriptNoResultResponseFut: Future<Output = Result<FrameExecuteJavaScriptNoResultResult, Error>> + Send;
type AddBeforeLoadJavaScriptResponseFut: Future<Output = Result<FrameAddBeforeLoadJavaScriptResult, Error>> + Send;
type PostMessageResponseFut: Future<Output = Result<FramePostMessageResult, Error>> + Send;
type SetUrlRequestRewriteRulesResponseFut: Future<Output = Result<(), Error>> + Send;
type GetPrivateMemorySizeResponseFut: Future<Output = Result<u64, Error>> + Send;
Show 28 methods
// Required methods
fn create_view(&self, view_token: ViewToken) -> Result<(), Error>;
fn create_view_with_view_ref(
&self,
view_token: ViewToken,
view_ref_control: ViewRefControl,
view_ref: ViewRef,
) -> Result<(), Error>;
fn create_view2(&self, args: CreateView2Args) -> Result<(), Error>;
fn enable_headless_rendering(&self) -> Result<(), Error>;
fn disable_headless_rendering(&self) -> Result<(), Error>;
fn get_media_player(
&self,
player: ServerEnd<PlayerMarker>,
) -> Result<(), Error>;
fn get_navigation_controller(
&self,
controller: ServerEnd<NavigationControllerMarker>,
) -> Result<(), Error>;
fn execute_java_script(
&self,
origins: &[String],
script: Buffer,
) -> Self::ExecuteJavaScriptResponseFut;
fn execute_java_script_no_result(
&self,
origins: &[String],
script: Buffer,
) -> Self::ExecuteJavaScriptNoResultResponseFut;
fn add_before_load_java_script(
&self,
id: u64,
origins: &[String],
script: Buffer,
) -> Self::AddBeforeLoadJavaScriptResponseFut;
fn remove_before_load_java_script(&self, id: u64) -> Result<(), Error>;
fn post_message(
&self,
target_origin: &str,
message: WebMessage,
) -> Self::PostMessageResponseFut;
fn set_navigation_event_listener(
&self,
listener: Option<ClientEnd<NavigationEventListenerMarker>>,
) -> Result<(), Error>;
fn set_navigation_event_listener2(
&self,
listener: Option<ClientEnd<NavigationEventListenerMarker>>,
flags: NavigationEventListenerFlags,
) -> Result<(), Error>;
fn set_java_script_log_level(
&self,
level: ConsoleLogLevel,
) -> Result<(), Error>;
fn set_console_log_sink(
&self,
sink: Option<ClientEnd<LogSinkMarker>>,
) -> Result<(), Error>;
fn configure_input_types(
&self,
types: InputTypes,
allow: AllowInputState,
) -> Result<(), Error>;
fn set_popup_frame_creation_listener(
&self,
listener: Option<ClientEnd<PopupFrameCreationListenerMarker>>,
) -> Result<(), Error>;
fn set_url_request_rewrite_rules(
&self,
rules: &[UrlRequestRewriteRule],
) -> Self::SetUrlRequestRewriteRulesResponseFut;
fn set_media_settings(
&self,
settings: &FrameMediaSettings,
) -> Result<(), Error>;
fn force_content_dimensions(
&self,
web_dips: Option<&Vec2>,
) -> Result<(), Error>;
fn set_permission_state(
&self,
permission: &PermissionDescriptor,
web_origin: &str,
state: PermissionState,
) -> Result<(), Error>;
fn set_block_media_loading(&self, blocked: bool) -> Result<(), Error>;
fn get_private_memory_size(&self) -> Self::GetPrivateMemorySizeResponseFut;
fn set_navigation_policy_provider(
&self,
params: &NavigationPolicyProviderParams,
provider: ClientEnd<NavigationPolicyProviderMarker>,
) -> Result<(), Error>;
fn set_content_area_settings(
&self,
settings: &ContentAreaSettings,
) -> Result<(), Error>;
fn reset_content_area_settings(&self) -> Result<(), Error>;
fn close(&self, payload: &FrameCloseRequest) -> Result<(), Error>;
}