|
|
Show splash screen when entering VR from a deep-link
This CL adds the necessary splash screen ui to show when we are going to auto-present
WebVR content. The flow of things is that when we get a new auto-present intent, we enter
VR (not in web vr mode) and create VrShell with "web_vr_autopresentation_expected"
parameter. This tells UiSceneManager to show the splash screen. When the WebVR page
calles requestPresent, we enter WebVR mode and the ui scene manager hides the splash
screen.
Notes
- Currently, the UI not show up if Chrome is started for the first time. This has to do with the
fact that we can't enter VR early in that case. bshe@ is working on that.
- The loading spinner on the splash screen is not added in this patch
- This patch expects a sane WebVR page in that it doesn't handle error cases such as
requestPresent never being called.
BUG= 699815
Review-Url: https://codereview.chromium.org/2955483003
Cr-Commit-Position: refs/heads/master@{#482295}
Committed: https://chromium.googlesource.com/chromium/src/+/2efa616e207873fdbbf1ae8f144d16708b4a0d62
Total comments: 18
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+330 lines, -92 lines) |
Patch |
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
|
View
|
1
2
3
|
6 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
|
View
|
1
2
3
|
7 chunks |
+40 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/BUILD.gn
|
View
|
1
2
3
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/color_scheme.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/color_scheme.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/android/vr_shell/textures/splash_screen_icon_texture.h
|
View
|
1
2
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/android/vr_shell/textures/splash_screen_icon_texture.cc
|
View
|
1
2
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.h
|
View
|
1
2
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.cc
|
View
|
1
2
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/ui_interface.h
|
View
|
1
2
3
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/ui_scene.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/ui_scene.cc
|
View
|
1
2
3
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/ui_scene_manager.h
|
View
|
1
2
3
|
7 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/ui_scene_manager.cc
|
View
|
1
2
3
4
|
8 chunks |
+51 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc
|
View
|
1
2
3
4
|
9 chunks |
+16 lines, -23 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/vr_gl_thread.h
|
View
|
1
2
3
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/vr_gl_thread.cc
|
View
|
1
2
3
|
6 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/vr_shell.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/vr_shell.cc
|
View
|
1
2
3
|
7 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/vr_shell_gl.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
Total messages: 24 (13 generated)
|