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

Side by Side Diff: chrome/browser/android/vr_shell/textures/render_text_wrapper.cc

Issue 2969623004: RenderText: Allow strike-through line thickness to be customized. (Closed)
Patch Set: Address final nits. Created 3 years, 5 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "chrome/browser/android/vr_shell/textures/render_text_wrapper.h" 5 #include "chrome/browser/android/vr_shell/textures/render_text_wrapper.h"
6 6
7 namespace vr_shell { 7 namespace vr_shell {
8 8
9 RenderTextWrapper::RenderTextWrapper(gfx::RenderText* render_text) 9 RenderTextWrapper::RenderTextWrapper(gfx::RenderText* render_text)
10 : render_text_(render_text) {} 10 : render_text_(render_text) {}
(...skipping 11 matching lines...) Expand all
22 void RenderTextWrapper::SetStyle(gfx::TextStyle style, bool value) { 22 void RenderTextWrapper::SetStyle(gfx::TextStyle style, bool value) {
23 render_text_->SetStyle(style, value); 23 render_text_->SetStyle(style, value);
24 } 24 }
25 25
26 void RenderTextWrapper::ApplyStyle(gfx::TextStyle style, 26 void RenderTextWrapper::ApplyStyle(gfx::TextStyle style,
27 bool value, 27 bool value,
28 const gfx::Range& range) { 28 const gfx::Range& range) {
29 render_text_->ApplyStyle(style, value, range); 29 render_text_->ApplyStyle(style, value, range);
30 } 30 }
31 31
32 void RenderTextWrapper::SetStrikeThicknessFactor(SkScalar factor) {
33 render_text_->set_strike_thickness_factor(factor);
34 }
35
32 } // namespace vr_shell 36 } // namespace vr_shell
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698