Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Unified Diff: headless/lib/browser/headless_web_contents_impl.cc

Issue 2896763002: Implement window management devtools commands for headless. (Closed)
Patch Set: nit and rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: headless/lib/browser/headless_web_contents_impl.cc
diff --git a/headless/lib/browser/headless_web_contents_impl.cc b/headless/lib/browser/headless_web_contents_impl.cc
index b2e40c859662a645ba6edee420ae3c691466b7f0..2ba696bafcd4c7a8076500186ed8b43dbe81c166 100644
--- a/headless/lib/browser/headless_web_contents_impl.cc
+++ b/headless/lib/browser/headless_web_contents_impl.cc
@@ -194,6 +194,9 @@ HeadlessWebContentsImpl::CreateFromWebContents(
}
void HeadlessWebContentsImpl::InitializeScreen(const gfx::Size& initial_size) {
+ static int window_id = 1;
+ window_id_ = window_id++;
+ window_state_ = "normal";
browser()->PlatformInitializeWebContents(initial_size, this);
}
« no previous file with comments | « headless/lib/browser/headless_web_contents_impl.h ('k') | headless/lib/headless_devtools_client_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698