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

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

Issue 2896763002: Implement window management devtools commands for headless. (Closed)
Patch Set: map 1 tab to 1 window and remove screen_size 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 36015b66c4cf675fbb05f33f643018e63daddb68..e6db22e10637923a8edc662d1bf19d6d26385116 100644
--- a/headless/lib/browser/headless_web_contents_impl.cc
+++ b/headless/lib/browser/headless_web_contents_impl.cc
@@ -192,6 +192,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);
}

Powered by Google App Engine
This is Rietveld 408576698