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

Side by Side Diff: chrome/common/print_messages.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: 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
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, 185 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview,
186 DictionaryValue /* settings */) 186 DictionaryValue /* settings */)
187 187
188 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. 188 // Like PrintMsg_PrintPages, but using the print preview document's frame/node.
189 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) 189 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog)
190 190
191 // Tells a renderer to stop blocking script initiated printing. 191 // Tells a renderer to stop blocking script initiated printing.
192 IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount) 192 IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount)
193 193
194 // Tells a renderer to continue generating the print preview. 194 // Tells a renderer to continue generating the print preview.
195 // Use |requested_preview_page_index| to request a specific preview page data. 195 IPC_MESSAGE_ROUTED0(PrintMsg_ContinuePreview)
196 // |requested_preview_page_index| is 1-based or |printing::INVALID_PAGE_INDEX|
197 // to render the next page.
198 IPC_MESSAGE_ROUTED1(PrintMsg_ContinuePreview,
199 int /* requested_preview_page_index */)
200 196
201 // Tells a renderer to abort the print preview and reset all state. 197 // Tells a renderer to abort the print preview and reset all state.
202 IPC_MESSAGE_ROUTED0(PrintMsg_AbortPreview) 198 IPC_MESSAGE_ROUTED0(PrintMsg_AbortPreview)
203 199
204 // Messages sent from the renderer to the browser. 200 // Messages sent from the renderer to the browser.
205 201
206 #if defined(OS_WIN) 202 #if defined(OS_WIN)
207 // Duplicates a shared memory handle from the renderer to the browser. Then 203 // Duplicates a shared memory handle from the renderer to the browser. Then
208 // the renderer can flush the handle. 204 // the renderer can flush the handle.
209 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, 205 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 base::FileDescriptor /* temp file fd */, 253 base::FileDescriptor /* temp file fd */,
258 int /* fd in browser*/) 254 int /* fd in browser*/)
259 IPC_MESSAGE_CONTROL1(PrintHostMsg_TempFileForPrintingWritten, 255 IPC_MESSAGE_CONTROL1(PrintHostMsg_TempFileForPrintingWritten,
260 int /* fd in browser */) 256 int /* fd in browser */)
261 #endif 257 #endif
262 258
263 // Asks the browser to do print preview. 259 // Asks the browser to do print preview.
264 IPC_MESSAGE_ROUTED0(PrintHostMsg_RequestPrintPreview) 260 IPC_MESSAGE_ROUTED0(PrintHostMsg_RequestPrintPreview)
265 261
266 // Notify the browser the number of pages in the print preview document. 262 // Notify the browser the number of pages in the print preview document.
267 IPC_MESSAGE_ROUTED3(PrintHostMsg_DidGetPreviewPageCount, 263 IPC_MESSAGE_ROUTED4(PrintHostMsg_DidGetPreviewPageCount,
268 int /* document cookie */, 264 int /* document cookie */,
269 int /* page count */, 265 int /* page count */,
270 bool /* is modifiable */) 266 bool /* is modifiable */,
267 bool /* clear all preview data */)
271 268
272 // Notify the browser a print preview page has been rendered. 269 // Notify the browser a print preview page has been rendered.
273 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage, 270 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage,
274 PrintHostMsg_DidPreviewPage_Params /* params */) 271 PrintHostMsg_DidPreviewPage_Params /* params */)
275 272
276 // Sends back to the browser the complete rendered document for print preview 273 // Sends back to the browser the complete rendered document for print preview
277 // that was requested by a PrintMsg_PrintPreview message. The memory handle in 274 // that was requested by a PrintMsg_PrintPreview message. The memory handle in
278 // this message is already valid in the browser process. 275 // this message is already valid in the browser process.
279 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, 276 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview,
280 PrintHostMsg_DidPreviewDocument_Params /* params */) 277 PrintHostMsg_DidPreviewDocument_Params /* params */)
281 278
282 // Tell the browser printing failed. 279 // Tell the browser printing failed.
283 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, 280 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
284 int /* document cookie */) 281 int /* document cookie */)
285 282
286 // Tell the browser print preview failed. 283 // Tell the browser print preview failed.
287 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, 284 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed,
288 int /* document cookie */) 285 int /* document cookie */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698