summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/mock_printer.h
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-31 05:19:41 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-31 05:19:41 +0000
commit576f9964c7ab5b355a3f02164066119d96e00463 (patch)
tree2d2e3a80c16827eb5db91534d793f71b33ffc00c /chrome/renderer/mock_printer.h
parente94c69f6b25f93e7d2b97766686a487777eec88f (diff)
downloadchromium_src-576f9964c7ab5b355a3f02164066119d96e00463.zip
chromium_src-576f9964c7ab5b355a3f02164066119d96e00463.tar.gz
chromium_src-576f9964c7ab5b355a3f02164066119d96e00463.tar.bz2
Print preview page selection should not require a rerendering of draft pages.
On page selection, regenerate the complete document with the selection, but preserve the existing draft pages and simply display a subset of them. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7647010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_printer.h')
-rw-r--r--chrome/renderer/mock_printer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/mock_printer.h b/chrome/renderer/mock_printer.h
index 0a85780..bbde217 100644
--- a/chrome/renderer/mock_printer.h
+++ b/chrome/renderer/mock_printer.h
@@ -76,7 +76,8 @@ class MockPrinter {
int expected_pages_count,
bool has_selection,
PrintMsg_PrintPages_Params* settings);
- void UpdateSettings(int cookie, PrintMsg_PrintPages_Params* params);
+ void UpdateSettings(int cookie, PrintMsg_PrintPages_Params* params,
+ const std::vector<int>& page_range_array);
void SetPrintedPagesCount(int cookie, int number_pages);
void PrintPage(const PrintHostMsg_DidPrintPage_Params& params);