ExtensionHandlerGetActiveBrowser Method |
Version 97.1.60
Called when no tabId is specified to an extension API call that accepts a tabId parameter (e.g. chrome.tabs.*).
Namespace:
CefSharp.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 97.1.60.0 (97.1.60.0)
Syntaxprotected virtual IBrowser GetActiveBrowser(
IExtension extension,
IBrowser browser,
bool includeIncognito
)
protected:
virtual IBrowser^ GetActiveBrowser(
IExtension^ extension,
IBrowser^ browser,
bool includeIncognito
)
Parameters
- extension
- Type: CefSharpIExtension
extension the call originates from - browser
- Type: CefSharpIBrowser
browser the call originates from - includeIncognito
- Type: SystemBoolean
Incognito browsers should not be considered unless the source extension has incognito
access enabled, inwhich case this will be true
Return Value
Type:
IBrowserReturn the browser that will be acted on by the API call or return null to act on
browser.
The returned browser must share the same IRequestContext as
browser
See Also