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

Side by Side Diff: printing/page_number.cc

Issue 1544623002: Switch to standard integer types in printing/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « printing/metafile.cc ('k') | printing/page_range.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-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 #include "printing/page_number.h" 5 #include "printing/page_number.h"
6 6
7 #include <stddef.h>
8
7 #include <limits> 9 #include <limits>
8 10
9 #include "base/logging.h" 11 #include "base/logging.h"
10 #include "printing/print_settings.h" 12 #include "printing/print_settings.h"
11 13
12 namespace printing { 14 namespace printing {
13 15
14 PageNumber::PageNumber(const PrintSettings& settings, int document_page_count) { 16 PageNumber::PageNumber(const PrintSettings& settings, int document_page_count) {
15 Init(settings, document_page_count); 17 Init(settings, document_page_count);
16 } 18 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool PageNumber::operator==(const PageNumber& other) const { 76 bool PageNumber::operator==(const PageNumber& other) const {
75 return page_number_ == other.page_number_ && 77 return page_number_ == other.page_number_ &&
76 page_range_index_ == other.page_range_index_; 78 page_range_index_ == other.page_range_index_;
77 } 79 }
78 bool PageNumber::operator!=(const PageNumber& other) const { 80 bool PageNumber::operator!=(const PageNumber& other) const {
79 return page_number_ != other.page_number_ || 81 return page_number_ != other.page_number_ ||
80 page_range_index_ != other.page_range_index_; 82 page_range_index_ != other.page_range_index_;
81 } 83 }
82 84
83 } // namespace printing 85 } // namespace printing
OLDNEW
« no previous file with comments | « printing/metafile.cc ('k') | printing/page_range.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698