OLD | NEW |
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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 // this message is already valid in the browser process. | 312 // this message is already valid in the browser process. |
313 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPrintPage, | 313 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPrintPage, |
314 PrintHostMsg_DidPrintPage_Params /* page content */) | 314 PrintHostMsg_DidPrintPage_Params /* page content */) |
315 | 315 |
316 // The renderer wants to know the default print settings. | 316 // The renderer wants to know the default print settings. |
317 IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings, | 317 IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings, |
318 PrintMsg_Print_Params /* default_settings */) | 318 PrintMsg_Print_Params /* default_settings */) |
319 | 319 |
320 // The renderer wants to update the current print settings with new | 320 // The renderer wants to update the current print settings with new |
321 // |job_settings|. | 321 // |job_settings|. |
322 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_UpdatePrintSettings, | 322 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_UpdatePrintSettings, |
323 int /* document_cookie */, | |
324 DictionaryValue /* job_settings */, | 323 DictionaryValue /* job_settings */, |
325 PrintMsg_PrintPages_Params /* current_settings */) | 324 PrintMsg_PrintPages_Params /* current_settings */) |
326 | 325 |
327 // It's the renderer that controls the printing process when it is generated | 326 // It's the renderer that controls the printing process when it is generated |
328 // by javascript. This step is about showing UI to the user to select the | 327 // by javascript. This step is about showing UI to the user to select the |
329 // final print settings. The output parameter is the same as | 328 // final print settings. The output parameter is the same as |
330 // ViewMsg_PrintPages which is executed implicitly. | 329 // ViewMsg_PrintPages which is executed implicitly. |
331 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint, | 330 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint, |
332 PrintHostMsg_ScriptedPrint_Params, | 331 PrintHostMsg_ScriptedPrint_Params, |
333 PrintMsg_PrintPages_Params | 332 PrintMsg_PrintPages_Params |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 380 |
382 // Tell the browser print preview was cancelled. | 381 // Tell the browser print preview was cancelled. |
383 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, | 382 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, |
384 int /* document cookie */) | 383 int /* document cookie */) |
385 | 384 |
386 // Tell the browser print preview found the selected printer has invalid | 385 // Tell the browser print preview found the selected printer has invalid |
387 // settings (which typically caused by disconnected network printer or printer | 386 // settings (which typically caused by disconnected network printer or printer |
388 // driver is bogus). | 387 // driver is bogus). |
389 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, | 388 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, |
390 int /* document cookie */) | 389 int /* document cookie */) |
OLD | NEW |