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

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

Issue 23116003: Adds PrintingContext implementation stub for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds printing support for Chrome for Android. Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 363
364 // It's the renderer that controls the printing process when it is generated 364 // It's the renderer that controls the printing process when it is generated
365 // by javascript. This step is about showing UI to the user to select the 365 // by javascript. This step is about showing UI to the user to select the
366 // final print settings. The output parameter is the same as 366 // final print settings. The output parameter is the same as
367 // ViewMsg_PrintPages which is executed implicitly. 367 // ViewMsg_PrintPages which is executed implicitly.
368 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint, 368 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint,
369 PrintHostMsg_ScriptedPrint_Params, 369 PrintHostMsg_ScriptedPrint_Params,
370 PrintMsg_PrintPages_Params 370 PrintMsg_PrintPages_Params
371 /* settings chosen by the user*/) 371 /* settings chosen by the user*/)
372 372
373 #if defined(USE_X11) 373 #if defined(USE_X11) || defined(OS_ANDROID)
Lei Zhang 2013/08/13 23:26:37 BTW, can you change USE_X11 to OS_CHROMEOS?
cimamoglu1 2013/08/14 16:10:36 Done.
374 // Asks the browser to create a temporary file for the renderer to fill 374 // Asks the browser to create a temporary file for the renderer to fill
375 // in resulting NativeMetafile in printing. 375 // in resulting NativeMetafile in printing.
376 IPC_SYNC_MESSAGE_CONTROL0_2(PrintHostMsg_AllocateTempFileForPrinting, 376 IPC_SYNC_MESSAGE_CONTROL1_2(PrintHostMsg_AllocateTempFileForPrinting,
377 int /* render_view_id */, // Used only by Android.
Lei Zhang 2013/08/13 23:26:37 We can use the RenderView id on CrOS as well. Just
cimamoglu1 2013/08/14 16:10:36 Done.
377 base::FileDescriptor /* temp file fd */, 378 base::FileDescriptor /* temp file fd */,
378 int /* fd in browser*/) 379 int /* fd in browser*/) // Used only by Chrome OS.
379 IPC_MESSAGE_CONTROL2(PrintHostMsg_TempFileForPrintingWritten, 380 IPC_MESSAGE_CONTROL2(PrintHostMsg_TempFileForPrintingWritten,
380 int /* render_view_id */, 381 int /* render_view_id */,
381 int /* fd in browser */) 382 int /* fd in browser */) // Used only by Chrome OS.
382 #endif 383 #endif
383 384
384 // Asks the browser to do print preview. 385 // Asks the browser to do print preview.
385 IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview, 386 IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview,
386 PrintHostMsg_RequestPrintPreview_Params /* params */) 387 PrintHostMsg_RequestPrintPreview_Params /* params */)
387 388
388 // Notify the browser the number of pages in the print preview document. 389 // Notify the browser the number of pages in the print preview document.
389 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount, 390 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount,
390 PrintHostMsg_DidGetPreviewPageCount_Params /* params */) 391 PrintHostMsg_DidGetPreviewPageCount_Params /* params */)
391 392
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 int /* document cookie */) 435 int /* document cookie */)
435 436
436 // Run a nested message loop in the renderer until print preview for 437 // Run a nested message loop in the renderer until print preview for
437 // window.print() finishes. 438 // window.print() finishes.
438 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, 439 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview,
439 bool /* is_modifiable */) 440 bool /* is_modifiable */)
440 441
441 // Notify the browser that the PDF in the initiator renderer has disabled print 442 // Notify the browser that the PDF in the initiator renderer has disabled print
442 // scaling option. 443 // scaling option.
443 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) 444 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698