Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/renderer/mock_render_thread.h

Issue 7544018: Print preview page selection should not require a rerendering of draft pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/mock_printer.cc ('k') | chrome/renderer/mock_render_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 5 #ifndef CHROME_RENDERER_MOCK_RENDER_THREAD_H_
6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // PrintWebViewHelper expects default print settings. 119 // PrintWebViewHelper expects default print settings.
120 void OnGetDefaultPrintSettings(PrintMsg_Print_Params* setting); 120 void OnGetDefaultPrintSettings(PrintMsg_Print_Params* setting);
121 121
122 // PrintWebViewHelper expects final print settings from the user. 122 // PrintWebViewHelper expects final print settings from the user.
123 void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params, 123 void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params,
124 PrintMsg_PrintPages_Params* settings); 124 PrintMsg_PrintPages_Params* settings);
125 125
126 void OnDidGetPrintedPagesCount(int cookie, int number_pages); 126 void OnDidGetPrintedPagesCount(int cookie, int number_pages);
127 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); 127 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params);
128 void OnDidGetPreviewPageCount(int document_cookie, int number_pages, 128 void OnDidGetPreviewPageCount(int document_cookie, int number_pages,
129 bool is_modifiable); 129 bool is_modifiable, bool clear_preview_data);
130 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); 130 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params);
131 131
132 // For print preview, PrintWebViewHelper will update settings. 132 // For print preview, PrintWebViewHelper will update settings.
133 void OnUpdatePrintSettings(int document_cookie, 133 void OnUpdatePrintSettings(int document_cookie,
134 const DictionaryValue& job_settings, 134 const DictionaryValue& job_settings,
135 PrintMsg_PrintPages_Params* params); 135 PrintMsg_PrintPages_Params* params);
136 136
137 IPC::TestSink sink_; 137 IPC::TestSink sink_;
138 138
139 // Routing id what will be assigned to the Widget. 139 // Routing id what will be assigned to the Widget.
(...skipping 13 matching lines...) Expand all
153 scoped_ptr<MockPrinter> printer_; 153 scoped_ptr<MockPrinter> printer_;
154 154
155 // True to simulate user clicking print. False to cancel. 155 // True to simulate user clicking print. False to cancel.
156 bool print_dialog_user_response_; 156 bool print_dialog_user_response_;
157 157
158 // Number of pages to generate for print preview. 158 // Number of pages to generate for print preview.
159 int print_preview_pages_remaining_; 159 int print_preview_pages_remaining_;
160 }; 160 };
161 161
162 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 162 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/renderer/mock_printer.cc ('k') | chrome/renderer/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698