From 7357b2dcb4238db04c1483a50614109ff661bee4 Mon Sep 17 00:00:00 2001 From: "mhm@chromium.org" Date: Sat, 30 May 2009 05:26:24 +0000 Subject: 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 --- chrome/common/chrome_switches.cc | 3 +++ chrome/common/chrome_switches.h | 1 + 2 files changed, 4 insertions(+) (limited to 'chrome/common') 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[]; -- cgit v1.1