mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
osr: Support DevTools windows with Chrome runtime Alloy style (see #3681)
This commit is contained in:
@ -64,4 +64,12 @@ bool GetAlloyTabById(int tab_id,
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsAlloyContents(content::WebContents* contents, bool primary_only) {
|
||||
auto browser = CefBrowserHostBase::GetBrowserForContents(contents);
|
||||
if (browser && browser->IsAlloyStyle()) {
|
||||
return !primary_only || browser->GetWebContents() == contents;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace cef
|
||||
|
Reference in New Issue
Block a user