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

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

Issue 2890563003: VR: Update UiSceneManager with audio/video capturing flags (Closed)
Patch Set: rebase 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 366f99608842223a77e1b31986e10b78322ba588..27439f357a6cd6bd30d9b2d3e14a0b27af563637 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc
@@ -131,7 +131,7 @@ void UiSceneManager::CreateSystemIndicators() {
element->set_translation({-0.3, 0.8, -1.9});
element->set_size({0.4, 0, 1});
element->set_visible(false);
- audio_input_indicator_ = element.get();
+ audio_capture_indicator_ = element.get();
scene_->AddUiElement(std::move(element));
element = base::MakeUnique<VideoCaptureIndicator>(256);
@@ -139,7 +139,7 @@ void UiSceneManager::CreateSystemIndicators() {
element->set_translation({0.3, 0.8, -1.9});
element->set_size({0.4, 0, 1});
element->set_visible(false);
- video_input_indicator_ = element.get();
+ video_capture_indicator_ = element.get();
scene_->AddUiElement(std::move(element));
}
@@ -301,6 +301,18 @@ void UiSceneManager::ConfigureScene() {
-kBackgroundDistanceMultiplier);
}
+void UiSceneManager::SetAudioCapturingIndicator(bool enabled) {
+ audio_capture_indicator_->set_visible(enabled);
+}
+
+void UiSceneManager::SetVideoCapturingIndicator(bool enabled) {
+ video_capture_indicator_->set_visible(enabled);
+}
+
+void UiSceneManager::SetScreenCapturingIndicator(bool enabled) {
+ // TODO(asimjour) add the indicator and change the visibility here.
+}
+
void UiSceneManager::SetWebVrSecureOrigin(bool secure) {
secure_origin_ = secure;
ConfigureSecurityWarnings();
« 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