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

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: Rebase 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // |has_custom_page_size_style| is true when the printing frame has a custom 368 // |has_custom_page_size_style| is true when the printing frame has a custom
369 // page size css otherwise false. 369 // page size css otherwise false.
370 IPC_MESSAGE_ROUTED2(PrintHostMsg_DidGetDefaultPageLayout, 370 // |header_footer_applies| is true when the printing frame has sufficient
371 // margin values to add header or footer.
372 IPC_MESSAGE_ROUTED3(PrintHostMsg_DidGetDefaultPageLayout,
371 printing::PageSizeMargins /* page layout in points */, 373 printing::PageSizeMargins /* page layout in points */,
372 bool /* has custom page size style */) 374 bool /* has custom page size style */,
375 bool /* header footer applies */)
373 376
374 // Notify the browser a print preview page has been rendered. 377 // Notify the browser a print preview page has been rendered.
375 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage, 378 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage,
376 PrintHostMsg_DidPreviewPage_Params /* params */) 379 PrintHostMsg_DidPreviewPage_Params /* params */)
377 380
378 // Asks the browser whether the print preview has been cancelled. 381 // Asks the browser whether the print preview has been cancelled.
379 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel, 382 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel,
380 std::string /* print preview ui address */, 383 std::string /* print preview ui address */,
381 int /* request id */, 384 int /* request id */,
382 bool /* print preview cancelled */) 385 bool /* print preview cancelled */)
(...skipping 19 matching lines...) Expand all
402 // Tell the browser print preview found the selected printer has invalid 405 // Tell the browser print preview found the selected printer has invalid
403 // settings (which typically caused by disconnected network printer or printer 406 // settings (which typically caused by disconnected network printer or printer
404 // driver is bogus). 407 // driver is bogus).
405 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, 408 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings,
406 int /* document cookie */) 409 int /* document cookie */)
407 410
408 // Run a nested message loop in the renderer until print preview for 411 // Run a nested message loop in the renderer until print preview for
409 // window.print() finishes. 412 // window.print() finishes.
410 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, 413 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview,
411 bool /* is_modifiable */) 414 bool /* is_modifiable */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698