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

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

Issue 2891503002: VR: UiElement for Screen Capture indicator (Closed)
Patch Set: rebase 2 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
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.h ('k') | components/vector_icons/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 26de8a498a1791632fc8ca727d7f76274fc6fac4..bf4871f385b9c8f80acd8bb8b72773123170577d 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/android/vr_shell/ui_elements/exit_warning.h"
#include "chrome/browser/android/vr_shell/ui_elements/loading_indicator.h"
#include "chrome/browser/android/vr_shell/ui_elements/permanent_security_warning.h"
+#include "chrome/browser/android/vr_shell/ui_elements/screen_capture_indicator.h"
#include "chrome/browser/android/vr_shell/ui_elements/screen_dimmer.h"
#include "chrome/browser/android/vr_shell/ui_elements/transient_security_warning.h"
#include "chrome/browser/android/vr_shell/ui_elements/ui_element.h"
@@ -159,7 +160,7 @@ void UiSceneManager::CreateSystemIndicators() {
// indicators is defined.
element = base::MakeUnique<AudioCaptureIndicator>(512);
element->set_id(AllocateId());
- element->set_translation({-0.3, 0.8, -1.9});
+ element->set_translation({-0.3, 0.8, -kContentDistance + 0.1});
element->set_size({0.5, 0, 1});
element->set_visible(false);
audio_capture_indicator_ = element.get();
@@ -167,11 +168,19 @@ void UiSceneManager::CreateSystemIndicators() {
element = base::MakeUnique<VideoCaptureIndicator>(512);
element->set_id(AllocateId());
- element->set_translation({0.3, 0.8, -1.9});
+ element->set_translation({0.3, 0.8, -kContentDistance + 0.1});
element->set_size({0.5, 0, 1});
element->set_visible(false);
video_capture_indicator_ = element.get();
scene_->AddUiElement(std::move(element));
+
+ element = base::MakeUnique<ScreenCaptureIndicator>(512);
+ element->set_id(AllocateId());
+ element->set_translation({0.0, 0.65, -kContentDistance + 0.1});
+ element->set_size({0.4, 0, 1});
+ element->set_visible(false);
+ screen_capture_indicator_ = element.get();
+ scene_->AddUiElement(std::move(element));
}
void UiSceneManager::CreateContentQuad() {
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.h ('k') | components/vector_icons/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698