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

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

Issue 3149: Porting changes in chrome/{browser,common}, also enabling more unit tests.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_NUMBER_H__ 5 #ifndef CHROME_BROWSER_PRINTING_PAGE_NUMBER_H__
6 #define CHROME_BROWSER_PRINTING_PAGE_NUMBER_H__ 6 #define CHROME_BROWSER_PRINTING_PAGE_NUMBER_H__
7 7
8 #ifdef _DEBUG
9 #include <ostream> 8 #include <ostream>
10 #endif
11 9
12 #include "chrome/browser/printing/page_range.h" 10 #include "chrome/browser/printing/page_range.h"
13 11
14 namespace printing { 12 namespace printing {
15 13
16 class PrintSettings; 14 class PrintSettings;
17 15
18 // Represents a page series following the array of page ranges defined in a 16 // Represents a page series following the array of page ranges defined in a
19 // PrintSettings. 17 // PrintSettings.
20 class PageNumber { 18 class PageNumber {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // The next page to be printed. -1 when not used. Valid only if 56 // The next page to be printed. -1 when not used. Valid only if
59 // document()->settings().range.empty() is false. 57 // document()->settings().range.empty() is false.
60 int page_range_index_; 58 int page_range_index_;
61 59
62 // Number of expected pages in the document. Used when ranges_ is NULL. 60 // Number of expected pages in the document. Used when ranges_ is NULL.
63 int document_page_count_; 61 int document_page_count_;
64 }; 62 };
65 63
66 // Debug output support. 64 // Debug output support.
67 template<class E, class T> 65 template<class E, class T>
68 inline std::basic_ostream<E,T>& operator<<(std::basic_ostream<E,T>& ss, 66 inline typename std::basic_ostream<E,T>& operator<<(
69 const PageNumber& page) { 67 typename std::basic_ostream<E,T>& ss, const PageNumber& page) {
70 return ss << page.ToInt(); 68 return ss << page.ToInt();
71 } 69 }
72 70
73 } // namespace printing 71 } // namespace printing
74 72
75 #endif // CHROME_BROWSER_PRINTING_PAGE_NUMBER_H__ 73 #endif // CHROME_BROWSER_PRINTING_PAGE_NUMBER_H__
76 74
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698