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

Side by Side Diff: chrome/browser/printing/page_overlays.h

Issue 60118: Implement Printer Preference Persistence (Step 1/3) (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/printing/page_overlays.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_PRINTING_PAGE_OVERLAYS_H__ 5 #ifndef CHROME_BROWSER_PRINTING_PAGE_OVERLAYS_H__
6 #define CHROME_BROWSER_PRINTING_PAGE_OVERLAYS_H__ 6 #define CHROME_BROWSER_PRINTING_PAGE_OVERLAYS_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace printing { 10 namespace printing {
11 11
(...skipping 20 matching lines...) Expand all
32 32
33 PageOverlays(); 33 PageOverlays();
34 34
35 // Equality operator. 35 // Equality operator.
36 bool Equals(const PageOverlays& rhs) const; 36 bool Equals(const PageOverlays& rhs) const;
37 37
38 // Returns the string of an overlay according to its x,y position. 38 // Returns the string of an overlay according to its x,y position.
39 const std::wstring& GetOverlay(HorizontalPosition x, 39 const std::wstring& GetOverlay(HorizontalPosition x,
40 VerticalPosition y) const; 40 VerticalPosition y) const;
41 41
42 // Sets the string of an overlay according to its x,y position.
43 void SetOverlay(HorizontalPosition x, VerticalPosition y,
44 std::wstring& input);
45
42 // Replaces the variables in |input| with their actual values according to the 46 // Replaces the variables in |input| with their actual values according to the
43 // properties of the current printed document and the current printed page. 47 // properties of the current printed document and the current printed page.
44 static std::wstring ReplaceVariables(const std::wstring& input, 48 static std::wstring ReplaceVariables(const std::wstring& input,
45 const PrintedDocument& document, 49 const PrintedDocument& document,
46 const PrintedPage& page); 50 const PrintedPage& page);
47 51
48 // Keys that are dynamically replaced in the header and footer by their actual 52 // Keys that are dynamically replaced in the header and footer by their actual
49 // values. 53 // values.
50 // Web page's title. 54 // Web page's title.
51 static const wchar_t* const kTitle; 55 static const wchar_t* const kTitle;
(...skipping 15 matching lines...) Expand all
67 std::wstring top_center; 71 std::wstring top_center;
68 std::wstring top_right; 72 std::wstring top_right;
69 std::wstring bottom_left; 73 std::wstring bottom_left;
70 std::wstring bottom_center; 74 std::wstring bottom_center;
71 std::wstring bottom_right; 75 std::wstring bottom_right;
72 }; 76 };
73 77
74 } // namespace printing 78 } // namespace printing
75 79
76 #endif // CHROME_BROWSER_PRINTING_PAGE_OVERLAYS_H__ 80 #endif // CHROME_BROWSER_PRINTING_PAGE_OVERLAYS_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/page_overlays.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698