| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 UiElement* GetUiElementByDebugId(UiElementDebugId debug_id) const; | 63 UiElement* GetUiElementByDebugId(UiElementDebugId debug_id) const; |
| 64 | 64 |
| 65 std::vector<const UiElement*> GetWorldElements() const; | 65 std::vector<const UiElement*> GetWorldElements() const; |
| 66 std::vector<const UiElement*> GetOverlayElements() const; | 66 std::vector<const UiElement*> GetOverlayElements() const; |
| 67 std::vector<const UiElement*> GetHeadLockedElements() const; | 67 std::vector<const UiElement*> GetHeadLockedElements() const; |
| 68 bool HasVisibleHeadLockedElements() const; | 68 bool HasVisibleHeadLockedElements() const; |
| 69 | 69 |
| 70 void SetMode(ColorScheme::Mode mode); | 70 void SetMode(ColorScheme::Mode mode); |
| 71 ColorScheme::Mode mode() const; | 71 ColorScheme::Mode mode() const; |
| 72 | 72 |
| 73 SkColor GetBackgroundColor() const; | 73 SkColor GetWorldBackgroundColor() const; |
| 74 | 74 |
| 75 void SetBackgroundDistance(float distance); | 75 void SetBackgroundDistance(float distance); |
| 76 float GetBackgroundDistance() const; | 76 float GetBackgroundDistance() const; |
| 77 | 77 |
| 78 bool GetWebVrRenderingEnabled() const; | 78 bool GetWebVrRenderingEnabled() const; |
| 79 void SetWebVrRenderingEnabled(bool enabled); | 79 void SetWebVrRenderingEnabled(bool enabled); |
| 80 | 80 |
| 81 bool is_exiting() const { return is_exiting_; } | 81 bool is_exiting() const { return is_exiting_; } |
| 82 void set_is_exiting(); | 82 void set_is_exiting(); |
| 83 | 83 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 95 bool webvr_rendering_enabled_ = true; | 95 bool webvr_rendering_enabled_ = true; |
| 96 bool gl_initialized_ = false; | 96 bool gl_initialized_ = false; |
| 97 bool is_exiting_ = false; | 97 bool is_exiting_ = false; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(UiScene); | 99 DISALLOW_COPY_AND_ASSIGN(UiScene); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace vr_shell | 102 } // namespace vr_shell |
| 103 | 103 |
| 104 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ | 104 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ |
| OLD | NEW |