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

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

Issue 2749703007: Add menu mode plumbing for WebVR mode. (Closed)
Patch Set: Rename JS WebVR rendering functions for clarity. Created 3 years, 9 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 | « no previous file | chrome/browser/android/vr_shell/ui_scene.cc » ('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.h
diff --git a/chrome/browser/android/vr_shell/ui_scene.h b/chrome/browser/android/vr_shell/ui_scene.h
index 6899940f0eea59c3d36e791d9f633daf65ae3f63..9e1b5137f5f194c93a50efbe9fe7c6f13a50d4a4 100644
--- a/chrome/browser/android/vr_shell/ui_scene.h
+++ b/chrome/browser/android/vr_shell/ui_scene.h
@@ -30,7 +30,7 @@ class UiScene {
REMOVE_ELEMENT,
ADD_ANIMATION,
REMOVE_ANIMATION,
- UPDATE_BACKGROUND,
+ CONFIGURE_SCENE,
};
UiScene();
@@ -56,8 +56,6 @@ class UiScene {
// Remove |animation_id| from element |element_id|.
void RemoveAnimation(int element_id, int animation_id);
- void UpdateBackgroundFromDict(const base::DictionaryValue& dict);
-
// Update the positions of all elements in the scene, according to active
// animations and time. The units of time are arbitrary, but must match the
// unit used in animations.
@@ -71,8 +69,9 @@ class UiScene {
ContentRectangle* GetUiElementById(int element_id);
- const Colorf& GetBackgroundColor();
- float GetBackgroundDistance();
+ const Colorf& GetBackgroundColor() const;
+ float GetBackgroundDistance() const;
+ bool GetWebVrRenderingEnabled() const;
private:
void ApplyRecursiveTransforms(const ContentRectangle& element,
@@ -86,6 +85,7 @@ class UiScene {
ContentRectangle* content_element_ = nullptr;
Colorf background_color_ = {0.1f, 0.1f, 0.1f, 1.0f};
float background_distance_ = 10.0f;
+ bool webvr_rendering_enabled_ = true;
DISALLOW_COPY_AND_ASSIGN(UiScene);
};
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698