chore: bump chromium to 9b2191ea59cba1e2f6da4dbb7dee0 (master) (#25995)

This commit is contained in:
Electron Bot 2020-10-27 17:33:04 -07:00 committed by GitHub
parent 284c1b9539
commit bf89237f60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
77 changed files with 441 additions and 610 deletions

View file

@ -343,6 +343,7 @@ InspectableWebContents::InspectableWebContents(
pref_service_(pref_service),
web_contents_(web_contents),
is_guest_(is_guest),
is_docked_(true),
view_(CreateInspectableContentsView(this)),
weak_factory_(this) {
const base::Value* bounds_dict = pref_service_->Get(kDevToolsBoundsPref);
@ -626,7 +627,7 @@ void InspectableWebContents::AddDevToolsExtensionsToClient() {
#endif
void InspectableWebContents::SetInspectedPageBounds(const gfx::Rect& rect) {
DevToolsContentsResizingStrategy strategy(rect);
DevToolsContentsResizingStrategy strategy(rect, is_docked_);
if (contents_resizing_strategy_.Equals(strategy))
return;
@ -703,6 +704,7 @@ void InspectableWebContents::LoadNetworkResource(
void InspectableWebContents::SetIsDocked(const DispatchCallback& callback,
bool docked) {
is_docked_ = docked;
if (managed_devtools_web_contents_)
view_->SetIsDocked(docked, activate_);
if (!callback.is_null())