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

Unified Diff: chrome/browser/android/vr_shell/color_scheme.cc

Issue 2902043005: [vr] Add incognito coloring (Closed)
Patch Set: merged changes from aldo and amp 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/color_scheme.cc
diff --git a/chrome/browser/android/vr_shell/color_scheme.cc b/chrome/browser/android/vr_shell/color_scheme.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8ca117f7e29f5fb93229bbf9c3be489126c7e51c
--- /dev/null
+++ b/chrome/browser/android/vr_shell/color_scheme.cc
@@ -0,0 +1,42 @@
+// 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/color_scheme.h"
+
+namespace vr_shell {
+
+namespace {
+
+ColorScheme kColorSchemes[] = {
+ // normal
tiborg 2017/05/25 00:47:18 Nit: capital N and period in the end.
+ {
+ {0.89, 0.89, 0.89, 1.0},
+ {0.811, 0.811, 0.811, 1.0},
+ {0.859, 0.859, 0.859, 1.0},
+ {1.0, 1.0, 1.0, 1.0},
+ },
+ // fullscreen
tiborg 2017/05/25 00:47:17 Here too.
+ {
+ {0.039215686, 0.0, 0.082352941, 0.149019608},
+ {0.02745098, 0.058823529, 0.109803922, 0.5},
+ {0.015686275, 0.031372549, 0.058823529, 1.0},
+ {0.639215686, 0.878431373, 1.0, 0.5},
+ },
+ // incognito - TODO(joshcarpenter): pick real colors for this.
tiborg 2017/05/25 00:47:17 Here too.
+ {
+ {0.039215686, 0.0, 0.082352941, 0.149019608},
+ {0.02745098, 0.058823529, 0.109803922, 0.5},
+ {0.015686275, 0.031372549, 0.058823529, 1.0},
+ {0.639215686, 0.878431373, 1.0, 0.5},
+ },
+};
+
+} // namespace
+
+/* static */
tiborg 2017/05/25 00:47:17 Do we need this comment?
+const ColorScheme& ColorScheme::GetColorScheme(ColorScheme::Mode mode) {
+ return kColorSchemes[static_cast<int>(mode)];
+}
+
+} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698