summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authormhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-30 05:26:24 +0000
committermhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-30 05:26:24 +0000
commit7357b2dcb4238db04c1483a50614109ff661bee4 (patch)
treefa9e17ef4ed7ce9e8f84fddb0d75ec8a9c0f4829 /chrome/common
parentf0af6a7ccfde1fb8068f89b190337c1a8ef99890 (diff)
downloadchromium_src-7357b2dcb4238db04c1483a50614109ff661bee4.zip
chromium_src-7357b2dcb4238db04c1483a50614109ff661bee4.tar.gz
chromium_src-7357b2dcb4238db04c1483a50614109ff661bee4.tar.bz2
Add --print command line argument to print a webpage
Added a new chrome switch called "print" and after the urls are being loaded, I call the last active browser and print the selected tab. BUG=6942 (http://crbug.com/6942) TEST=Added command line arguments [chrome.exe --print http://google.ca and the print dialog appeared for the selected tab component. based on: http://codereview.chromium.org/100027 Review URL: http://codereview.chromium.org/118048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17283 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_switches.cc3
-rw-r--r--chrome/common/chrome_switches.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index feb9cf3..ffe8d9c 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -263,6 +263,9 @@ extern const wchar_t kDnsPrefetchDisable[] = L"dns-prefetch-disable";
// Enables support to debug printing subsystem.
const wchar_t kDebugPrint[] = L"debug-print";
+// Prints the pages on the screen.
+const wchar_t kPrint[] = L"print";
+
// Allow initialization of all activex controls. This is only to help website
// developers test their controls to see if they are compatible in Chrome.
// Note there's a duplicate value in activex_shared.cc (to avoid
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index a4782e1..e7adab0 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -84,6 +84,7 @@ extern const wchar_t kProxyAutoDetect[];
extern const wchar_t kProxyPacUrl[];
extern const wchar_t kWinHttpProxyResolver[];
extern const wchar_t kDebugPrint[];
+extern const wchar_t kPrint[];
extern const wchar_t kDnsLogDetails[];
extern const wchar_t kDnsPrefetchDisable[];