Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5684)

Unified Diff: chrome/browser/android/vr_shell/ui_scene_manager.cc

Issue 2866853002: VR: Wire VrShell UI-related state to the scene manager. (Closed)
Patch Set: Rebase; remove now-unused source file. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 eea14738d7cc41d52e5c677a4a0a35da260cbe36..e617824e72653d7d8d1d933655fc7ac35fc2c26a 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc
@@ -56,10 +56,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();
@@ -201,7 +203,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.
@@ -212,7 +214,7 @@ void UiSceneManager::SetWebVRMode(bool web_vr) {
ConfigureSecurityWarnings();
}
-void UiSceneManager::SetWebVRSecureOrigin(bool secure) {
+void UiSceneManager::SetWebVrSecureOrigin(bool secure) {
secure_origin_ = secure;
ConfigureSecurityWarnings();
}
@@ -225,7 +227,10 @@ void UiSceneManager::OnAppButtonClicked() {
browser_->OnContentPaused(!content_rendering_enabled_);
}
-void UiSceneManager::OnFullscreenChanged(bool fullscreen) {
+void UiSceneManager::OnAppButtonGesturePerformed(
+ UiInterface::Direction direction) {}
+
+void UiSceneManager::SetFullscreen(bool fullscreen) {
// Make all VR scene UI elements visible if not in WebVR or fullscreen.
for (UiElement* element : browser_ui_elements_) {
element->set_visible(!fullscreen);
@@ -269,10 +274,19 @@ 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::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_++;
}
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.h ('k') | chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698