summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_switches.cc
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 00:33:38 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 00:33:38 +0000
commitf4acfae80866fff2e2fc760c396ba89db57de522 (patch)
treeccdd618b0d16fb94e8c10d11218b689df8cd9083 /chrome/common/chrome_switches.cc
parent33521502aee91e668255810164fd122b7b47bd89 (diff)
downloadchromium_src-f4acfae80866fff2e2fc760c396ba89db57de522.zip
chromium_src-f4acfae80866fff2e2fc760c396ba89db57de522.tar.gz
chromium_src-f4acfae80866fff2e2fc760c396ba89db57de522.tar.bz2
Add command line switch --activate-on-launch to help Selenium.
Implemented for Mac; behavior implicit on Windows. If you do NOT get an "activate on launch" behavior on Windows, it is because Selenium is not the current foreground app. See http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx for details on foreground behavior. This isn't something we can fix in Chrome on Windows. BUG=http://crbug.com/20935 TEST=Launch Chrome from the command line. E.g. "..../Chromium.app/Contents/MacOS/Chromium". See it NOT gain foreground. Add --activate-on-launch. DO see it gain foreground. Review URL: http://codereview.chromium.org/202053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_switches.cc')
-rw-r--r--chrome/common/chrome_switches.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 90cd98f..db5219c 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -604,4 +604,8 @@ const wchar_t kEnableByteRangeSupport[] = L"enable-byte-range-support";
// numbers.
const wchar_t kExplicitlyAllowedPorts[] = L"explicitly-allowed-ports";
+// Activate (make foreground) myself on launch. Helpful when Chrome
+// is launched on the command line (e.g. by Selenium). Only needed on Mac.
+const wchar_t kActivateOnLaunch[] = L"activate-on-launch";
+
} // namespace switches