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

Side by Side Diff: ui/gfx/range/range_f.cc

Issue 1076443002: Removed obsolete float_util.h as VS2013 supports standards well enough. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed mistake in value converter. Created 5 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
« no previous file with comments | « ui/events/gesture_detection/scale_gesture_detector.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_f.h" 5 #include "ui/gfx/range/range_f.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/float_util.h"
11 #include "base/format_macros.h" 10 #include "base/format_macros.h"
12 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
13 12
14 namespace gfx { 13 namespace gfx {
15 14
16 RangeF::RangeF() 15 RangeF::RangeF()
17 : start_(0.0f), 16 : start_(0.0f),
18 end_(0.0f) { 17 end_(0.0f) {
19 } 18 }
20 19
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 78
80 std::string RangeF::ToString() const { 79 std::string RangeF::ToString() const {
81 return base::StringPrintf("{%f,%f}", start(), end()); 80 return base::StringPrintf("{%f,%f}", start(), end());
82 } 81 }
83 82
84 std::ostream& operator<<(std::ostream& os, const RangeF& range) { 83 std::ostream& operator<<(std::ostream& os, const RangeF& range) {
85 return os << range.ToString(); 84 return os << range.ToString();
86 } 85 }
87 86
88 } // namespace gfx 87 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/events/gesture_detection/scale_gesture_detector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698