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

Unified Diff: headless/public/headless_web_contents.h

Issue 2199773002: headless: make initial screen/window sizes configurable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix constexpr, reference to screen_size in test. Created 4 years, 4 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
« no previous file with comments | « headless/public/headless_browser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_web_contents.h
diff --git a/headless/public/headless_web_contents.h b/headless/public/headless_web_contents.h
index ee17c0ebd9433ae8eba0028fa463eeec9cbc2d8d..0c5039db4b9826a5afac63a875399d5be7c66c25 100644
--- a/headless/public/headless_web_contents.h
+++ b/headless/public/headless_web_contents.h
@@ -76,7 +76,7 @@ class HEADLESS_EXPORT HeadlessWebContents::Builder {
// about:blank.
Builder& SetInitialURL(const GURL& initial_url);
- // Specify the initial window size (default is 800x600).
+ // Specify the initial window size (default is configured in browser options).
Builder& SetWindowSize(const gfx::Size& size);
// Set a browser context for storing session data (e.g., cookies, cache, local
@@ -135,7 +135,7 @@ class HEADLESS_EXPORT HeadlessWebContents::Builder {
HeadlessBrowserImpl* browser_;
GURL initial_url_ = GURL("about:blank");
- gfx::Size window_size_ = gfx::Size(800, 600);
+ gfx::Size window_size_;
HeadlessBrowserContext* browser_context_;
std::list<MojoService> mojo_services_;
« no previous file with comments | « headless/public/headless_browser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698