| 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 #include "printing/printing_utils.h" | 5 #include "printing/printing_utils.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 | 10 |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 10 | 12 |
| 11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 12 #include "third_party/icu/source/common/unicode/uchar.h" | 14 #include "third_party/icu/source/common/unicode/uchar.h" |
| 13 #include "ui/gfx/text_elider.h" | 15 #include "ui/gfx/text_elider.h" |
| 14 | 16 |
| 15 namespace printing { | 17 namespace printing { |
| 16 | 18 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 return SimplifyDocumentTitleWithLength(title, kMaxDocumentTitleLength); | 55 return SimplifyDocumentTitleWithLength(title, kMaxDocumentTitleLength); |
| 54 } | 56 } |
| 55 | 57 |
| 56 base::string16 FormatDocumentTitleWithOwner(const base::string16& owner, | 58 base::string16 FormatDocumentTitleWithOwner(const base::string16& owner, |
| 57 const base::string16& title) { | 59 const base::string16& title) { |
| 58 return FormatDocumentTitleWithOwnerAndLength(owner, title, | 60 return FormatDocumentTitleWithOwnerAndLength(owner, title, |
| 59 kMaxDocumentTitleLength); | 61 kMaxDocumentTitleLength); |
| 60 } | 62 } |
| 61 | 63 |
| 62 } // namespace printing | 64 } // namespace printing |
| OLD | NEW |