0
Files
src/printing/printing_utils.h
avi 126e93cfd2 Switch to standard integer types in printing/.
BUG=138542
TBR=thestig@chromium.org

Review URL: https://codereview.chromium.org/1544623002

Cr-Commit-Position: refs/heads/master@{#366463}
2015-12-21 21:49:21 +00:00

35 lines
965 B
C++

// Copyright 2013 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 PRINTING_PRINTING_UTILS_H_
#define PRINTING_PRINTING_UTILS_H_
#include <stddef.h>
#include "base/strings/string16.h"
#include "printing/printing_export.h"
namespace printing {
// Simplify title to resolve issue with some drivers.
PRINTING_EXPORT base::string16 SimplifyDocumentTitle(
const base::string16& title);
PRINTING_EXPORT base::string16 SimplifyDocumentTitleWithLength(
const base::string16& title,
size_t length);
PRINTING_EXPORT base::string16 FormatDocumentTitleWithOwner(
const base::string16& owner,
const base::string16& title);
PRINTING_EXPORT base::string16 FormatDocumentTitleWithOwnerAndLength(
const base::string16& owner,
const base::string16& title,
size_t length);
} // namespace printing
#endif // PRINTING_PRINTING_UTILS_H_