[VR] Javascript Dialogs in VR
This CL enables the Chrome's Javascript Dialog in VR behind a flag.
The View from the 2D dialog is converted into a texture and is
shown in VR on a quad. The events from the controller are translated
to MotionEvents and are sent back to the 2D dialog.
It is made possible to replace ModalDialogManager in ChromeActivity. The
ModalDialogManager is replaced with a new one when going in VR mode, and is
replaced with the old ModalDialogManager when leaving VR.
The ModalDialogManager that is used in VR uses VrModalDialogPresenter that
shows dialogs on a quad in 3D space in front of the main content.
The view from 2D Javascript dialog is attached to the DecorView to
make sure that the View will receive all the event.
The close button will be added to this dialogs in the follow up CLs.
Bug:779126
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Iaae0147d1711297cc7dd992fe3986642669bc102
Reviewed-on: https://chromium-review.googlesource.com/868552
Commit-Queue: Amirhossein Simjour <[email protected]>
Reviewed-by: Michael Thiessen <[email protected]>
Reviewed-by: Ian Vollick <[email protected]>
Reviewed-by: Ted Choc <[email protected]>
Cr-Commit-Position: refs/heads/master@{#534068}
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
index 607ecd2..0598ddca 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -1348,6 +1348,9 @@
extern const char kUpdateMenuItemName[];
extern const char kUpdateMenuItemDescription[];
+extern const char kVrBrowsingNativeAndroidUiName[];
+extern const char kVrBrowsingNativeAndroidUiDescription[];
+
extern const char kThirdPartyDoodlesName[];
extern const char kThirdPartyDoodlesDescription[];