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

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

Issue 854513002: Remove the discrepencies between chrome and android_webview print (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 8 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276
9 9
10 #include <string> 10 #include <string>
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // final print settings. The output parameter is the same as 369 // final print settings. The output parameter is the same as
370 // ViewMsg_PrintPages which is executed implicitly. 370 // ViewMsg_PrintPages which is executed implicitly.
371 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint, 371 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint,
372 PrintHostMsg_ScriptedPrint_Params, 372 PrintHostMsg_ScriptedPrint_Params,
373 PrintMsg_PrintPages_Params 373 PrintMsg_PrintPages_Params
374 /* settings chosen by the user*/) 374 /* settings chosen by the user*/)
375 375
376 #if defined(OS_ANDROID) 376 #if defined(OS_ANDROID)
377 // Asks the browser to create a temporary file for the renderer to fill 377 // Asks the browser to create a temporary file for the renderer to fill
378 // in resulting PdfMetafileSkia in printing. 378 // in resulting PdfMetafileSkia in printing.
379 IPC_SYNC_MESSAGE_ROUTED0_2(PrintHostMsg_AllocateTempFileForPrinting, 379 IPC_SYNC_MESSAGE_CONTROL1_2(PrintHostMsg_AllocateTempFileForPrinting,
380 base::FileDescriptor /* temp file fd */, 380 int /* render_view_id */,
381 int /* fd in browser*/) 381 base::FileDescriptor /* temp file fd */,
382 IPC_MESSAGE_ROUTED1(PrintHostMsg_TempFileForPrintingWritten, 382 int /* fd in browser*/)
383 int /* fd in browser */) 383 IPC_MESSAGE_CONTROL2(PrintHostMsg_TempFileForPrintingWritten,
384 int /* render_view_id */,
385 int /* fd in browser */)
384 #endif 386 #endif
385 // Asks the browser to do print preview. 387 // Asks the browser to do print preview.
386 IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview, 388 IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview,
387 PrintHostMsg_RequestPrintPreview_Params /* params */) 389 PrintHostMsg_RequestPrintPreview_Params /* params */)
388 390
389 // Notify the browser the number of pages in the print preview document. 391 // Notify the browser the number of pages in the print preview document.
390 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount, 392 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount,
391 PrintHostMsg_DidGetPreviewPageCount_Params /* params */) 393 PrintHostMsg_DidGetPreviewPageCount_Params /* params */)
392 394
393 // Notify the browser of the default page layout according to the currently 395 // Notify the browser of the default page layout according to the currently
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) 441 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview)
440 442
441 // Tell the browser to show the print preview, when the document is sufficiently 443 // Tell the browser to show the print preview, when the document is sufficiently
442 // loaded such that the renderer can determine whether it is modifiable or not. 444 // loaded such that the renderer can determine whether it is modifiable or not.
443 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, 445 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
444 bool /* is_modifiable */) 446 bool /* is_modifiable */)
445 447
446 // Notify the browser that the PDF in the initiator renderer has disabled print 448 // Notify the browser that the PDF in the initiator renderer has disabled print
447 // scaling option. 449 // scaling option.
448 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) 450 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698