diff options
author | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-14 02:21:06 +0000 |
---|---|---|
committer | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-14 02:21:06 +0000 |
commit | 113baf98fdf2b0992ee668cd414fa34ce3c53b12 (patch) | |
tree | 99145004eae546bf4bd8f730b15d463921d6936a /chrome/common | |
parent | 3942a25369d4e15de6c47b0c1df59827eec49a5e (diff) | |
download | chromium_src-113baf98fdf2b0992ee668cd414fa34ce3c53b12.zip chromium_src-113baf98fdf2b0992ee668cd414fa34ce3c53b12.tar.gz chromium_src-113baf98fdf2b0992ee668cd414fa34ce3c53b12.tar.bz2 |
Add --window-size and --window-position commandline options.
BUG=35153
TEST=run chrome with --window-size=w,h and/or --window-position=x,y and verify correct window placement and size.
Review URL: http://codereview.chromium.org/9379026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 6 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 81833b3..98a3308 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -1109,6 +1109,12 @@ const char kVersion[] = "version"; // Adds the given extension ID to all the permission whitelists. const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; +// Specify the initial window position: --window-position=x,y +const char kWindowPosition[] = "window-position"; + +// Specify the initial window size: --window-size=w,h +const char kWindowSize[] = "window-size"; + // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to // use Chromium's network stack to fetch, and V8 to evaluate. const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index fcbdec5..20a296a 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -302,6 +302,8 @@ extern const char kMaxSpdyConcurrentStreams[]; extern const char kUserDataDir[]; extern const char kVersion[]; extern const char kWhitelistedExtensionID[]; +extern const char kWindowPosition[]; +extern const char kWindowSize[]; extern const char kWinHttpProxyResolver[]; extern const char kMemoryWidget[]; |