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

Side by Side Diff: chrome/common/print_messages.h

Issue 7639023: Revert 96567 - Reland 96406 - Print preview page selection should not require a rerendering of dr... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/browser/resources/print_preview/print_preview.js ('k') | chrome/renderer/mock_printer.h » ('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 // IPC messages for printing. 5 // IPC messages for printing.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, 180 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview,
181 DictionaryValue /* settings */) 181 DictionaryValue /* settings */)
182 182
183 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. 183 // Like PrintMsg_PrintPages, but using the print preview document's frame/node.
184 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) 184 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog)
185 185
186 // Tells a renderer to stop blocking script initiated printing. 186 // Tells a renderer to stop blocking script initiated printing.
187 IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount) 187 IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount)
188 188
189 // Tells a renderer to continue generating the print preview. 189 // Tells a renderer to continue generating the print preview.
190 IPC_MESSAGE_ROUTED0(PrintMsg_ContinuePreview) 190 // Use |requested_preview_page_index| to request a specific preview page data.
191 // |requested_preview_page_index| is 1-based or |printing::INVALID_PAGE_INDEX|
192 // to render the next page.
193 IPC_MESSAGE_ROUTED1(PrintMsg_ContinuePreview,
194 int /* requested_preview_page_index */)
191 195
192 // Tells a renderer to abort the print preview and reset all state. 196 // Tells a renderer to abort the print preview and reset all state.
193 IPC_MESSAGE_ROUTED0(PrintMsg_AbortPreview) 197 IPC_MESSAGE_ROUTED0(PrintMsg_AbortPreview)
194 198
195 // Messages sent from the renderer to the browser. 199 // Messages sent from the renderer to the browser.
196 200
197 #if defined(OS_WIN) 201 #if defined(OS_WIN)
198 // Duplicates a shared memory handle from the renderer to the browser. Then 202 // Duplicates a shared memory handle from the renderer to the browser. Then
199 // the renderer can flush the handle. 203 // the renderer can flush the handle.
200 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, 204 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 base::FileDescriptor /* temp file fd */, 252 base::FileDescriptor /* temp file fd */,
249 int /* fd in browser*/) 253 int /* fd in browser*/)
250 IPC_MESSAGE_CONTROL1(PrintHostMsg_TempFileForPrintingWritten, 254 IPC_MESSAGE_CONTROL1(PrintHostMsg_TempFileForPrintingWritten,
251 int /* fd in browser */) 255 int /* fd in browser */)
252 #endif 256 #endif
253 257
254 // Asks the browser to do print preview. 258 // Asks the browser to do print preview.
255 IPC_MESSAGE_ROUTED0(PrintHostMsg_RequestPrintPreview) 259 IPC_MESSAGE_ROUTED0(PrintHostMsg_RequestPrintPreview)
256 260
257 // Notify the browser the number of pages in the print preview document. 261 // Notify the browser the number of pages in the print preview document.
258 IPC_MESSAGE_ROUTED4(PrintHostMsg_DidGetPreviewPageCount, 262 IPC_MESSAGE_ROUTED3(PrintHostMsg_DidGetPreviewPageCount,
259 int /* document cookie */, 263 int /* document cookie */,
260 int /* page count */, 264 int /* page count */,
261 bool /* is modifiable */, 265 bool /* is modifiable */)
262 bool /* clear all preview data */)
263 266
264 // Notify the browser a print preview page has been rendered. 267 // Notify the browser a print preview page has been rendered.
265 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage, 268 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage,
266 PrintHostMsg_DidPreviewPage_Params /* params */) 269 PrintHostMsg_DidPreviewPage_Params /* params */)
267 270
268 // Sends back to the browser the complete rendered document for print preview 271 // Sends back to the browser the complete rendered document for print preview
269 // that was requested by a PrintMsg_PrintPreview message. The memory handle in 272 // that was requested by a PrintMsg_PrintPreview message. The memory handle in
270 // this message is already valid in the browser process. 273 // this message is already valid in the browser process.
271 IPC_MESSAGE_ROUTED1(PrintHostMsg_MetafileReadyForPrinting, 274 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview,
272 PrintHostMsg_DidPreviewDocument_Params /* params */) 275 PrintHostMsg_DidPreviewDocument_Params /* params */)
273 276
274 // Tell the browser printing failed. 277 // Tell the browser printing failed.
275 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, 278 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
276 int /* document cookie */) 279 int /* document cookie */)
277 280
278 // Tell the browser print preview failed. 281 // Tell the browser print preview failed.
279 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, 282 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed,
280 int /* document cookie */) 283 int /* document cookie */)
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview.js ('k') | chrome/renderer/mock_printer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698