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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/textures/render_text_wrapper.cc
diff --git a/chrome/browser/android/vr_shell/textures/render_text_wrapper.cc b/chrome/browser/android/vr_shell/textures/render_text_wrapper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..487c67b2b0fb7abf68ae1443f23c957e6a2f455d
--- /dev/null
+++ b/chrome/browser/android/vr_shell/textures/render_text_wrapper.cc
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/android/vr_shell/textures/render_text_wrapper.h"
+
+namespace vr_shell {
+
+RenderTextWrapper::RenderTextWrapper(gfx::RenderText* render_text)
+ : render_text_(render_text) {}
+
+RenderTextWrapper::~RenderTextWrapper() = default;
+
+void RenderTextWrapper::SetColor(SkColor value) {
+ render_text_->SetColor(value);
+}
+
+void RenderTextWrapper::ApplyColor(SkColor value, const gfx::Range& range) {
+ render_text_->ApplyColor(value, range);
+}
+
+void RenderTextWrapper::SetStyle(gfx::TextStyle style, bool value) {
+ render_text_->SetStyle(style, value);
+}
+
+void RenderTextWrapper::ApplyStyle(gfx::TextStyle style,
+ bool value,
+ const gfx::Range& range) {
+ render_text_->ApplyStyle(style, value, range);
+}
+
+} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698