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

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

Issue 10873097: Merge 153342 - Print preview: Use an ID instead of memory pointer string in WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1229/src/
Patch Set: Created 8 years, 3 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 21 matching lines...) Expand all
32 gfx::Rect printable_area; 32 gfx::Rect printable_area;
33 int margin_top; 33 int margin_top;
34 int margin_left; 34 int margin_left;
35 double dpi; 35 double dpi;
36 double min_shrink; 36 double min_shrink;
37 double max_shrink; 37 double max_shrink;
38 int desired_dpi; 38 int desired_dpi;
39 int document_cookie; 39 int document_cookie;
40 bool selection_only; 40 bool selection_only;
41 bool supports_alpha_blend; 41 bool supports_alpha_blend;
42 std::string preview_ui_addr; 42 int32 preview_ui_id;
43 int preview_request_id; 43 int preview_request_id;
44 bool is_first_request; 44 bool is_first_request;
45 WebKit::WebPrintScalingOption print_scaling_option; 45 WebKit::WebPrintScalingOption print_scaling_option;
46 bool print_to_pdf; 46 bool print_to_pdf;
47 bool display_header_footer; 47 bool display_header_footer;
48 string16 date; 48 string16 date;
49 string16 title; 49 string16 title;
50 string16 url; 50 string16 url;
51 }; 51 };
52 52
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // Should only print currently selected text. 104 // Should only print currently selected text.
105 IPC_STRUCT_TRAITS_MEMBER(selection_only) 105 IPC_STRUCT_TRAITS_MEMBER(selection_only)
106 106
107 // Does the printer support alpha blending? 107 // Does the printer support alpha blending?
108 IPC_STRUCT_TRAITS_MEMBER(supports_alpha_blend) 108 IPC_STRUCT_TRAITS_MEMBER(supports_alpha_blend)
109 109
110 // *** Parameters below are used only for print preview. *** 110 // *** Parameters below are used only for print preview. ***
111 111
112 // The print preview ui associated with this request. 112 // The print preview ui associated with this request.
113 IPC_STRUCT_TRAITS_MEMBER(preview_ui_addr) 113 IPC_STRUCT_TRAITS_MEMBER(preview_ui_id)
114 114
115 // The id of the preview request. 115 // The id of the preview request.
116 IPC_STRUCT_TRAITS_MEMBER(preview_request_id) 116 IPC_STRUCT_TRAITS_MEMBER(preview_request_id)
117 117
118 // True if this is the first preview request. 118 // True if this is the first preview request.
119 IPC_STRUCT_TRAITS_MEMBER(is_first_request) 119 IPC_STRUCT_TRAITS_MEMBER(is_first_request)
120 120
121 // Specifies the page scaling option for preview printing. 121 // Specifies the page scaling option for preview printing.
122 IPC_STRUCT_TRAITS_MEMBER(print_scaling_option) 122 IPC_STRUCT_TRAITS_MEMBER(print_scaling_option)
123 123
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 printing::PageSizeMargins /* page layout in points */, 379 printing::PageSizeMargins /* page layout in points */,
380 gfx::Rect /* printable area in points */, 380 gfx::Rect /* printable area in points */,
381 bool /* has custom page size style */) 381 bool /* has custom page size style */)
382 382
383 // Notify the browser a print preview page has been rendered. 383 // Notify the browser a print preview page has been rendered.
384 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage, 384 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage,
385 PrintHostMsg_DidPreviewPage_Params /* params */) 385 PrintHostMsg_DidPreviewPage_Params /* params */)
386 386
387 // Asks the browser whether the print preview has been cancelled. 387 // Asks the browser whether the print preview has been cancelled.
388 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel, 388 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel,
389 std::string /* print preview ui address */, 389 int32 /* PrintPreviewUI ID */,
390 int /* request id */, 390 int /* request id */,
391 bool /* print preview cancelled */) 391 bool /* print preview cancelled */)
392 392
393 // Sends back to the browser the complete rendered document (non-draft mode, 393 // Sends back to the browser the complete rendered document (non-draft mode,
394 // used for printing) that was requested by a PrintMsg_PrintPreview message. 394 // used for printing) that was requested by a PrintMsg_PrintPreview message.
395 // The memory handle in this message is already valid in the browser process. 395 // The memory handle in this message is already valid in the browser process.
396 IPC_MESSAGE_ROUTED1(PrintHostMsg_MetafileReadyForPrinting, 396 IPC_MESSAGE_ROUTED1(PrintHostMsg_MetafileReadyForPrinting,
397 PrintHostMsg_DidPreviewDocument_Params /* params */) 397 PrintHostMsg_DidPreviewDocument_Params /* params */)
398 398
399 // Tell the browser printing failed. 399 // Tell the browser printing failed.
(...skipping 15 matching lines...) Expand all
415 int /* document cookie */) 415 int /* document cookie */)
416 416
417 // Run a nested message loop in the renderer until print preview for 417 // Run a nested message loop in the renderer until print preview for
418 // window.print() finishes. 418 // window.print() finishes.
419 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, 419 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview,
420 bool /* is_modifiable */) 420 bool /* is_modifiable */)
421 421
422 // Notify the browser that the PDF in the initiator renderer has disabled print 422 // Notify the browser that the PDF in the initiator renderer has disabled print
423 // scaling option. 423 // scaling option.
424 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) 424 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled)
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui_unittest.cc ('k') | chrome/common/print_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698