diff options
author | sverrir@google.com <sverrir@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-08 17:05:21 +0000 |
---|---|---|
committer | sverrir@google.com <sverrir@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-08 17:05:21 +0000 |
commit | c8ad40c6b02751c1cc942abe4ecaffbf68bfa611 (patch) | |
tree | d34b6d63f8a66fb06c3f87ce1914eefb755cf441 /chrome/renderer/mock_printer.h | |
parent | a91d541c58ad5e3b46309ee279bc569734a22564 (diff) | |
download | chromium_src-c8ad40c6b02751c1cc942abe4ecaffbf68bfa611.zip chromium_src-c8ad40c6b02751c1cc942abe4ecaffbf68bfa611.tar.gz chromium_src-c8ad40c6b02751c1cc942abe4ecaffbf68bfa611.tar.bz2 |
Add support for printing selection only flag. This only adds the flag to the IPC and implements the Windows dialog interaction but does not enable this just yet.
BUG=http://crbug.com/1682
TEST=none
Review URL: http://codereview.chromium.org/118338
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_printer.h')
-rw-r--r-- | chrome/renderer/mock_printer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/renderer/mock_printer.h b/chrome/renderer/mock_printer.h index bf318c1..16577cb 100644 --- a/chrome/renderer/mock_printer.h +++ b/chrome/renderer/mock_printer.h @@ -100,6 +100,7 @@ class MockPrinter { void GetDefaultPrintSettings(ViewMsg_Print_Params* params); void ScriptedPrint(int cookie, int expected_pages_count, + bool has_selection, ViewMsg_PrintPages_Params* settings); void SetPrintedPagesCount(int cookie, int number_pages); void PrintPage(const ViewHostMsg_DidPrintPage_Params& params); @@ -133,6 +134,9 @@ class MockPrinter { // Desired apparent dpi on paper. int desired_dpi_; + // Print selection. + bool selection_only_; + // Cookie for the document to ensure correctness. int document_cookie_; int current_document_cookie_; |