Trait IWebViewControl_Impl
pub trait IWebViewControl_Impl: IUnknownImpl {
Show 57 methods
// Required methods
fn Source(&self) -> Result<Uri>;
fn SetSource(&self, source: Ref<'_, Uri>) -> Result<()>;
fn DocumentTitle(&self) -> Result<HSTRING>;
fn CanGoBack(&self) -> Result<bool>;
fn CanGoForward(&self) -> Result<bool>;
fn SetDefaultBackgroundColor(&self, value: &Color) -> Result<()>;
fn DefaultBackgroundColor(&self) -> Result<Color>;
fn ContainsFullScreenElement(&self) -> Result<bool>;
fn Settings(&self) -> Result<WebViewControlSettings>;
fn DeferredPermissionRequests(
&self,
) -> Result<IVectorView<WebViewControlDeferredPermissionRequest>>;
fn GoForward(&self) -> Result<()>;
fn GoBack(&self) -> Result<()>;
fn Refresh(&self) -> Result<()>;
fn Stop(&self) -> Result<()>;
fn Navigate(&self, source: Ref<'_, Uri>) -> Result<()>;
fn NavigateToString(&self, text: &HSTRING) -> Result<()>;
fn NavigateToLocalStreamUri(
&self,
source: Ref<'_, Uri>,
streamResolver: Ref<'_, IUriToStreamResolver>,
) -> Result<()>;
fn NavigateWithHttpRequestMessage(
&self,
requestMessage: Ref<'_, HttpRequestMessage>,
) -> Result<()>;
fn InvokeScriptAsync(
&self,
scriptName: &HSTRING,
arguments: Ref<'_, IIterable<HSTRING>>,
) -> Result<IAsyncOperation<HSTRING>>;
fn CapturePreviewToStreamAsync(
&self,
stream: Ref<'_, IRandomAccessStream>,
) -> Result<IAsyncAction>;
fn CaptureSelectedContentToDataPackageAsync(
&self,
) -> Result<IAsyncOperation<DataPackage>>;
fn BuildLocalStreamUri(
&self,
contentIdentifier: &HSTRING,
relativePath: &HSTRING,
) -> Result<Uri>;
fn GetDeferredPermissionRequestById(
&self,
id: u32,
result: OutRef<'_, WebViewControlDeferredPermissionRequest>,
) -> Result<()>;
fn NavigationStarting(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlNavigationStartingEventArgs>>,
) -> Result<i64>;
fn RemoveNavigationStarting(&self, token: i64) -> Result<()>;
fn ContentLoading(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlContentLoadingEventArgs>>,
) -> Result<i64>;
fn RemoveContentLoading(&self, token: i64) -> Result<()>;
fn DOMContentLoaded(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlDOMContentLoadedEventArgs>>,
) -> Result<i64>;
fn RemoveDOMContentLoaded(&self, token: i64) -> Result<()>;
fn NavigationCompleted(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlNavigationCompletedEventArgs>>,
) -> Result<i64>;
fn RemoveNavigationCompleted(&self, token: i64) -> Result<()>;
fn FrameNavigationStarting(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlNavigationStartingEventArgs>>,
) -> Result<i64>;
fn RemoveFrameNavigationStarting(&self, token: i64) -> Result<()>;
fn FrameContentLoading(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlContentLoadingEventArgs>>,
) -> Result<i64>;
fn RemoveFrameContentLoading(&self, token: i64) -> Result<()>;
fn FrameDOMContentLoaded(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlDOMContentLoadedEventArgs>>,
) -> Result<i64>;
fn RemoveFrameDOMContentLoaded(&self, token: i64) -> Result<()>;
fn FrameNavigationCompleted(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlNavigationCompletedEventArgs>>,
) -> Result<i64>;
fn RemoveFrameNavigationCompleted(&self, token: i64) -> Result<()>;
fn ScriptNotify(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlScriptNotifyEventArgs>>,
) -> Result<i64>;
fn RemoveScriptNotify(&self, token: i64) -> Result<()>;
fn LongRunningScriptDetected(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlLongRunningScriptDetectedEventArgs>>,
) -> Result<i64>;
fn RemoveLongRunningScriptDetected(&self, token: i64) -> Result<()>;
fn UnsafeContentWarningDisplaying(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, IInspectable>>,
) -> Result<i64>;
fn RemoveUnsafeContentWarningDisplaying(&self, token: i64) -> Result<()>;
fn UnviewableContentIdentified(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlUnviewableContentIdentifiedEventArgs>>,
) -> Result<i64>;
fn RemoveUnviewableContentIdentified(&self, token: i64) -> Result<()>;
fn PermissionRequested(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlPermissionRequestedEventArgs>>,
) -> Result<i64>;
fn RemovePermissionRequested(&self, token: i64) -> Result<()>;
fn UnsupportedUriSchemeIdentified(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlUnsupportedUriSchemeIdentifiedEventArgs>>,
) -> Result<i64>;
fn RemoveUnsupportedUriSchemeIdentified(&self, token: i64) -> Result<()>;
fn NewWindowRequested(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlNewWindowRequestedEventArgs>>,
) -> Result<i64>;
fn RemoveNewWindowRequested(&self, token: i64) -> Result<()>;
fn ContainsFullScreenElementChanged(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, IInspectable>>,
) -> Result<i64>;
fn RemoveContainsFullScreenElementChanged(&self, token: i64) -> Result<()>;
fn WebResourceRequested(
&self,
handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlWebResourceRequestedEventArgs>>,
) -> Result<i64>;
fn RemoveWebResourceRequested(&self, token: i64) -> Result<()>;
}
Required Methods§
fn Source(&self) -> Result<Uri>
fn SetSource(&self, source: Ref<'_, Uri>) -> Result<()>
fn DocumentTitle(&self) -> Result<HSTRING>
fn CanGoBack(&self) -> Result<bool>
fn CanGoForward(&self) -> Result<bool>
fn SetDefaultBackgroundColor(&self, value: &Color) -> Result<()>
fn DefaultBackgroundColor(&self) -> Result<Color>
fn ContainsFullScreenElement(&self) -> Result<bool>
fn Settings(&self) -> Result<WebViewControlSettings>
fn DeferredPermissionRequests( &self, ) -> Result<IVectorView<WebViewControlDeferredPermissionRequest>>
fn GoForward(&self) -> Result<()>
fn GoBack(&self) -> Result<()>
fn Refresh(&self) -> Result<()>
fn Stop(&self) -> Result<()>
fn InvokeScriptAsync( &self, scriptName: &HSTRING, arguments: Ref<'_, IIterable<HSTRING>>, ) -> Result<IAsyncOperation<HSTRING>>
fn CapturePreviewToStreamAsync( &self, stream: Ref<'_, IRandomAccessStream>, ) -> Result<IAsyncAction>
fn CaptureSelectedContentToDataPackageAsync( &self, ) -> Result<IAsyncOperation<DataPackage>>
fn BuildLocalStreamUri( &self, contentIdentifier: &HSTRING, relativePath: &HSTRING, ) -> Result<Uri>
fn GetDeferredPermissionRequestById( &self, id: u32, result: OutRef<'_, WebViewControlDeferredPermissionRequest>, ) -> Result<()>
fn ContentLoading( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlContentLoadingEventArgs>>, ) -> Result<i64>
fn RemoveContentLoading(&self, token: i64) -> Result<()>
fn DOMContentLoaded( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlDOMContentLoadedEventArgs>>, ) -> Result<i64>
fn RemoveDOMContentLoaded(&self, token: i64) -> Result<()>
fn FrameContentLoading( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlContentLoadingEventArgs>>, ) -> Result<i64>
fn RemoveFrameContentLoading(&self, token: i64) -> Result<()>
fn FrameDOMContentLoaded( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlDOMContentLoadedEventArgs>>, ) -> Result<i64>
fn RemoveFrameDOMContentLoaded(&self, token: i64) -> Result<()>
fn ScriptNotify( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlScriptNotifyEventArgs>>, ) -> Result<i64>
fn RemoveScriptNotify(&self, token: i64) -> Result<()>
fn LongRunningScriptDetected( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlLongRunningScriptDetectedEventArgs>>, ) -> Result<i64>
fn RemoveLongRunningScriptDetected(&self, token: i64) -> Result<()>
fn UnsafeContentWarningDisplaying( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, IInspectable>>, ) -> Result<i64>
fn RemoveUnsafeContentWarningDisplaying(&self, token: i64) -> Result<()>
fn UnviewableContentIdentified( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlUnviewableContentIdentifiedEventArgs>>, ) -> Result<i64>
fn RemoveUnviewableContentIdentified(&self, token: i64) -> Result<()>
fn PermissionRequested( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlPermissionRequestedEventArgs>>, ) -> Result<i64>
fn RemovePermissionRequested(&self, token: i64) -> Result<()>
fn UnsupportedUriSchemeIdentified( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlUnsupportedUriSchemeIdentifiedEventArgs>>, ) -> Result<i64>
fn RemoveUnsupportedUriSchemeIdentified(&self, token: i64) -> Result<()>
fn NewWindowRequested( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlNewWindowRequestedEventArgs>>, ) -> Result<i64>
fn RemoveNewWindowRequested(&self, token: i64) -> Result<()>
fn ContainsFullScreenElementChanged( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, IInspectable>>, ) -> Result<i64>
fn RemoveContainsFullScreenElementChanged(&self, token: i64) -> Result<()>
fn WebResourceRequested( &self, handler: Ref<'_, TypedEventHandler<IWebViewControl, WebViewControlWebResourceRequestedEventArgs>>, ) -> Result<i64>
fn RemoveWebResourceRequested(&self, token: i64) -> Result<()>
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.