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

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: fix compile error on bots 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
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.h ('k') | chrome/browser/android/vr_shell/ui_scene_manager.h » ('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.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene.cc b/chrome/browser/android/vr_shell/ui_scene.cc
index 1df212c2078aef387f3334cb77fc383fa09c2cb6..5956b75702bcf9547edb7e4a1be0b8b78c76bf69 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_;
}
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.h ('k') | chrome/browser/android/vr_shell/ui_scene_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698