| 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/char_iterator.h" | 10 #include "base/i18n/char_iterator.h" |
| (...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 return SelectionModel(position, CURSOR_BACKWARD); | 1265 return SelectionModel(position, CURSOR_BACKWARD); |
| 1266 } | 1266 } |
| 1267 | 1267 |
| 1268 SelectionModel RenderTextWin::LastSelectionModelInsideRun( | 1268 SelectionModel RenderTextWin::LastSelectionModelInsideRun( |
| 1269 const internal::TextRun* run) { | 1269 const internal::TextRun* run) { |
| 1270 size_t position = LayoutIndexToTextIndex(run->range.end()); | 1270 size_t position = LayoutIndexToTextIndex(run->range.end()); |
| 1271 position = IndexOfAdjacentGrapheme(position, CURSOR_BACKWARD); | 1271 position = IndexOfAdjacentGrapheme(position, CURSOR_BACKWARD); |
| 1272 return SelectionModel(position, CURSOR_FORWARD); | 1272 return SelectionModel(position, CURSOR_FORWARD); |
| 1273 } | 1273 } |
| 1274 | 1274 |
| 1275 RenderText* RenderText::CreateInstance() { | 1275 RenderText* RenderText::CreateNativeInstance() { |
| 1276 return new RenderTextWin; | 1276 return new RenderTextWin; |
| 1277 } | 1277 } |
| 1278 | 1278 |
| 1279 } // namespace gfx | 1279 } // namespace gfx |
| OLD | NEW |