Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 | 58 |
| 59 UiElement* GetUiElementById(int element_id); | 59 UiElement* GetUiElementById(int element_id); |
| 60 | 60 |
| 61 std::vector<const UiElement*> GetWorldElements() const; | 61 std::vector<const UiElement*> GetWorldElements() const; |
| 62 std::vector<const UiElement*> GetHeadLockedElements() const; | 62 std::vector<const UiElement*> GetHeadLockedElements() const; |
| 63 bool HasVisibleHeadLockedElements() const; | 63 bool HasVisibleHeadLockedElements() const; |
| 64 | 64 |
| 65 const vr::Colorf& GetBackgroundColor() const; | 65 const vr::Colorf& GetBackgroundColor() const; |
| 66 float GetBackgroundDistance() const; | 66 float GetBackgroundDistance() const; |
| 67 bool GetWebVrRenderingEnabled() const; | 67 bool GetWebVrRenderingEnabled() const; |
| 68 void SetWebVrRenderingEnabled(bool); | |
|
bshe
2017/04/21 21:08:42
nit: bool enabled
ymalik
2017/04/28 00:12:04
Done.
| |
| 68 | 69 |
| 69 private: | 70 private: |
| 70 void ApplyRecursiveTransforms(UiElement* element); | 71 void ApplyRecursiveTransforms(UiElement* element); |
| 71 | 72 |
| 72 std::vector<std::unique_ptr<UiElement>> ui_elements_; | 73 std::vector<std::unique_ptr<UiElement>> ui_elements_; |
| 73 UiElement* content_element_ = nullptr; | 74 UiElement* content_element_ = nullptr; |
| 74 vr::Colorf background_color_ = {0.1f, 0.1f, 0.1f, 1.0f}; | 75 vr::Colorf background_color_ = {0.1f, 0.1f, 0.1f, 1.0f}; |
| 75 float background_distance_ = 10.0f; | 76 float background_distance_ = 10.0f; |
| 76 bool webvr_rendering_enabled_ = true; | 77 bool webvr_rendering_enabled_ = true; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(UiScene); | 79 DISALLOW_COPY_AND_ASSIGN(UiScene); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace vr_shell | 82 } // namespace vr_shell |
| 82 | 83 |
| 83 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ | 84 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ |
| OLD | NEW |