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

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

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.h ('k') | ui/gfx/range/range_f.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 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 #ifndef UI_GFX_RANGE_RANGE_F_H_ 5 #ifndef UI_GFX_RANGE_RANGE_F_H_
6 #define UI_GFX_RANGE_RANGE_F_H_ 6 #define UI_GFX_RANGE_RANGE_F_H_
7 7
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h"
12 #include "ui/gfx/gfx_export.h" 11 #include "ui/gfx/gfx_export.h"
13 #include "ui/gfx/range/range.h" 12 #include "ui/gfx/range/range.h"
14 13
15 namespace gfx { 14 namespace gfx {
16 15
17 // A float version of Range. RangeF is made of a start and end position; when 16 // A float version of Range. RangeF is made of a start and end position; when
18 // they are the same, the range is empty. Note that |start_| can be greater 17 // they are the same, the range is empty. Note that |start_| can be greater
19 // than |end_| to respect the directionality of the range. 18 // than |end_| to respect the directionality of the range.
20 class GFX_EXPORT RangeF { 19 class GFX_EXPORT RangeF {
21 public: 20 public:
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 private: 79 private:
81 float start_; 80 float start_;
82 float end_; 81 float end_;
83 }; 82 };
84 83
85 GFX_EXPORT std::ostream& operator<<(std::ostream& os, const RangeF& range); 84 GFX_EXPORT std::ostream& operator<<(std::ostream& os, const RangeF& range);
86 85
87 } // namespace gfx 86 } // namespace gfx
88 87
89 #endif // UI_GFX_RANGE_RANGE_F_H_ 88 #endif // UI_GFX_RANGE_RANGE_F_H_
OLDNEW
« no previous file with comments | « ui/gfx/range/range.h ('k') | ui/gfx/range/range_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698