OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/render_text_win.h" | 5 #include "ui/gfx/render_text_win.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/i18n/break_iterator.h" | 9 #include "base/i18n/break_iterator.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/win/windows_version.h" | 14 #include "base/win/windows_version.h" |
15 #include "ui/base/text/utf16_indexing.h" | 15 #include "ui/base/text/utf16_indexing.h" |
16 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
17 #include "ui/gfx/font_fallback_win.h" | 17 #include "ui/gfx/font_fallback_win.h" |
18 #include "ui/gfx/font_smoothing_win.h" | 18 #include "ui/gfx/font_smoothing_win.h" |
19 #include "ui/gfx/platform_font_win.h" | 19 #include "ui/gfx/platform_font_win.h" |
20 | 20 |
21 namespace gfx { | 21 namespace gfx { |
22 | 22 |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 size_t position = LayoutIndexToTextIndex(run->range.end()); | 836 size_t position = LayoutIndexToTextIndex(run->range.end()); |
837 position = IndexOfAdjacentGrapheme(position, CURSOR_BACKWARD); | 837 position = IndexOfAdjacentGrapheme(position, CURSOR_BACKWARD); |
838 return SelectionModel(position, CURSOR_FORWARD); | 838 return SelectionModel(position, CURSOR_FORWARD); |
839 } | 839 } |
840 | 840 |
841 RenderText* RenderText::CreateInstance() { | 841 RenderText* RenderText::CreateInstance() { |
842 return new RenderTextWin; | 842 return new RenderTextWin; |
843 } | 843 } |
844 | 844 |
845 } // namespace gfx | 845 } // namespace gfx |
OLD | NEW |