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

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

Issue 9699040: PrintPreview: Hide/Show the header footer option based on print frame margins. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: '' Created 8 years, 9 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) 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 IPC_MESSAGE_ROUTED2(PrintHostMsg_RequestPrintPreview, 358 IPC_MESSAGE_ROUTED2(PrintHostMsg_RequestPrintPreview,
359 bool /* is_modifiable */, 359 bool /* is_modifiable */,
360 bool /* webnode_only */) 360 bool /* webnode_only */)
361 361
362 // Notify the browser the number of pages in the print preview document. 362 // Notify the browser the number of pages in the print preview document.
363 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount, 363 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount,
364 PrintHostMsg_DidGetPreviewPageCount_Params /* params */) 364 PrintHostMsg_DidGetPreviewPageCount_Params /* params */)
365 365
366 // Notify the browser of the default page layout according to the currently 366 // Notify the browser of the default page layout according to the currently
367 // selected printer and page size. 367 // selected printer and page size.
368 // |printable_area_in_points| Specifies the printable area in points.
368 // |has_custom_page_size_style| is true when the printing frame has a custom 369 // |has_custom_page_size_style| is true when the printing frame has a custom
369 // page size css otherwise false. 370 // page size css otherwise false.
370 IPC_MESSAGE_ROUTED2(PrintHostMsg_DidGetDefaultPageLayout, 371 IPC_MESSAGE_ROUTED3(PrintHostMsg_DidGetDefaultPageLayout,
371 printing::PageSizeMargins /* page layout in points */, 372 printing::PageSizeMargins /* page layout in points */,
373 gfx::Rect /* printable area in points */,
372 bool /* has custom page size style */) 374 bool /* has custom page size style */)
373 375
374 // Notify the browser a print preview page has been rendered. 376 // Notify the browser a print preview page has been rendered.
375 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage, 377 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage,
376 PrintHostMsg_DidPreviewPage_Params /* params */) 378 PrintHostMsg_DidPreviewPage_Params /* params */)
377 379
378 // Asks the browser whether the print preview has been cancelled. 380 // Asks the browser whether the print preview has been cancelled.
379 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel, 381 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel,
380 std::string /* print preview ui address */, 382 std::string /* print preview ui address */,
381 int /* request id */, 383 int /* request id */,
(...skipping 20 matching lines...) Expand all
402 // Tell the browser print preview found the selected printer has invalid 404 // Tell the browser print preview found the selected printer has invalid
403 // settings (which typically caused by disconnected network printer or printer 405 // settings (which typically caused by disconnected network printer or printer
404 // driver is bogus). 406 // driver is bogus).
405 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, 407 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings,
406 int /* document cookie */) 408 int /* document cookie */)
407 409
408 // Run a nested message loop in the renderer until print preview for 410 // Run a nested message loop in the renderer until print preview for
409 // window.print() finishes. 411 // window.print() finishes.
410 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, 412 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview,
411 bool /* is_modifiable */) 413 bool /* is_modifiable */)
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.cc ('k') | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698