blob: 96556eb0a9642b8e00d1c48b145838d3ef1a5460 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "printing/buildflags/buildflags.h"
namespace content {
class RenderFrameHost;
class WebContents;
namespace printing {
// Start printing using the appropriate PrintViewManagerBase subclass.
void StartPrint(content::WebContents* web_contents,
bool print_preview_disabled,
bool has_selection);
// Start printing using the system print dialog.
void StartBasicPrint(content::WebContents* contents);
// If the user has selected text in the currently focused frame, print only that
// frame (this makes print selection work for multiple frames).
content::RenderFrameHost* GetFrameToPrint(content::WebContents* contents);
// Whether the content sent to |rfh| is in PDF format.
// When print preview dialog is printed, the content returned is always
// in PDF format because print preview already stores the PDF file for
// the previewed web page; When a full page PDF plugin is printed, the document
// in it is in PDF format so will return in PDF also.
bool PrintingPdfContent(content::RenderFrameHost* rfh);
} // namespace printing