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

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

Issue 2749703007: Add menu mode plumbing for WebVR mode. (Closed)
Patch Set: 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
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 cea660d85d6cf1121602fe1846abb39e2a9db272..0601e502e1a63c0a95535dc360016b5be3884d89 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,10 @@ class UiScene {
ContentRectangle* GetUiElementById(int element_id);
- const Colorf& GetBackgroundColor();
- float GetBackgroundDistance();
+ const Colorf& GetBackgroundColor() const;
+ float GetBackgroundDistance() const;
+ bool GetCursorEnabled() const;
+ bool GetWebVrRenderingEnabled() const;
private:
void ApplyRecursiveTransforms(const ContentRectangle& element,
@@ -85,6 +85,8 @@ class UiScene {
ContentRectangle* content_element_ = nullptr;
Colorf background_color_ = {0.1f, 0.1f, 0.1f, 1.0f};
float background_distance_ = 10.0f;
+ bool cursor_enabled_ = false;
+ 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') | chrome/browser/android/vr_shell/ui_scene.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698