Chromium Code Reviews| Index: chrome/browser/android/vr_shell/ui_scene_manager.cc |
| diff --git a/chrome/browser/android/vr_shell/ui_scene_manager.cc b/chrome/browser/android/vr_shell/ui_scene_manager.cc |
| index 5d4f55aefcfd060fa6f1a8170ba75d20015504fc..7ae408e94ae49e493ac1ab67ba79ca0c1792d6a7 100644 |
| --- a/chrome/browser/android/vr_shell/ui_scene_manager.cc |
| +++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc |
| @@ -185,11 +185,8 @@ void UiSceneManager::SetWebVRSecureOrigin(bool secure) { |
| } |
| void UiSceneManager::OnAppButtonClicked() { |
| - // Pressing the app button currenly pauses content rendering. Note: its still |
| - // unclear what we want to do here and this will most likely change. |
| - content_rendering_enabled_ = !content_rendering_enabled_; |
| - scene_->SetWebVrRenderingEnabled(content_rendering_enabled_); |
| - browser_->OnContentPaused(!content_rendering_enabled_); |
| + // App button click exits the WebVR presentation. |
| + browser_->ExitPresent(); |
|
cjgrant
2017/05/08 15:29:40
The UI should know it's presenting WebVR. But I g
amp
2017/05/08 17:48:13
What happens when you press the app button in vr s
tiborg
2017/05/08 18:59:37
cjgrant@: I think it is better to let the delegate
amp
2017/05/08 19:55:22
Yes exiting full screen is what I had in mind. Al
tiborg
2017/05/08 20:14:01
Yeah, exiting fullscreen should be very easy. What
amp
2017/05/08 20:37:02
Follow up cl is fine. We will need to wire up the
|
| } |
| void UiSceneManager::ConfigureSecurityWarnings() { |