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

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

Issue 740983002: Implement window.print() on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // Page number. 287 // Page number.
288 IPC_STRUCT_MEMBER(int, page_number) 288 IPC_STRUCT_MEMBER(int, page_number)
289 289
290 // The size of the page the page author specified. 290 // The size of the page the page author specified.
291 IPC_STRUCT_MEMBER(gfx::Size, page_size) 291 IPC_STRUCT_MEMBER(gfx::Size, page_size)
292 292
293 // The printable area the page author specified. 293 // The printable area the page author specified.
294 IPC_STRUCT_MEMBER(gfx::Rect, content_area) 294 IPC_STRUCT_MEMBER(gfx::Rect, content_area)
295 IPC_STRUCT_END() 295 IPC_STRUCT_END()
296 296
297 // TODO(dgn) Rename *ScriptedPrint messages because they are not called only
298 // from scripts.
297 // Parameters for the IPC message ViewHostMsg_ScriptedPrint 299 // Parameters for the IPC message ViewHostMsg_ScriptedPrint
298 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params) 300 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params)
299 IPC_STRUCT_MEMBER(int, cookie) 301 IPC_STRUCT_MEMBER(int, cookie)
300 IPC_STRUCT_MEMBER(int, expected_pages_count) 302 IPC_STRUCT_MEMBER(int, expected_pages_count)
301 IPC_STRUCT_MEMBER(bool, has_selection) 303 IPC_STRUCT_MEMBER(bool, has_selection)
304 IPC_STRUCT_MEMBER(bool, is_scripted)
302 IPC_STRUCT_MEMBER(printing::MarginType, margin_type) 305 IPC_STRUCT_MEMBER(printing::MarginType, margin_type)
303 IPC_STRUCT_END() 306 IPC_STRUCT_END()
304 307
305 308
306 // Messages sent from the browser to the renderer. 309 // Messages sent from the browser to the renderer.
307 310
308 // Tells the render view to initiate print preview for the entire document. 311 // Tells the render view to initiate print preview for the entire document.
309 IPC_MESSAGE_ROUTED1(PrintMsg_InitiatePrintPreview, bool /* selection_only */) 312 IPC_MESSAGE_ROUTED1(PrintMsg_InitiatePrintPreview, bool /* selection_only */)
310 313
311 // Tells the render frame to initiate printing or print preview for a particular 314 // Tells the render frame to initiate printing or print preview for a particular
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) 470 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview)
468 471
469 // Tell the browser to show the print preview, when the document is sufficiently 472 // Tell the browser to show the print preview, when the document is sufficiently
470 // loaded such that the renderer can determine whether it is modifiable or not. 473 // loaded such that the renderer can determine whether it is modifiable or not.
471 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, 474 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
472 bool /* is_modifiable */) 475 bool /* is_modifiable */)
473 476
474 // Notify the browser to set print presets based on source PDF document. 477 // Notify the browser to set print presets based on source PDF document.
475 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, 478 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument,
476 PrintHostMsg_SetOptionsFromDocument_Params /* params */) 479 PrintHostMsg_SetOptionsFromDocument_Params /* params */)
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_message_filter.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