Chromium Code Reviews| Index: chrome/browser/android/vr_shell/ui_scene.h |
| diff --git a/chrome/browser/android/vr_shell/ui_scene.h b/chrome/browser/android/vr_shell/ui_scene.h |
| index 119fec7041dcf33c9df0bf69e05f7bc5ad355d49..e12cf63cbaaadd45f95b62d339402fdae0204ede 100644 |
| --- a/chrome/browser/android/vr_shell/ui_scene.h |
| +++ b/chrome/browser/android/vr_shell/ui_scene.h |
| @@ -10,6 +10,7 @@ |
| #include "base/macros.h" |
| #include "base/memory/ref_counted.h" |
| +#include "chrome/browser/android/vr_shell/color_scheme.h" |
| #include "chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h" |
| #include "third_party/skia/include/core/SkColor.h" |
| @@ -66,8 +67,11 @@ class UiScene { |
| std::vector<const UiElement*> GetHeadLockedElements() const; |
| bool HasVisibleHeadLockedElements() const; |
| - void SetBackgroundColor(const SkColor& color); |
| - const SkColor& GetBackgroundColor() const; |
| + void SetMode(ColorScheme::Mode mode); |
| + ColorScheme::Mode mode() const; |
| + |
| + SkColor GetBackgroundColor() const; |
| + |
| void SetBackgroundDistance(float distance); |
|
amp
2017/05/27 00:47:47
I think there is some overlap with the word 'backg
Ian Vollick
2017/05/27 01:29:12
Hmm. Perhaps we should change the others to text_b
|
| float GetBackgroundDistance() const; |
| @@ -85,7 +89,8 @@ class UiScene { |
| std::vector<std::unique_ptr<UiElement>> ui_elements_; |
| UiElement* content_element_ = nullptr; |
| - SkColor background_color_ = 0xFF1A1A1A; |
| + ColorScheme::Mode mode_ = ColorScheme::kModeNormal; |
| + |
| float background_distance_ = 10.0f; |
| bool webvr_rendering_enabled_ = true; |
| bool gl_initialized_ = false; |