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

Unified Diff: chrome/browser/android/vr_shell/ui_scene.h

Issue 2911943002: [vr] Add incognito coloring (Closed)
Patch Set: 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
« no previous file with comments | « chrome/browser/android/vr_shell/ui_interface.h ('k') | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
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;
« no previous file with comments | « chrome/browser/android/vr_shell/ui_interface.h ('k') | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698