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 0fd987d8683efab56fd27ea2cfd90c347235141e..a02e59c5dfaa05aba6eee10abb744dff0ca0b6a0 100644 |
| --- a/chrome/browser/android/vr_shell/ui_scene_manager.cc |
| +++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc |
| @@ -50,10 +50,12 @@ static constexpr float kTextureOffset = 0.01; |
| UiSceneManager::UiSceneManager(VrBrowserInterface* browser, |
| UiScene* scene, |
| - bool in_cct) |
| + bool in_cct, |
| + bool in_web_vr) |
| : browser_(browser), |
| scene_(scene), |
| in_cct_(in_cct), |
| + web_vr_mode_(in_web_vr), |
| weak_ptr_factory_(this) { |
| CreateBackground(); |
| CreateContentQuad(); |
| @@ -195,7 +197,7 @@ base::WeakPtr<UiSceneManager> UiSceneManager::GetWeakPtr() { |
| return weak_ptr_factory_.GetWeakPtr(); |
| } |
| -void UiSceneManager::SetWebVRMode(bool web_vr) { |
| +void UiSceneManager::SetWebVrMode(bool web_vr) { |
| web_vr_mode_ = web_vr; |
| // Make all VR scene UI elements visible if not in WebVR. |
| @@ -206,7 +208,7 @@ void UiSceneManager::SetWebVRMode(bool web_vr) { |
| ConfigureSecurityWarnings(); |
| } |
| -void UiSceneManager::SetWebVRSecureOrigin(bool secure) { |
| +void UiSceneManager::SetWebVrSecureOrigin(bool secure) { |
| secure_origin_ = secure; |
| ConfigureSecurityWarnings(); |
| } |
| @@ -219,6 +221,9 @@ void UiSceneManager::OnAppButtonClicked() { |
| browser_->OnContentPaused(!content_rendering_enabled_); |
| } |
| +void UiSceneManager::OnAppButtonGesturePerformed( |
| + UiInterface::Direction direction) {} |
| + |
| void UiSceneManager::ConfigureSecurityWarnings() { |
| bool enabled = web_vr_mode_ && !secure_origin_; |
| permanent_security_warning_->set_visible(enabled); |
| @@ -236,10 +241,21 @@ void UiSceneManager::OnSecurityWarningTimer() { |
| transient_security_warning_->set_visible(false); |
| } |
| -void UiSceneManager::OnUrlChange(const GURL& gurl) { |
| +void UiSceneManager::SetURL(const GURL& gurl) { |
| url_bar_->SetURL(gurl); |
| } |
| +void UiSceneManager::SetFullscreen(bool enabled) {} |
|
amp
2017/05/08 20:30:06
I went with OnFullscreenChanged in my change since
|
| + |
| +void UiSceneManager::SetSecurityLevel(int level) {} |
| + |
| +void UiSceneManager::SetLoading(bool loading) {} |
| + |
| +void UiSceneManager::SetLoadProgress(double progress) {} |
| + |
| +void UiSceneManager::SetHistoryButtonsEnabled(bool can_go_back, |
| + bool can_go_forward) {} |
| + |
| int UiSceneManager::AllocateId() { |
| return next_available_id_++; |
| } |