When we need to accept a permission, we should transition to black and show the dialog and controller so the user can accept/deny.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/4c1f336aabb5a794bf2d631416683ec113fe09d9 commit 4c1f336aabb5a794bf2d631416683ec113fe09d9 Author: Yash Malik <ymalik@google.com> Date: Wed Mar 28 01:13:03 2018 VR: Show permission prompt while in WebVR In this CL, we duplicate the hosted ui subtree for WebVR so that the user can accept permissions while in WebVR mode. Bug: 825360 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: Ic43116a4dc1c6cfe48076d8ba37b5912f8d09c74 Reviewed-on: https://chromium-review.googlesource.com/982605 Commit-Queue: Yash Malik <ymalik@chromium.org> Reviewed-by: Ian Vollick <vollick@chromium.org> Cr-Commit-Position: refs/heads/master@{#546352} [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/android/vr/vr_shell_gl.cc [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/android/vr/vr_shell_gl.h [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/elements/ui_element_name.cc [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/elements/ui_element_name.h [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/elements/ui_element_type.cc [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/elements/ui_element_type.h [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/model/color_scheme.cc [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/model/color_scheme.h [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/model/web_vr_model.h [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/testapp/vr_test_context.cc [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/ui.cc [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/ui_scene_constants.h [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/ui_scene_creator.cc [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/ui_scene_creator.h [modify] https://crrev.com/4c1f336aabb5a794bf2d631416683ec113fe09d9/chrome/browser/vr/ui_unittest.cc
Verified in build 67.0.3394.0 Canary build.
Comment 1 by ymalik@chromium.org
, Mar 26 2018