diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-06 20:01:51 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-06 20:01:51 +0000 |
commit | db4fc1e2a877bb9d6871274af4e75180856f7560 (patch) | |
tree | a9cd4ded0f732aa44d13f00aae9af16a8b713e35 /ui/gfx/render_text_mac.cc | |
parent | 02ee41de4ba8501e5f9a202978f0749264e1247e (diff) | |
download | chromium_src-db4fc1e2a877bb9d6871274af4e75180856f7560.zip chromium_src-db4fc1e2a877bb9d6871274af4e75180856f7560.tar.gz chromium_src-db4fc1e2a877bb9d6871274af4e75180856f7560.tar.bz2 |
Move Range code to gfx.
Part of a set of changes to fix the circular dependency between ui/base and ui/gfx, with the aim of making gfx its own component.
R=jam@chromium.org, jschuh@chromium.org, rsesek@chromium.org
BUG=285385,103304
Review URL: https://codereview.chromium.org/24012002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221762 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/render_text_mac.cc')
-rw-r--r-- | ui/gfx/render_text_mac.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gfx/render_text_mac.cc b/ui/gfx/render_text_mac.cc index c56c626..61a85cd 100644 --- a/ui/gfx/render_text_mac.cc +++ b/ui/gfx/render_text_mac.cc @@ -47,7 +47,7 @@ std::vector<RenderText::FontSpan> RenderTextMac::GetFontSpansForTesting() { for (size_t i = 0; i < runs_.size(); ++i) { gfx::Font font(runs_[i].font_name, runs_[i].text_size); const CFRange cf_range = CTRunGetStringRange(runs_[i].ct_run); - const ui::Range range(cf_range.location, + const gfx::Range range(cf_range.location, cf_range.location + cf_range.length); spans.push_back(RenderText::FontSpan(font, range)); } @@ -69,12 +69,12 @@ SelectionModel RenderTextMac::AdjacentWordSelectionModel( return SelectionModel(); } -ui::Range RenderTextMac::GetGlyphBounds(size_t index) { +gfx::Range RenderTextMac::GetGlyphBounds(size_t index) { // TODO(asvitkine): Implement this. http://crbug.com/131618 - return ui::Range(); + return gfx::Range(); } -std::vector<Rect> RenderTextMac::GetSubstringBounds(const ui::Range& range) { +std::vector<Rect> RenderTextMac::GetSubstringBounds(const gfx::Range& range) { // TODO(asvitkine): Implement this. http://crbug.com/131618 return std::vector<Rect>(); } |