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

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

Issue 335473002: Guarded shrink setting with ifdefs to make clear where it is used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Thu 06/12/2014 0:59:45.49 Created 6 years, 6 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 // Size of the metafile data. 247 // Size of the metafile data.
248 IPC_STRUCT_MEMBER(uint32, data_size) 248 IPC_STRUCT_MEMBER(uint32, data_size)
249 249
250 // Cookie for the document to ensure correctness. 250 // Cookie for the document to ensure correctness.
251 IPC_STRUCT_MEMBER(int, document_cookie) 251 IPC_STRUCT_MEMBER(int, document_cookie)
252 252
253 // Page number. 253 // Page number.
254 IPC_STRUCT_MEMBER(int, page_number) 254 IPC_STRUCT_MEMBER(int, page_number)
255 255
256 #if defined(OS_WIN) && !defined(WIN_PDF_METAFILE_FOR_PRINTING)
256 // Shrink factor used to render this page. 257 // Shrink factor used to render this page.
257 IPC_STRUCT_MEMBER(double, actual_shrink) 258 IPC_STRUCT_MEMBER(double, actual_shrink)
259 #endif // OS_WIN && !WIN_PDF_METAFILE_FOR_PRINTING
258 260
259 // The size of the page the page author specified. 261 // The size of the page the page author specified.
260 IPC_STRUCT_MEMBER(gfx::Size, page_size) 262 IPC_STRUCT_MEMBER(gfx::Size, page_size)
261 263
262 // The printable area the page author specified. 264 // The printable area the page author specified.
263 IPC_STRUCT_MEMBER(gfx::Rect, content_area) 265 IPC_STRUCT_MEMBER(gfx::Rect, content_area)
264 IPC_STRUCT_END() 266 IPC_STRUCT_END()
265 267
266 // Parameters for the IPC message ViewHostMsg_ScriptedPrint 268 // Parameters for the IPC message ViewHostMsg_ScriptedPrint
267 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params) 269 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params)
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) 438 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview)
437 439
438 // Tell the browser to show the print preview, when the document is sufficiently 440 // Tell the browser to show the print preview, when the document is sufficiently
439 // loaded such that the renderer can determine whether it is modifiable or not. 441 // loaded such that the renderer can determine whether it is modifiable or not.
440 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, 442 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
441 bool /* is_modifiable */) 443 bool /* is_modifiable */)
442 444
443 // Notify the browser that the PDF in the initiator renderer has disabled print 445 // Notify the browser that the PDF in the initiator renderer has disabled print
444 // scaling option. 446 // scaling option.
445 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) 447 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled)
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_view_manager_base.cc ('k') | chrome/renderer/printing/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698