Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
The DualEngine API is part of a Limited Access Feature (see LimitedAccessFeatures class). For more information or to request an unlock token, contact Microsoft Support.
interface IDualEngine20BrowserObserver
: public IUnknown
Receives events from the Browser.
Summary
| Members | Descriptions |
|---|---|
| ContinueNavigationInEdge | Raised when the browser wants to stop hosting content and have the navigation to the URL continue in the hosting process. |
| ContinueNavigationInEdge2 | Raised when the browser wants to stop hosting content and have the navigation to the URL continue in the hosting process; this version provides extra information about the navigation. |
| NavigateToOffsetInEdge | Raised when the browser requests to navigate to a travel log entry offset. |
| OnAllButCurrentEntryDeleted | Raised when the browser has deleted all entries in its travel log except for the current entry. |
| OnAsyncHungCheckReply | Raised when the browser processes an async hang check message, see IDualEngine20BrowserSession::SetHangDetectionMessages(). |
| OnAttentionState | Raised when requesting user attention. |
| OnBeforeUnloadAndStopComplete | Raised when the beforeUnload event has finished being processed. |
| OnCloseCompleted | Raised when the browser has closed. |
| OnCloseRequested | Raised when the browser has requested to close. |
| OnDialogShown | Raised when a the browser shows or hides a modal dialog. |
| OnDocumentComplete | Raised when a document is completely loaded and initialized. |
| OnDocumentModeSet | Raised when the document mode has changed. |
| OnEnterpriseIDSet | Raised when a navigation has been completed; provides information about the enterprise ID. |
| OnFindOnPageResult | Raised when find on page results change. |
| OnFinishedSetFocus | Raised when a IDualEngine20Browser::DualEngineSetFocus() request has finished being processed. |
| OnGeolocationFeatureInUse | Raised when geolocation data is accessed. |
| OnGeolocationPermissionRequested | Raised when user permission is needed to enable geolocation. |
| OnHasBeforeUnloadChanged | Raised when an OnBeforeUnload handler has been registered or removed. |
| OnIndicatorItemsSet | Raised when a navigation has been completed; provides status information about the current state of the browser page. |
| OnInputAttempted | Raised when user input is received. |
| OnLoadingActivityChanged | Raised when the page's loading state changes. |
| OnMixedContentBlocked | Raised when Mixed Content has been blocked. |
| OnNavigationComplete | Raised when a navigation has been completed. |
| OnNavigationFailed | Raised when a navigation fails. |
| OnNavigationToDownload | Raised when a navigation has ended in a download. |
| OnNewWindow | Raised when a new window has been created. |
| OnPopupBlocked | Raised when a popup window was blocked. |
| OnPrepareToExitRegionFailed | Raised when the browser has failed to a handle a previous IDualEngine20Browser::DualEnginePrepareToExitRegion() call. |
| OnReadyToExitRegion | Raised when the browser has successfully handled a previous IDualEngine20Browser::DualEnginePrepareToExitRegion() call. |
| OnTabCrashed | Raised when the tab has crashed. |
| OnTabHangReported | Raised when the browser is hung. |
| OnUnexpectedRundown | Raised when the browser has closed unexpectedly. |
| OnUnhandledKeyboardAccelerator | Raised when processing a keyboard accelerator and it is determined that the browser does not, or should not based on rgHostPriorityAccels, handle that accelerator. |
| OnUnhandledKeyboardAcceleratorAsync | Raised when processing a keyboard accelerator and it is determined that browser does not, or should not based on rgHostPriorityAccels, handle that accelerator. |
| OnVisibleComplete | Raised when the content of the page is being made visible. |
| OnZoomChanged | Raised when the zoom has changed. |
| OpenURLInEdge | Raised when the browser is requesting the host to navigate to a URL in a new window. |
| OpenURLInEdge2 | Raised when the browser is requesting the host to navigate to a URL in a new window; this version provides extra information about the navigation. |
| RequestHostAddFavorite | Raised when a page has been requested to be added to favorites. |
| RequestHostCreateUrlTip | Raised when requesting to show a tooltip containing a URL. |
| RequestHostFocus | Raised when focus is being requested to move to the host window. |
| RequestHostFullscreen | Raised when the page is requesting that the host display content in fullscreen. |
| RequestHostHideUrlTip | Raised when requesting to hide a tooltip containing a URL. |
| RequestHostPositionChanged | Raised when the browser requests that the host change its size or position. |
| RequestHostShowTheater | Raised when the browser is requesting the host to enter or leave theater mode. |
| RequestHostWindowFocus | Raised when the host is requested to take or give up focus. |
| RequestHostWindowFocusSync | Raised when the host is requested to take or give up focus. |
| UpdateHostFavicon | Raised when the favicon has changed. |
| UpdateHostTitle | Raised when the title of the page has been updated. |
| UpdateSecureLockIcon | Raised when security information of the page has changed. |
Applies to
| Product | Introduced |
|---|---|
| Windows 10, Version 20H1 | KB5032278 |
| Windows 11, Version 22H2 | KB5032288 |
Members
ContinueNavigationInEdge
Raised when the browser wants to stop hosting content and have the navigation to the URL continue in the hosting process.
public HRESULT ContinueNavigationInEdge(LPCWSTR pszUrl, ULONG ulCookieSyncVersion)
Parameters
pszUrlThe URL that should be navigated to.ulCookieSyncVersionA number that can be used to correlate a navigation with a specific cookie state.
ContinueNavigationInEdge2
Raised when the browser wants to stop hosting content and have the navigation to the URL continue in the hosting process; this version provides extra information about the navigation.
public HRESULT ContinueNavigationInEdge2(LPCWSTR pszUrl, ULONG ulCookieSyncVersion, LPCWSTR pszReferrer, LPCWSTR pszHeaders, VARIANT * postData)
Parameters
pszUrlThe URL that should be navigated to.ulCookieSyncVersionA number that can be used to correlate a navigation with a specific cookie state.pszReferrerThe HTTP Referer request header.pszHeadersAdditional HTTP headers.postDataHTTP POST data, such as form data.
NavigateToOffsetInEdge
Raised when the browser requests to navigate to a travel log entry offset.
public HRESULT NavigateToOffsetInEdge(int iOffset)
Parameters
iOffsetThe offset to navigate to.
OnAllButCurrentEntryDeleted
Raised when the browser has deleted all entries in its travel log except for the current entry.
public HRESULT OnAllButCurrentEntryDeleted(VisibleListUpdateEntry * pVisibleListEntries, int cVisibleListEntries)
Parameters
pVisibleListEntriesA list containing the new travel log entries since the last update. In this case it will only have the current active entry.cVisibleListEntriesThe number of items inpVisibleListEntries
OnAsyncHungCheckReply
Raised when the browser processes an async hang check message, see IDualEngine20BrowserSession::SetHangDetectionMessages().
public HRESULT OnAsyncHungCheckReply(ULONG correlationId)
Parameters
correlationIdId to correlate the reply with the sent message.
OnAttentionState
Raised when requesting user attention.
public HRESULT OnAttentionState(ATTENTIONSTATE attentionState)
Parameters
attentionStateThe reason that user attention is being requested.
OnBeforeUnloadAndStopComplete
Raised when the beforeUnload event has finished being processed.
public HRESULT OnBeforeUnloadAndStopComplete(BOOL agreeToClose)
Parameters
agreeToCloseIndicates whether the user has agreed to leave the page.
OnCloseCompleted
Raised when the browser has closed.
public HRESULT OnCloseCompleted()
OnCloseRequested
Raised when the browser has requested to close.
public HRESULT OnCloseRequested()
OnDialogShown
Raised when a the browser shows or hides a modal dialog.
public HRESULT OnDialogShown(BOOL fShown)
Parameters
fShownIndicates whether the dialog was shown or hidden.
OnDocumentComplete
Raised when a document is completely loaded and initialized.
public HRESULT OnDocumentComplete(ULONG ulCurrentEntryId, VisibleListUpdateEntry * pVisibleListEntries, int cVisibleListEntries)
Parameters
ulCurrentEntryIdThe travel log entry ID for the page that raised this event.pVisibleListEntriesA list containing the new travel log entries since the last update.cVisibleListEntriesThe number of items inpVisibleListEntries
OnDocumentModeSet
Raised when the document mode has changed.
public HRESULT OnDocumentModeSet(ULONG documentMode)
Parameters
documentModeThe new document mode version.
OnEnterpriseIDSet
Raised when a navigation has been completed; provides information about the enterprise ID.
public HRESULT OnEnterpriseIDSet(BOOL fEnterpriseID)
Parameters
fEnterpriseIDIndicates whether the browser has an enterprise ID set.
OnFindOnPageResult
Raised when find on page results change.
public HRESULT OnFindOnPageResult(int iRequestID, int cMatches, int iActiveMatch)
Parameters
iRequestIDAn ID to correlate results with IDualEngine20Browser::DualEngineFindOnPage() requests.cMatchesThe count of matches.iActiveMatchThe index of the selected match.
OnFinishedSetFocus
Raised when a IDualEngine20Browser::DualEngineSetFocus() request has finished being processed.
public HRESULT OnFinishedSetFocus()
OnGeolocationFeatureInUse
Raised when geolocation data is accessed.
public HRESULT OnGeolocationFeatureInUse(LPCWSTR pszContextUrl, SITE_PERMISSION_FEATURE_MODE featureMode)
Parameters
pszContextUrlThe URL of the page accessing geolocation data.featureModeIndicates whether the access was blocked or allowed.
OnGeolocationPermissionRequested
Raised when user permission is needed to enable geolocation.
public HRESULT OnGeolocationPermissionRequested(LPCWSTR pszContextUrl)
Parameters
pszContextUrlThe URL of the page requesting geolocation permission.
OnHasBeforeUnloadChanged
Raised when an OnBeforeUnload handler has been registered or removed.
public HRESULT OnHasBeforeUnloadChanged(BOOL fBeforeUnload)
Parameters
fBeforeUnloadtrueindicates that anOnBeforeUnloadhandler was registered;falseindicates it was removed.
OnIndicatorItemsSet
Raised when a navigation has been completed; provides status information about the current state of the browser page.
public HRESULT OnIndicatorItemsSet(BOOL fProtectedMode, BOOL fEnhancedProtectedMode, DWORD dwUrlZone, BOOL fEnterpriseMode)
Parameters
fProtectedModeIndicates whether the browser is in Protected Mode.fEnhancedProtectedModeIndicates whether the browser is in Enhanced Protected Mode.dwUrlZoneThe zone of the current URL.fEnterpriseModeIndicates whether the browser is in Enterprise Mode.
OnInputAttempted
Raised when user input is received.
public HRESULT OnInputAttempted()
OnLoadingActivityChanged
Raised when the page's loading state changes.
public HRESULT OnLoadingActivityChanged(BOOL fLoading)
Parameters
fLoadingIndicates whether the page is loading or not.
OnMixedContentBlocked
Raised when Mixed Content has been blocked.
public HRESULT OnMixedContentBlocked()
OnNavigationComplete
Raised when a navigation has been completed.
public HRESULT OnNavigationComplete(REFGUID guidTabId, ULONG ulCurrentEntryId, VisibleListUpdateEntry * pVisibleListEntries, int cVisibleListEntries, DWORD dwNavFlags, SECURELOCKICON secureLockIcon, DWORD dwSecurityFlags, CryptDataBlob * pDualEngineCertificates, int cCertificateChainBlobs)
Parameters
guidTabIdThe recovery GUID for tab.ulCurrentEntryIdThe ID representing this navigation in the visible-entries list.pVisibleListEntriesA list containing the new travel log entries since the last update.cVisibleListEntriesThe number of items inpVisibleListEntries.dwNavFlagsFlags indicating the type of navigation that occurred.secureLockIconThe security state of the page.dwSecurityFlagsFlags indicating any certificate errors for the page.pDualEngineCertificatesA list containing the certificate chain for the current entry's page.cCertificateChainBlobsThe number of items inpDualEngineCertificates.
OnNavigationFailed
Raised when a navigation fails.
public HRESULT OnNavigationFailed(NAVIGATIONFAILEDREASON failureReason)
Parameters
failureReasonThe reason the navigation failed.
OnNavigationToDownload
Raised when a navigation has ended in a download.
public HRESULT OnNavigationToDownload()
OnNewWindow
Raised when a new window has been created.
public HRESULT OnNewWindow(IDualEngine20Browser * pNewBrowser, HWND hwnd, const DualEngineNewWindowOptions * options, IDualEngine20BrowserObserver ** ppObserver)
Parameters
pNewBrowserThe browser object for the new window.hwndThe handle for the new window.optionsThe options that the new window was created with.ppObserverThe observer object for the new window.
OnPopupBlocked
Raised when a popup window was blocked.
public HRESULT OnPopupBlocked(LPCWSTR pszContextUrl, LPCWSTR pszPopupUrl)
Parameters
pszContextUrlThe URL of the page that issued the command to open the popup.pszPopupUrlThe URL of the popup page.
OnPrepareToExitRegionFailed
Raised when the browser has failed to a handle a previous IDualEngine20Browser::DualEnginePrepareToExitRegion() call.
public HRESULT OnPrepareToExitRegionFailed()
OnReadyToExitRegion
Raised when the browser has successfully handled a previous IDualEngine20Browser::DualEnginePrepareToExitRegion() call.
public HRESULT OnReadyToExitRegion(REFGUID guidClonedTabId, ULONG ulCurrentEntryId, VisibleListUpdateEntry * pVisibleListEntriesComplete, int cVisibleListEntriesComplete)
Parameters
guidClonedTabIdThe GUID of the tab recovery data file backing the exited region.ulCurrentEntryIdThe travel log entry ID for the page that raised this event.pVisibleListEntriesCompleteA list containing the new travel log entries since the last update.cVisibleListEntriesCompleteThe number of items inpVisibleListEntriesComplete
OnTabCrashed
Raised when the tab has crashed.
public HRESULT OnTabCrashed(BOOL fUnrecoverable)
Parameters
fUnrecoverableIndicates whether the tab is recoverable.
OnTabHangReported
Raised when the browser is hung.
public HRESULT OnTabHangReported()
OnUnexpectedRundown
Raised when the browser has closed unexpectedly.
public HRESULT OnUnexpectedRundown()
OnUnhandledKeyboardAccelerator
Raised when processing a keyboard accelerator and it is determined that the browser does not, or should not based on rgHostPriorityAccels, handle that accelerator.
public HRESULT OnUnhandledKeyboardAccelerator(LPMSG lpMsg)
Parameters
lpMsgThe win32 message for the unhandled keyboard accelerator.
OnUnhandledKeyboardAcceleratorAsync
Raised when processing a keyboard accelerator and it is determined that browser does not, or should not based on rgHostPriorityAccels, handle that accelerator.
public HRESULT OnUnhandledKeyboardAcceleratorAsync(LPMSG pMsg, BOOL isShiftDown, BOOL isCtrlDown, BOOL isAltDown)
In this version of the method, the event is raised asynchronously and keyboard state may have changed since it was processed, so the state of the modifier keys is provided.
Parameters
pMsgThe win32 message for the unhandled keyboard accelerator.isShiftDownIndicates whether the Shift key was pressed.isCtrlDownIndicates whether the Ctrl key was pressed.isAltDownIndicates whether the Alt key was pressed.
OnVisibleComplete
Raised when the content of the page is being made visible.
public HRESULT OnVisibleComplete()
OnZoomChanged
Raised when the zoom has changed.
public HRESULT OnZoomChanged(ULONG ulZoomPercent)
Parameters
ulZoomPercentThe new zoom percentage.
OpenURLInEdge
Raised when the browser is requesting the host to navigate to a URL in a new window.
public HRESULT OpenURLInEdge(LPCWSTR pszUrl, const DualEngineNewWindowOptions * options, ULONG ulCookieSyncVersion)
Parameters
pszUrlThe URL to navigate to.optionsOptions to apply to the new window.ulCookieSyncVersionA number that can be used to correlate a navigation with a specific cookie state.
OpenURLInEdge2
Raised when the browser is requesting the host to navigate to a URL in a new window; this version provides extra information about the navigation.
public HRESULT OpenURLInEdge2(LPCWSTR pszUrl, const DualEngineNewWindowOptions * options, ULONG ulCookieSyncVersion, LPCWSTR pszReferrer, LPCWSTR pszHeaders, VARIANT * postData)
Parameters
pszUrlThe URL to navigate to.optionsOptions to apply to the navigation.ulCookieSyncVersionA number that can be used to correlate a navigation with a specific cookie state.pszReferrerThe HTTP Referer request header.pszHeadersAdditional HTTP headers.postDataHTTP POST data, such as form data.
RequestHostAddFavorite
Raised when a page has been requested to be added to favorites.
public HRESULT RequestHostAddFavorite(LPCWSTR pszTitle, LPCWSTR pszUrl)
Parameters
pszTitleThe title of the page.pszUrlThe URL of the page.
RequestHostCreateUrlTip
Raised when requesting to show a tooltip containing a URL.
public HRESULT RequestHostCreateUrlTip(LPCWSTR pszUrl)
Parameters
pszUrlThe URL to display in the tooltip.
RequestHostFocus
Raised when focus is being requested to move to the host window.
public HRESULT RequestHostFocus(DUALENGINE_FOCUSDIRECTION focusDirection, const MSG * msg)
Parameters
focusDirectionThe direction that focus is moving.msgA pointer to the message that caused the focus change.
RequestHostFullscreen
Raised when the page is requesting that the host display content in fullscreen.
public HRESULT RequestHostFullscreen(FULLSCREENACTION fullScreenAction)
Parameters
fullScreenActionThe fullscreen action that is being requested.
RequestHostHideUrlTip
Raised when requesting to hide a tooltip containing a URL.
public HRESULT RequestHostHideUrlTip()
RequestHostPositionChanged
Raised when the browser requests that the host change its size or position.
public HRESULT RequestHostPositionChanged(LONG nX, LONG nY, LONG nWidth, LONG nHeight, ULONGLONG hSyncEvent)
Parameters
nXThe requested window X position.nYThe requested window Y position.nWidthThe requested window width.nHeightThe requested window height.hSyncEventA handle to the event object that should be signaled when the change is complete.
RequestHostShowTheater
Raised when the browser is requesting the host to enter or leave theater mode.
public HRESULT RequestHostShowTheater(BOOL fShow)
Parameters
fShowIftrue, the host is being requested to enter theater mode; iffalse, it is being requested to leave theater mode.
RequestHostWindowFocus
Raised when the host is requested to take or give up focus.
public HRESULT RequestHostWindowFocus(BOOL fFocus)
Parameters
fFocusIndicates what should be done with focus. Iftrue, focus should be taken; otherwise it should be relinquished.
RequestHostWindowFocusSync
Raised when the host is requested to take or give up focus.
public HRESULT RequestHostWindowFocusSync(BOOL fFocus, ULONGLONG hSyncEvent)
In this version of the method, the browser will wait until the provided event is signaled.
Parameters
fFocusIndicates what should be done with focus. Iftrue, focus should be taken; otherwise it should be relinquished.hSyncEventA handle to the event object that should be signaled when the change is complete.
UpdateHostFavicon
Raised when the favicon has changed.
public HRESULT UpdateHostFavicon(ULONG ulCurrentEntryId, LPCWSTR spszCurrentUrl, LPCWSTR * pIconUrls, int cIconUrls)
Parameters
ulCurrentEntryIdThe travel log entry ID for the page that raised this event.spszCurrentUrlThe URL of the page.pIconUrlsA list of favicon URLs.cIconUrlsThe number of items inpIconUrls.
UpdateHostTitle
Raised when the title of the page has been updated.
public HRESULT UpdateHostTitle(ULONG ulCurrentEntryId, LPCWSTR pszTitle)
Parameters
ulCurrentEntryIdThe ID of the page in the visible-entries list that raised this event.pszTitleThe new title.
UpdateSecureLockIcon
Raised when security information of the page has changed.
public HRESULT UpdateSecureLockIcon(ULONG ulCurrentEntryId, SECURELOCKICON secureLockIcon)
Parameters
ulCurrentEntryIdThe travel log entry for this change.secureLockIconThe state of the security information.