Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: printing/printing_utils.h

Issue 1212883003: Include user email into document title before spooling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mon Jul 6 10:13:42 PDT 2015 Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 const size_t kMaxDocumentTitleLength = 80;
14
13 // Simplify title to resolve issue with some drivers. 15 // Simplify title to resolve issue with some drivers.
14 PRINTING_EXPORT base::string16 SimplifyDocumentTitle( 16 PRINTING_EXPORT base::string16 SimplifyDocumentTitle(
15 const base::string16& title); 17 const base::string16& title);
16 18
19 PRINTING_EXPORT base::string16 SimplifyDocumentTitleWithLength(
20 const base::string16& title,
21 size_t desi);
Aleksey Shlyapnikov 2015/07/06 23:06:25 desi -> length
22
17 } // namespace printing 23 } // namespace printing
18 24
19 #endif // PRINTING_PRINTING_UTILS_H_ 25 #endif // PRINTING_PRINTING_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698