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

Side by Side Diff: ui/gfx/range/range_mac.mm

Issue 1543183002: Switch to standard integer types in ui/gfx/. (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 | « ui/gfx/range/range_f.cc ('k') | ui/gfx/render_text.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/gfx/range/range.h" 5 #include "ui/gfx/range/range.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 12
11 namespace gfx { 13 namespace gfx {
12 14
13 Range::Range(const NSRange& range) { 15 Range::Range(const NSRange& range) {
14 *this = range; 16 *this = range;
15 } 17 }
16 18
(...skipping 10 matching lines...) Expand all
27 return *this; 29 return *this;
28 } 30 }
29 31
30 NSRange Range::ToNSRange() const { 32 NSRange Range::ToNSRange() const {
31 if (!IsValid()) 33 if (!IsValid())
32 return NSMakeRange(NSNotFound, 0); 34 return NSMakeRange(NSNotFound, 0);
33 return NSMakeRange(GetMin(), length()); 35 return NSMakeRange(GetMin(), length());
34 } 36 }
35 37
36 } // namespace gfx 38 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/range/range_f.cc ('k') | ui/gfx/render_text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698