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

Side by Side Diff: printing/page_overlays.cc

Issue 149212: Move printing related stuff to the root printing project from the browser pro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "chrome/browser/printing/page_overlays.h" 5 #include "printing/page_overlays.h"
6 6
7 #include "app/gfx/text_elider.h" 7 #include "app/gfx/text_elider.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/browser/printing/printed_document.h" 10 #include "printing/printed_document.h"
11 #include "chrome/browser/printing/printed_page.h" 11 #include "printing/printed_page.h"
12 12
13 namespace { 13 namespace {
14 14
15 // Replaces a subpart of a string by other value, and returns the position right 15 // Replaces a subpart of a string by other value, and returns the position right
16 // after the new value. 16 // after the new value.
17 size_t ReplaceKey(std::wstring* string, 17 size_t ReplaceKey(std::wstring* string,
18 size_t offset, 18 size_t offset,
19 size_t old_string_len, 19 size_t old_string_len,
20 const std::wstring& new_string) { 20 const std::wstring& new_string) {
21 string->replace(offset, old_string_len, new_string); 21 string->replace(offset, old_string_len, new_string);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 UTF8ToWide(document.url().spec())); 197 UTF8ToWide(document.url().spec()));
198 } else { 198 } else {
199 // There is just a { in the string. 199 // There is just a { in the string.
200 ++offset; 200 ++offset;
201 } 201 }
202 } 202 }
203 return output; 203 return output;
204 } 204 }
205 205
206 } // namespace printing 206 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698