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

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

Issue 2955483003: Show splash screen when entering VR from a deep-link (Closed)
Patch Set: . Created 3 years, 6 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/ui_scene.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene.cc b/chrome/browser/android/vr_shell/ui_scene.cc
index a1b75748c1220598b3245c1bf9b61d515aeaf223..f2e8aa693e1daebba8e7c2de0a7b45ee4e3971b3 100644
--- a/chrome/browser/android/vr_shell/ui_scene.cc
+++ b/chrome/browser/android/vr_shell/ui_scene.cc
@@ -188,7 +188,9 @@ ColorScheme::Mode UiScene::mode() const {
}
SkColor UiScene::GetWorldBackgroundColor() const {
- return ColorScheme::GetColorScheme(mode_).world_background;
+ return showing_splash_screen_
+ ? ColorScheme::GetColorScheme(mode_).splash_screen_background
+ : ColorScheme::GetColorScheme(mode_).world_background;
}
void UiScene::SetBackgroundDistance(float distance) {
@@ -215,6 +217,10 @@ void UiScene::set_is_prompting_to_exit(bool prompting) {
is_prompting_to_exit_ = prompting;
}
+void UiScene::set_showing_splash_screen(bool showing) {
+ showing_splash_screen_ = showing;
+}
+
const std::vector<std::unique_ptr<UiElement>>& UiScene::GetUiElements() const {
return ui_elements_;
}

Powered by Google App Engine
This is Rietveld 408576698