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

Side by Side Diff: ui/gfx/render_text_win.cc

Issue 152473008: More or less implement RenderTextHarfBuzz (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased; decorations Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
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 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 return SelectionModel(position, CURSOR_BACKWARD); 1275 return SelectionModel(position, CURSOR_BACKWARD);
1276 } 1276 }
1277 1277
1278 SelectionModel RenderTextWin::LastSelectionModelInsideRun( 1278 SelectionModel RenderTextWin::LastSelectionModelInsideRun(
1279 const internal::TextRun* run) { 1279 const internal::TextRun* run) {
1280 size_t position = LayoutIndexToTextIndex(run->range.end()); 1280 size_t position = LayoutIndexToTextIndex(run->range.end());
1281 position = IndexOfAdjacentGrapheme(position, CURSOR_BACKWARD); 1281 position = IndexOfAdjacentGrapheme(position, CURSOR_BACKWARD);
1282 return SelectionModel(position, CURSOR_FORWARD); 1282 return SelectionModel(position, CURSOR_FORWARD);
1283 } 1283 }
1284 1284
1285 RenderText* RenderText::CreateInstance() { 1285 RenderText* RenderText::CreateNativeInstance() {
1286 return new RenderTextWin; 1286 return new RenderTextWin;
1287 } 1287 }
1288 1288
1289 } // namespace gfx 1289 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698