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

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

Issue 2902783002: VR: Add URL bar security-related coloring and emphasis. (Closed)
Patch Set: Another test case for HTTPS + not secure. Created 3 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/android/vr_shell/textures/render_text_wrapper.h"
6
7 namespace vr_shell {
8
9 RenderTextWrapper::RenderTextWrapper(gfx::RenderText* render_text)
10 : render_text_(render_text) {}
11
12 RenderTextWrapper::~RenderTextWrapper() = default;
13
14 void RenderTextWrapper::SetColor(SkColor value) {
15 render_text_->SetColor(value);
16 }
17
18 void RenderTextWrapper::ApplyColor(SkColor value, const gfx::Range& range) {
19 render_text_->ApplyColor(value, range);
20 }
21
22 void RenderTextWrapper::SetStyle(gfx::TextStyle style, bool value) {
23 render_text_->SetStyle(style, value);
24 }
25
26 void RenderTextWrapper::ApplyStyle(gfx::TextStyle style,
27 bool value,
28 const gfx::Range& range) {
29 render_text_->ApplyStyle(style, value, range);
30 }
31
32 } // namespace vr_shell
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698