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

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

Issue 2433253002: Add passive and FOV-locked properties to UI elements. (Closed)
Patch Set: Add passive and FOV-locked properties to UI elements. Created 4 years, 2 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.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene.cc b/chrome/browser/android/vr_shell/ui_scene.cc
index bb2bfa966ee9b1084a03212ad2a648cf470feb82..2cdcdb61f05937f622574373dbe30abfd42546a1 100644
--- a/chrome/browser/android/vr_shell/ui_scene.cc
+++ b/chrome/browser/android/vr_shell/ui_scene.cc
@@ -376,6 +376,8 @@ void UiScene::ApplyDictToElement(const base::DictionaryValue& dict,
}
dict.GetBoolean("visible", &element->visible);
+ dict.GetBoolean("passive", &element->passive);
+ dict.GetBoolean("lockToFov", &element->lock_to_fov);
ParseRecti(dict, "copyRect", &element->copy_rect);
Parse2DVec3f(dict, "size", &element->size);
ParseVec3f(dict, "scale", &element->scale);

Powered by Google App Engine
This is Rietveld 408576698