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

Side by Side Diff: components/printing/common/print_messages.h

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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 <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/memory/shared_memory.h" 13 #include "base/memory/shared_memory.h"
12 #include "base/values.h" 14 #include "base/values.h"
15 #include "build/build_config.h"
13 #include "components/printing/common/printing_param_traits_macros.h" 16 #include "components/printing/common/printing_param_traits_macros.h"
14 #include "ipc/ipc_message_macros.h" 17 #include "ipc/ipc_message_macros.h"
15 #include "printing/page_range.h" 18 #include "printing/page_range.h"
16 #include "printing/page_size_margins.h" 19 #include "printing/page_size_margins.h"
17 #include "printing/print_job_constants.h" 20 #include "printing/print_job_constants.h"
18 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" 21 #include "third_party/WebKit/public/web/WebPrintScalingOption.h"
19 #include "ui/gfx/geometry/rect.h" 22 #include "ui/gfx/geometry/rect.h"
20 #include "ui/gfx/ipc/gfx_param_traits.h" 23 #include "ui/gfx/ipc/gfx_param_traits.h"
21 #include "ui/gfx/native_widget_types.h" 24 #include "ui/gfx/native_widget_types.h"
22 25
(...skipping 15 matching lines...) Expand all
38 gfx::Rect printable_area; 41 gfx::Rect printable_area;
39 int margin_top; 42 int margin_top;
40 int margin_left; 43 int margin_left;
41 double dpi; 44 double dpi;
42 double min_shrink; 45 double min_shrink;
43 double max_shrink; 46 double max_shrink;
44 int desired_dpi; 47 int desired_dpi;
45 int document_cookie; 48 int document_cookie;
46 bool selection_only; 49 bool selection_only;
47 bool supports_alpha_blend; 50 bool supports_alpha_blend;
48 int32 preview_ui_id; 51 int32_t preview_ui_id;
49 int preview_request_id; 52 int preview_request_id;
50 bool is_first_request; 53 bool is_first_request;
51 blink::WebPrintScalingOption print_scaling_option; 54 blink::WebPrintScalingOption print_scaling_option;
52 bool print_to_pdf; 55 bool print_to_pdf;
53 bool display_header_footer; 56 bool display_header_footer;
54 base::string16 title; 57 base::string16 title;
55 base::string16 url; 58 base::string16 url;
56 bool should_print_backgrounds; 59 bool should_print_backgrounds;
57 }; 60 };
58 61
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 printing::PageSizeMargins /* page layout in points */, 428 printing::PageSizeMargins /* page layout in points */,
426 gfx::Rect /* printable area in points */, 429 gfx::Rect /* printable area in points */,
427 bool /* has custom page size style */) 430 bool /* has custom page size style */)
428 431
429 // Notify the browser a print preview page has been rendered. 432 // Notify the browser a print preview page has been rendered.
430 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage, 433 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage,
431 PrintHostMsg_DidPreviewPage_Params /* params */) 434 PrintHostMsg_DidPreviewPage_Params /* params */)
432 435
433 // Asks the browser whether the print preview has been cancelled. 436 // Asks the browser whether the print preview has been cancelled.
434 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel, 437 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel,
435 int32 /* PrintPreviewUI ID */, 438 int32_t /* PrintPreviewUI ID */,
436 int /* request id */, 439 int /* request id */,
437 bool /* print preview cancelled */) 440 bool /* print preview cancelled */)
438 441
439 // This is sent when there are invalid printer settings. 442 // This is sent when there are invalid printer settings.
440 IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError) 443 IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError)
441 444
442 // Sends back to the browser the complete rendered document (non-draft mode, 445 // Sends back to the browser the complete rendered document (non-draft mode,
443 // used for printing) that was requested by a PrintMsg_PrintPreview message. 446 // used for printing) that was requested by a PrintMsg_PrintPreview message.
444 // The memory handle in this message is already valid in the browser process. 447 // The memory handle in this message is already valid in the browser process.
445 IPC_MESSAGE_ROUTED1(PrintHostMsg_MetafileReadyForPrinting, 448 IPC_MESSAGE_ROUTED1(PrintHostMsg_MetafileReadyForPrinting,
(...skipping 22 matching lines...) Expand all
468 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) 471 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview)
469 472
470 // Tell the browser to show the print preview, when the document is sufficiently 473 // Tell the browser to show the print preview, when the document is sufficiently
471 // loaded such that the renderer can determine whether it is modifiable or not. 474 // loaded such that the renderer can determine whether it is modifiable or not.
472 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, 475 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
473 bool /* is_modifiable */) 476 bool /* is_modifiable */)
474 477
475 // Notify the browser to set print presets based on source PDF document. 478 // Notify the browser to set print presets based on source PDF document.
476 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, 479 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument,
477 PrintHostMsg_SetOptionsFromDocument_Params /* params */) 480 PrintHostMsg_SetOptionsFromDocument_Params /* params */)
OLDNEW
« no previous file with comments | « components/printing/browser/print_manager.cc ('k') | components/printing/common/print_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698