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

Unified Diff: ui/gfx/render_text_harfbuzz.h

Issue 876873003: Add float version of gfx::Range (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed 2 Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/range/range_unittest.cc ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_harfbuzz.h
diff --git a/ui/gfx/render_text_harfbuzz.h b/ui/gfx/render_text_harfbuzz.h
index d0e167ecbed1cc421ec7b9eef17fb1aa0d8e50f1..aad09f0e017d235dbf67498f01fb15d7508e6ac1 100644
--- a/ui/gfx/render_text_harfbuzz.h
+++ b/ui/gfx/render_text_harfbuzz.h
@@ -20,13 +20,13 @@ class BreakIterator;
namespace gfx {
-namespace internal {
+class Range;
+class RangeF;
-// TODO(ckocagil): Make Range a template class and RangeF an instance of it.
-typedef std::pair<float, float> RangeF;
+namespace internal {
// Applies std::round to the start and end values of the given RangeF.
-Range GFX_EXPORT RoundRangeF(const RangeF& range_f);
+GFX_EXPORT Range RoundRangeF(const RangeF& range_f);
struct GFX_EXPORT TextRunHarfBuzz {
TextRunHarfBuzz();
« no previous file with comments | « ui/gfx/range/range_unittest.cc ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698