blob: 5b2b62a7dbf5599fbb51940906b2ed4697c5d0a2 [file] [log] [blame]
// Copyright 2015 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.
#ifndef COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_
#define COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_
struct PrintMsg_Print_Params;
namespace content {
class WebContents;
}
namespace printing {
class PrintSettings;
void SetOopifEnabled(bool enabled);
bool IsOopifEnabled();
// Check on the current feature settings to decide whether we need to
// create a PDF compositor client for this |web_contents|.
void CreateCompositeClientIfNeeded(content::WebContents* web_contents,
bool for_preview);
// Converts given settings to Print_Params and stores them in the output
// parameter |params|.
void RenderParamsFromPrintSettings(const PrintSettings& settings,
PrintMsg_Print_Params* params);
} // namespace printing
#endif // COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_