Upload upstream chromium 73.0.3683.0
[platform/framework/web/chromium-efl.git] / printing / printing_utils.h
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PRINTING_PRINTING_UTILS_H_
6 #define PRINTING_PRINTING_UTILS_H_
7
8 #include <stddef.h>
9
10 #include "base/strings/string16.h"
11 #include "printing/printing_export.h"
12
13 namespace printing {
14
15 // Simplify title to resolve issue with some drivers.
16 PRINTING_EXPORT base::string16 SimplifyDocumentTitle(
17     const base::string16& title);
18
19 PRINTING_EXPORT base::string16 SimplifyDocumentTitleWithLength(
20     const base::string16& title,
21     size_t length);
22
23 PRINTING_EXPORT base::string16 FormatDocumentTitleWithOwner(
24     const base::string16& owner,
25     const base::string16& title);
26
27 PRINTING_EXPORT base::string16 FormatDocumentTitleWithOwnerAndLength(
28     const base::string16& owner,
29     const base::string16& title,
30     size_t length);
31
32 }  // namespace printing
33
34 #endif  // PRINTING_PRINTING_UTILS_H_