| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef PRINTING_PRINTING_UTILS_H_ | 5 #ifndef PRINTING_PRINTING_UTILS_H_ |
| 6 #define PRINTING_PRINTING_UTILS_H_ | 6 #define PRINTING_PRINTING_UTILS_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "printing/printing_export.h" | 9 #include "printing/printing_export.h" |
| 10 | 10 |
| 11 namespace printing { | 11 namespace printing { |
| 12 | 12 |
| 13 // Simplify title to resolve issue with some drivers. | 13 // Simplify title to resolve issue with some drivers. |
| 14 PRINTING_EXPORT base::string16 SimplifyDocumentTitle( | 14 PRINTING_EXPORT base::string16 SimplifyDocumentTitle( |
| 15 const base::string16& title); | 15 const base::string16& title); |
| 16 | 16 |
| 17 PRINTING_EXPORT base::string16 SimplifyDocumentTitleWithLength( |
| 18 const base::string16& title, |
| 19 size_t length); |
| 20 |
| 21 PRINTING_EXPORT base::string16 FormatDocumentTitleWithOwner( |
| 22 const base::string16& owner, |
| 23 const base::string16& title); |
| 24 |
| 25 PRINTING_EXPORT base::string16 FormatDocumentTitleWithOwnerAndLength( |
| 26 const base::string16& owner, |
| 27 const base::string16& title, |
| 28 size_t length); |
| 29 |
| 17 } // namespace printing | 30 } // namespace printing |
| 18 | 31 |
| 19 #endif // PRINTING_PRINTING_UTILS_H_ | 32 #endif // PRINTING_PRINTING_UTILS_H_ |
| OLD | NEW |